-
December 8th, 2002, 07:37 PM
#1
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.
e.g.
Commands
1 simulate key press
2 wait
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.
Thanks
-
December 11th, 2002, 04:49 PM
#2
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.
David
-
December 11th, 2002, 06:47 PM
#3
Actually, LUA variables are local only if preceded with the keyword "local". All others are global.
Mark F
-
December 13th, 2002, 08:31 AM
#4
Thanks, I realised this after re-reading my response. Lack of sleep I guess!
David.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules