permanently displayed text
-
@d-healey It works now in the snippet, but it doesn't work in my project. the file is created but the file will not be loaded
-
@treynterrio What is the difference between the snippet and your project?
-
@d-healey that my project is a complete plugin
-
@treynterrio said in permanently displayed text:
that my project is a complete plugin
There is no difference in the code?
-
@d-healey the difference is that the button that sets the text to the label has more than 1 function in my project. my complete project script has 1400 lines
-
@treynterrio You need to identify the thing in the snippet that works but doesn't work in your project.
-
@d-healey it creates the file that works but It doesn't load. so it must be this part that doesn't work
const var d = Engine.loadFromJSON("Name.json"); if (isDefined(d) && isDefined(d.name)) { Input.set("text", d.name); }
-
@treynterrio Does it work in your project within HISE but not in the compiled plugin, or does it not work in either?
-
@d-healey both doesn't work
-
So to confirm, in your project's user presets folder you see a file called
Name.json
? -
@d-healey yes it will be created when I press the button. Its there until I close the plugin and reload it then its gone
-
@treynterrio said in permanently displayed text:
Its there until I close the plugin and reload it then its gone
Do you have some code that deletes the file? When you say close the plugin, are you talking about the HISE project or the compiled version? For now it's best if we just focus on the HISE project.
-
@d-healey no there is nothing that could or would delete the file. I've that simple protection on the Button at the moment as well. its this code and after that the code for the simple protection and then comes nothing. I had this create .json file above the serial code part and this part
const var d = Engine.loadFromJSON("Name.json"); if (isDefined(d) && isDefined(d.name)) { Input.set("text", d.name); }
straight under it and at the bottom of the script. but nothing works. the only thing that works here is that is says Compiled Ok in the console
-
I think you're going to need to share the project folder (without the samples, binaries, and pooled resources sub folders).
-
@d-healey try this I think the error lies in this part of the code. I don't know but maybe you'll need the serial.js file then you should create an empty one
HiseSnippet 2295.3ocsYs0baabEFTxqiDiThSlNSeEgOjAdpMKAk3EaOMg5lSYrtvJx3oSloIADXI4VAtfCvBZw3QSyzeI8mh+ozW6a4ef6YwBPr3FEkhCdfCwhyd1y46bNe3rX645Xh87bbUJs8fEyvJk1A0eAkM4nIFDpR2iUJsK5fuave8hK698mn1P4vEyL77vVJkJs42vEoz1OPI35W+5CMrMnl33gTTdsCwDeJYJgEOZuNuhXa+RCK7.xTIo2uSWSG5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y0RekmqU79l3bFA6lCDcE4Zfa33hCGJX+dx0LJqgN9TzHx08Y9lWw2SpWNJI6Qs8HzYNVPAMK4I+wOtyvGv6ORFg3GoF0ivVHq4OXGG35ZheFpGgYNIeabibrQdb32AaLL+ZWzIiFgMYwF3CPu7u+6yIlpHN1wwmYvbIPMH5b+o8gJYSLr5Tf5j+AAJsAOETbeM98bDnOlZEby6gqvGpyuuT3C0idnxTCSWmezTjzwOl1sBFArIZvITuM5L98p5QYYHTsp0TlBUY+noI28eJrWs7mS86wb16dLm8uGyow8XNMuGyo08XNsW4b3Db.moyTQ4.LPuSB9dMkJcBky8FjEp7+wpxmMK
-
@treynterrio Your submit button is momentary. That means the callback is triggered both when you press the button and when you release it.
So everything in your callback above this check is being done twice.
if(!value) return;
This check almost certainly wants to be at the top of the callback. Although I don't think this is the cause of the particular issue we've been discussing.
Also it looks like you're embedding a list of valid serial numbers in your project, is this correct? The script is not encrypted when compiled as a plugin so anyone with a little know-how will be able to see all of these serials.
-
@d-healey but the button in the other snippet was momentary too. I'll try it.
and I know that this not a option to protect it. it's just a sample. I've already send 6 mails to info@hise.audio because of their licensing but I didn't get an answer yet.
-
@treynterrio said in permanently displayed text:
but the button in the other snippet was momentary too. I'll try it.
In the snippet you put the check at the top of the callback (on line 8).
As I say though, I don't think this will solve the problem. It's just another thing to check off.
-
@d-healey yeah the problem is still there
-
@treynterrio HISE won't open the snippet for me today, which is strange because it worked last night... The whole snippet thing is buggy in the latest version though, hopefully will be fixed soon.
Can you post the code from that snippet?