December 8th, 2002, 07:37 PM
Size of Lua Script Supported?
What is the size of Lua Script supported?
I am having trouble getting the girder project to run correctly.
When I run small pieces of LUA is works fine. But when I link them together the LUA script stops working.
The LUA scripts are executed of User Events and in multigroups. Most of my problems show up when the LUA script is executed in a mutlitgroup.
1 simulate key press
3 read a line from a file
4 simulate another command.
Unfortunately command 3 does not read a line from a file. It always returns a nil value. However, the file handle is exactly the same as the file handle returned when opened. And the read line works outside of the multigroup.
December 11th, 2002, 04:49 PM
Perhaps you should attach the GML (or work on your GML to duplicate the problem is the smallest GML possible).
Then we can download it and have a look.
I think its safe to say that most variables in script "pieces" are local, so if you open a file in command 1 of a multi-group, that handle will not be available in command 2 of a multi-group.
December 11th, 2002, 06:47 PM
Actually, LUA variables are local only if preceded with the keyword "local". All others are global.
December 13th, 2002, 08:31 AM
Thanks, I realised this after re-reading my response. Lack of sleep I guess!