More Full Expansion issues.....
-
OK so I have a Player, and a Full expansion it is loading....
This works fine if I dont add the activation code but the player and the expansion share a code library for doing activation....so I load the activation module in both the player and the expansion....
This activation module creates its own UI in both cases, so there will be some duplicated named objects but Im not sure if thats important or not, as the expansion is loading, and in (my) theory completely overwriting the players code base....
So I load the player, all fine, I load the Full expansion, and the activation screens show up - still fine...
But none of the ui works now...literally nothing.
Some observations:
HISE wont let the expansions code use const in some instances: Complaining they are not at a GLOBAL level, since when was that required?
HISE wont recognise or load my logging code, so this bit of code appears in both the player and the expansion:
var logDir = FileSystem.getFolder(FileSystem.AppData); var log = logDir.getChildFile("Log.txt"); var logContents; if(!log.isFile()) { logContents = ""; }else{ logContents = log.loadAsString(); }telling me .isFile() isnt recognised.....but if I do this(just rename log to mylog):
var logDir = FileSystem.getFolder(FileSystem.AppData); var mylog = logDir.getChildFile("Log.txt"); var logContents; if(!mylog.isFile()) { logContents = ""; }else{ logContents = mylog.loadAsString(); }it doesnt object... so this makes me think for some reason its objecting to having a button called inlayActivateButton in the player and also having a button called inlayActivateButton in the Expansion....
Clearly theres some rules I dont know about, anyone have any clues why this is the way it is...
-
@Lindon said in More Full Expansion issues.....:
HISE wont let the expansions code use const in some instances: Complaining they are not at a GLOBAL level, since when was that required?
const can only be in on init.
-
@David-Healey they are in the init of the expansion...
-
@Lindon can you make a minimal expansion project snippet I can test?
-
@David-Healey I can try...
-
@Lindon said in More Full Expansion issues.....:
it doesnt object... so this makes me think for some reason its objecting to having a button called inlayActivateButton in the player and also having a button called inlayActivateButton in the Expansion....
It could be that there is a conflict during the loading process. You could make a mini test player and expansion with a single button with the same name in both to test it.
-
@David-Healey Okay I will send you a link - I cant post it here as the Activation Module is not mine...
-
@Lindon well there was a problem in one of my includes, that neither HISE player nor HISE expansion projects was prepared to report.... so moving on for a bit...