permanently displayed text
-
@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.xTIo2uSWSG5QN1N9f4rIplxLCyqLFiO2fK1FHkRO7DKBywsOyfg8TJ8fCcrVzehyanB4eMwiLzFyuQWoOnHwvuzw1haw7QUNZBw1pWja6o.ZoWLHro.D9CnyHVjkiGCFOJ3ApwyPFOJsQRyayDlmtr4USx7xwj1Pxjdfvj9LTeSWxLV7S31yGi5RYX2QF.rKaJBYU13+sC5HGPBJq5TiqvuzEtY4LzZVq1STged7KJWFfdOl5bCW0YT6Cs8c0U+KpQycLlcjyzYNT3FsJQBTAlWz+q5gY8.ThcoiOiPwZi7olLhCUa7iK+1xaOt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W4b3Db.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?
-
@d-healey here is the snippet from last night again:
HiseSnippet 2265.3ocsYssaaibFdjcXhsV6sYKJPukUWTPilnUTVVxIAsK8oD3M1IBVdCJJP6tTjijl0TCEHGpXk.icQeExM8UnuE4QoOB6aP5+vgGFdxV1aVdgf3L+y+78e5algSeOWKruuqGp15muXFFUaCkAKnrIGLwjPQGeHp1CTXXe11n8WLyz2GaipUa0Wv6r152CE97Key9lNlTKbZSHzabIV3SHSIrzV6a7RhiyyMswmSlJIcGiisboG353F..YUkVnYlVWXNF+JStXqnfpc+irILWuALS.MnZ2aeW6ECl39VpP92P7ICcv7WzQC.EIZ94tN1bDyaEcvDhic+XC1GAZoep4upv7+CJmRrIIsm5FdXXGpoiP1eTakrva0LvSWFdsjfWIPZEIHcOAj9JkAVdjYrzd334KTNlxvdiLA2tLTDxhVY3FJG3BRPYMmZdA94dvKIiPqaqVORE9YqmUuN358YpyM8TmQc12IvSW8upFO1wX1AtSm4RgWzZDKPCXbw+uoOl0G7RrybCXDJVaT.0hQboZi2p96qu93liff9dNNZstb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+1bGlHwEAN9TSlGApAUdUvzAPkrEFlcJPcx+RA0VgmBJduE+ctGX.lZG9xmfmnN04uWKpS83NQSMs7b+dKQRG+hSWKrE.Szv6LdckS4uqpGmkonzpYKzTnJ66sr3l+i0QnxGS66vX19NLlN2gwrycXLcuCio2cXL6dsigSvAbltSEkCPC8OJ7C4Tq1QTN2aXVH5+yBf0a0
-
@treynterrio Magic! It opens now.
-
@d-healey I also found out when I use Engine.dumpS JSON(data,"../registered to.json"); without the ../ write the file will not be created
-
@treynterrio said in permanently displayed text:
without the ../ write the file will not be created
It works here, the file appears in the UserPresets folder.
-
@d-healey it works in hise but when I export it. it doesn't load it when I reopen it
-
This snippet is different to the one from last night. I don't see anywhere in it where you are loading
registeredto.json
-
@d-healey oh you're right
HiseSnippet 2295.3ocsYs0aaibEdjcXVas1ayVTf9JqdHfFMQUT2cBZW5aYg1X6nZ4FTTf8BE4HoYMEo.4PEqFXrK5ur7Sou121+AomgCuL7lsr2r7AAMyblC+N29lY3Lz0w.6443hpr8kqVfQU1QZzJa5riloSrQCNF5Whh8nxsZgNb0BcOOrIpRkM+Z1vU19Qnfme4qNT2R21.mzEB8VGhA9TxbBMo2gZulXY8JcS7kj4BR2Vafgi8QNVN9.T1TpAZgtwU5SwmqyDaCITkGehIg53NhpC3AU4QG5XtZzLm2Yyk+sDOxXKLqgJZDnHd2uxwxjgXVunilQrLGFYxdHPKCSb.axc.+AoyHlj39SbDOIX.4jYH5OprQZ3sYJ3oJBuFBvq.Hsg.jdDGReozHCWxBZxHL774RCroX2I5faWDJbYQa7+1Q5HGPBaZ845WgekKzHdFJcaz3YxvO68xpUAWODgWp6Juv15PKeWU4+pbzbmhoG4LegiMzPoVj.0f4E8+5dX5PvKQuvwmRrwJS7sMnDGako6U88U2dZ8IPP+.KKkFW2ogZW0NpsfoC8OFOkXep9JrqB00GCcJCOP+NWyzrhZi5Mh6DaaxEE54FFrI1FV9lXkZivtDcKu5+nGCVUsgbFOH+AKefOcliKwSmgF.JL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