Results 1 to 4 of 4

Thread: Size of Lua Script Supported?

Hybrid View

  1. #1
    Join Date
    Oct 2002
    Posts
    36

    Default 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

  2. #2
    Join Date
    Jun 2002
    Posts
    48

    Default

    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

  3. #3
    Join Date
    Feb 2001
    Location
    Plano, TX, USA
    Posts
    3,055

    Default

    Actually, LUA variables are local only if preceded with the keyword "local". All others are global.
    Mark F

  4. #4
    Join Date
    Jun 2002
    Posts
    48

    Default

    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
  •