Page 1 of 1
2 potential lua bugs
Posted: Wed Mar 19, 2014 3:40 am
by MB
Both fairly minor, but from what i can see, if one deliberately traps an error, e.g. in the case of your turntable animation script not having a render target selected, after dealing with it, the core lua process seems to trap it again. Or is it me?
2nd
@shortcut ctrl + 3, this works as a shortcut in windows, (@shortcut alt + w) and this (@shortcut ctrl + w) don't work. It appears that shortcuts with non numeric quilifiers might be broken.
beat
Mark
Re: 2 potential lua bugs
Posted: Wed Mar 19, 2014 4:18 am
by stratified
Hi Mark,
You're right, we'll fix them for the next release.
cheers,
Thomas
Re: 2 potential lua bugs
Posted: Wed Mar 19, 2014 8:00 am
by pixelrush
If its the same issue, the double error messages bug has been there for a while - since 1.28 - I mentioned it on 26 Jan in the release testing thread.
Re: 2 potential lua bugs
Posted: Wed Mar 19, 2014 7:29 pm
by roeland
We have fixed these double errors a couple of releases ago. The turntable, daylight, and regular time animation scripts are shipped with the more recent release candidates, they're the three items right below the "reload scripts" option in the script menu.
--
Roeland
Re: 2 potential lua bugs
Posted: Wed Mar 19, 2014 7:49 pm
by MB
Can you tell me what you did so i can fix it in my own script.
thx
Re: 2 potential lua bugs
Posted: Wed Mar 19, 2014 10:43 pm
by stratified
MB wrote:Can you tell me what you did so i can fix it in my own script.
thx
Hey Mark,
This one is not really a bug in Octane, it's a consequense of how those scripts where written. There are 2 different "modes" to run a script in Octane:
- from the editor: output and errors are logged in the editor's output window
- from the menu: output is logged in the log window and errors are signaled via a popup
What the script did in the function
showError
(which you are using as well) was show a dialog (first annoying popup) and then error out (second annoying popup when running from the menu). What you can do is:
- just error out and don't show the dialog
- show the dialog and return, it's then up to your script to make sure it checks return values correctly and returns at the top
I hope this helps.
cheers,
Thomas