Lost all Lua code #748
Replies: 8 comments 12 replies
-
|
Oh no! Did you set this button by any chance? Lua is disabled It'll nuke all your lua code when you reload! If not, can you reproduce that behaviour?
|
Beta Was this translation helpful? Give feedback.
-
|
I didn’t even know you could do that. It’s a feature I’ve never used or even felt I had to. I’m going to look into that, but one thing you could try doing, is locating all the lua code within the XML tags and cutting and pasting into the new panel. That is probably bound to work. So just open the .panel in notepad++ (in Windows) or some editor in Mac and copy and paste into the 95 version and I think that should work. I’ve sometimes done that when I couldn’t open a panel that had become corrupted. |
Beta Was this translation helpful? Give feedback.
-
|
Am I just good at this or what? So - I have a group that starts out hidden and then gets visible once the user syncs with the hardware. I wanted to add a label that is shown when a user right-clicks on a control so they can enter a new value directly. I saved off the panel and closed it to make sure all the methods were available. I opened the panel up and all the Lua code was gone. The panel size had dropped by a few hundred k. All I can figure is somehow having a hidden object on a hidden group caused this failure since that was the only change. I had a panel from Friday that I sent to the beta testers, but all the work done between Friday afternoon and today is gone. |
Beta Was this translation helpful? Give feedback.
-
|
Are you using 5.6.34? there’s a subtle bug with uiGroup that has been fixed in the latest version 5.6.35 as yet unreleased. In theory it fixes modulators getting discombobulated from their groups on rare occasions, but it’s hard to reproduce and the two people who complained about this problem haven’t got back to us to confirm whether it’s now fixed. But I doubt that would cause such a massive crash as you experienced! I always stay away from uiGroup and uiTabs and use layers or uiComponent for layout. |
Beta Was this translation helpful? Give feedback.
-
|
I'll see if I can reproduce it. If I can break it (again) under .34, I'll download and try .35 Going to .35 when no one else has it doesn't seem like the safest choice. re: Layers - I'm going to have to post up what I'm currently doing and then see if you all can suggest a way to use layers instead of groups. |
Beta Was this translation helpful? Give feedback.
-
|
@damiensellier I think that CtrlrAbout.cpp window is still crashing on Windows 5.6.35-Maintenance |
Beta Was this translation helpful? Give feedback.
-
|
Will check it out - yes, I wrote that rather then try to fix it, because scanning through the code, it looked ok to my not so skilled eyes (ie basically just checking the destructor code)! |
Beta Was this translation helpful? Give feedback.
-
|
Naturally, I cannot reproduce the crash. Tried for a couple hours, various combinations of activities. Sorry about that. Two quick questions --
instead of |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
yeah, well, after editing and saving on a regular basis, one time I tried to add another method and after compiling, saving, closing, I re-opened that panel only to find all the Lua code is gone.
I only see the built-in stuff. The panel itself seems ok and up to date, but all Lua is gone. I can open previous versions and see the (older) Lua and panel, but not the most current.
Why/where did all that get dropped form the panel file?
Build 5.6.34
Beta Was this translation helpful? Give feedback.
All reactions