Expansion encode error
-
@danh Maybe there is a bug in HISE.
-
@d-healey I've made this particular expansion numerous times.. now that I want to run off the master it's gone weird
-
-
@d-healey the 'master' expansion .hr1 file I mean.... If you're thinking I mean the master fork of HISE I'm using that too...
-
This post is deleted! -
@danh I thought I'd try it in New Laypout branch but I can't see anywhere to encode the expansion - it doesn't appear to be in the sampler window as before
-
-
This post is deleted! -
@d-healey Thanks, no joy with NL. So strange. I'll try recompiling HISE. Am I missing something? I've followed the script from the docs.... I mean it's worked fine for weeks. :crying_face:
-
@danh What method are you using to install the expansion?
-
@d-healey Rebuilt HISE and it began to work as expected again.
One question though - When installing an expansion, it takes a few moments for the samples to install themselves. It's possible to close the plugin / standalone prior to all samples installing, leading to errors upon startup. Have you come across this? A bar showing progress would be useful!
-
@danh said in Expansion encode error:
It's possible to close the plugin / standalone prior to all samples installing, leading to errors upon startup. Have you come across this?
Sounds like a bug, I think HISE should recover from where it left off. I haven't tested this myself.
@danh said in Expansion encode error:
A bar showing progress would be useful!
You can implement this yourself with a timer and the expansion install callback.
-
@d-healey oh yes, completely missed those API's, silly me.
I believe you made a progress bar video a few months ago too
Second thing, when you install an expansion and the first window opens to select the .hr1 file, and then the second to choose where to install the .ch1 files, is there a way to add dialog to those windows to act as a guide for the user?
-
@danh This is how I'm doing it.
inline function manualInstall() { local msg = "Please select the .hr1 file"; Engine.showYesNoWindow("Select .hr1", msg, function(response) { if (response) { FileSystem.browse(FileSystem.Downloads, false, "*.hr1", function(hr) { if (hr.toString(2) == ".hr1") { local origin = hr; // Scoped copy msg = "Please select the folder to install the instrument's samples"; Engine.showYesNoWindow("Install Location", msg, function(response) { if (response) { FileSystem.browseForDirectory(FileSystem.Samples, function(dir) { expHandler.installExpansionFromPackage(origin, dir);� }); } }); } }); } }); }
-
@d-healey very kind, thank you
-
@d-healey do you have to restart your plugin to load the new expansion after installation? Or can it be loaded right away?
-
@danh Should be available right away - https://docs.hise.audio/scripting/scripting-api/expansionhandler/index.html#refreshexpansions
-
@d-healey Thanks, I think I had trouble getting this to work in master before but will try again!
So just tying the script above - I stuck it into a button callback. I'm getting an error on this line (Unknown function 'toString'):
if (hr.toString(2) == ".hr1")
I'm not sure what the '2' is referencing?
-
I'm getting an error on this line (Unknown function 'toString'):
Do you get that error on compile or when running the function?
I'm not sure what the '2' is referencing
2 =
OnlyExtension
There was some problem where the enums weren't working correctly so I had to use magic numbers. Not sure if that problem was fixed.
-
@d-healey just when using the function. I can select the .hr1 file ok, and then this error pops up. Maybe I should compile the plugin - I'm doing this in HISE and obviously the actions can't be completed in HISE (I don't think?!)