Home › Forums › General › Using Ctrlr › LUA scripts not working in VST
- This topic has 18 replies, 5 voices, and was last updated 4 years, 8 months ago by lfo2vco.
-
AuthorPosts
-
December 26, 2017 at 8:20 pm #73938
Hi Guys,
I’m revisiting a panel and making some updates, my DAW (Reason) now hosts VSTs so I am now looking to use my panel as a VST. However I have hit a problem.
LUA scripts in Ctrlr Standalone and the Ctrlr VST work fine. If I export an Instance or Restricted Instance from the Ctrlr VST it seems that none of the LUA scripts function.
Oddly the same panel exported from the Ctrlr Standalone works fine.
I am using a Mac running OS 10.9.5 and Ctrlr 5.3.0.
Any pointers would be much appreciated. Thanks.
Here is some noise I organised into an acceptable format:
https://soundcloud.com/lfo2vco/a-dark-crystalDecember 26, 2017 at 10:20 pm #73941how about making a simple mini test panel to test a single script?
or a selection of operation types, so you can narrow it down?a thought: when you run it in Ctrlr VST, it’s running Ctrlr
hosted in a VST plugin, isn’t it? ie: has everything it needs.does the VST need to unpack any resources first time it runs?
have tried it in other hosts? ie: minihost etc.December 27, 2017 at 1:14 am #73942Hi human fly,
Indeed, I will try a simple panel… that said the problem is anything LUA across the board, every single script both large and small.
To your second point, that is exactly what I thought and the fact that it works as a standalone but not a VST points towards an issue with the Ctrlr VST or my implementation of something the Ctrlr VST requires.
I tried my exported VST in Minihost and Defective Records Klee; same result no LUA.
Here is some noise I organised into an acceptable format:
https://soundcloud.com/lfo2vco/a-dark-crystalDecember 27, 2017 at 10:54 am #73943Hi lfo2vco,
the problem might be the Ctrlr version you are using, if you use the latest build you shouldn’t. Atom said few times already that it is full of bugs and the Lua implementation might be broken there. I use a Ctrlr version from March 2016 and all works as intended. Cheers!
December 27, 2017 at 12:57 pm #73944Thanks Proton,
Thats cured the problem!
It’s ironic as I recently updated due to using a really old version of Ctrlr.Have a great day guys and thanks for your assistance,
M.Here is some noise I organised into an acceptable format:
https://soundcloud.com/lfo2vco/a-dark-crystalDecember 28, 2017 at 10:47 am #73992Aaaargh,
It’s gone again, how odd!
So it worked the immediately after I backdated Ctrlr then the next time I saved my panel and exported it… zilch. That doesn’t make much sense.
Here is some noise I organised into an acceptable format:
https://soundcloud.com/lfo2vco/a-dark-crystalDecember 28, 2017 at 4:36 pm #73995kill your ctrlr.settings file?
December 28, 2017 at 7:33 pm #73996Hi human fly,
Thanks for the suggestion, I deleted the ctrlr.settings file as suggested, I also cleared out the ctrlr folder, deleted the com.instigator.Ctrlr.plist and by my exported VSTs prefs folder.
This worked and then again it failed.
But from this I have found that it seems to be an interaction between the com.instigator.Ctrlr.plist file and the exported VST prefs folder. Deleting these seems to sort out the problem until the next time I launch the VST.
Not sure where to go from here.
Here is some noise I organised into an acceptable format:
https://soundcloud.com/lfo2vco/a-dark-crystalDecember 28, 2017 at 7:51 pm #73997soz, i don’t know… was just a wild tilt to help
troubleshoot it.remember that Win10 doesn’t allow unpacking of certain
files on first run – depends on directory permissions.
synthedit plugins always had a problem with this. was
with the *.sem files (that are really *.dlls)the workaround was the run the file locally, and then
distribute with the unpacked files in the zip folder.December 28, 2017 at 8:06 pm #73998Cheers fella,
I am going to try disabling some LUA drop down menus in my panel. I have noticed when I place my VST into the Reason rack from the side bar these drop downs all launch outside the Reason VST wrapper. Which isn’t right!
This may or may not be causing issues… but at least I should eliminate it.
Here is some noise I organised into an acceptable format:
https://soundcloud.com/lfo2vco/a-dark-crystalDecember 28, 2017 at 8:40 pm #73999do your drop down methods have this at the top?
if panel:getBootstrapState() then return end
i think this is the script. basically load was
hanging because of popups.December 28, 2017 at 8:42 pm #74000or this one:
-- This stops issues during panel bootup if panel:getRestoreState() or panel:getProgramState() then return end
December 28, 2017 at 9:37 pm #74001OK I disabled the drop down menus and deleted the methods for them, re-exported but still had the same problem. So it is not the drop down menus loading outside the VST that causes the LUA issues.
Regarding the above post this is the method I have in place:
-- This variable stops index issues during panel bootup if panel:getRestoreState() == true or panel:getProgramState() == true then return end
It does seem to come down to an issue with the instigator / panel prefs. Deleting these, especially the former cures the LUA issue.
Cheers M.
Here is some noise I organised into an acceptable format:
https://soundcloud.com/lfo2vco/a-dark-crystalMay 13, 2018 at 10:34 am #83855OK, so I found what was causing the issue.
It was a conflict between the Lua data in my old panel and my new panel, because the panels shared the exact same name. Ctrlr creates a preferences folder on the Mac that also shares the panel name, so if you have two panels with the same name but with differing Lua methods it creates a conflict.
So to get around this problem (as I was still using and referring to the old panel) I renamed the new panel.
I hope this helps others avoid the same issue.
Here is some noise I organised into an acceptable format:
https://soundcloud.com/lfo2vco/a-dark-crystalJuly 17, 2019 at 8:37 pm #115527Hi,
I’m just busy to make my first VST versions of my panels and had the problem that no Lua code was launched as dll. Spent the whole afternoon reading the forum about VST preparation.
Found the issue then found also your post here.I discovered that we should not have getProgramState() in the condition in the isPanelReady function.
Removing that and thus only using
if panel:getBootstrapState() == false and bPanelLoaded == true then
solves the issue.I will search further in the forum about the meaning of getProgramState().
All the startup phase of a panel is still a bit cryptic even if I understand it more and more.July 17, 2019 at 10:20 pm #115533Hi John,
Yes that is correct if memory serves me right (and I stand to be corrected on this) it seemed that getProgramState() solved a problem when exporting the Standalone and also when working in ctrlr app.
However it seemed t cause a conflict when exporting VSTs. Sorry I can’t remember if I got to the reason for this or stumbled on it by trail and error.I do not have much buffer to for memory and old info gets purged so I can function on a day to day basis with my 16 MHz microprocessor!
Here is some noise I organised into an acceptable format:
https://soundcloud.com/lfo2vco/a-dark-crystalJuly 18, 2019 at 12:41 am #115535Further discussion of the getProgramState() situation: http://ctrlr.org/forums/topic/standalone-images-not-loading/not-loading/
July 18, 2019 at 11:12 am #115540We may need to have 2 versions for each panel then: one using getProgramState() check for standalone export and one without for VST export.
Good that you remembered there was something about that!
I checked the forum for getProgramState() but didn’t fins any info.July 18, 2019 at 11:36 am #115542Indeed I did make two sets of panels for my project, one for the app and one for the VSTs.
Here is the download link if you wish to peruse them:
https://www.dropbox.com/s/ob6jbxtzv6l7gn6/Kiwi-3P%20Editor%20Ctrlr%20Panels.zip?dl=0Actually I think I deleted all the getProgramState() and replaced them with a single
popup timer call back in my initialise script.I hope this helps.
- This reply was modified 4 years, 8 months ago by lfo2vco.
Here is some noise I organised into an acceptable format:
https://soundcloud.com/lfo2vco/a-dark-crystal -
AuthorPosts
- The forum ‘Using Ctrlr’ is closed to new topics and replies.