User Tag List

Page 1 of 4 1 2 3 ... LastLast
Results 1 to 10 of 32

Thread: Lua Object can NOT use two or more in one frame!

  1. #1
    No Products Registered

    Join Date
    May 2007
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Lua Object can NOT use two or more in one frame!

    Lua Object is great, so I use it for server side application.
    But I found when I use two luaObject in one frame, it was Not
    work, and delete one from the frame, another worked ok.
    I tested "Call function", lua invoked function, but "DoCall" was
    not avilible.
    anyone can help me? thank you!

  2. #2
    No Products Registered

    Join Date
    Jun 2006
    Location
    Texas
    Posts
    1,002
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Lua Object can NOT use two or more in one frame!

    Why do you need two lua objects in one frame?

  3. #3
    No Products Registered

    Join Date
    May 2007
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Lua Object can NOT use two or more in one frame!

    PS:
    my mmf version is mmf2dev 244.

  4. #4
    No Products Registered

    Join Date
    May 2007
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Lua Object can NOT use two or more in one frame!

    One big script file, I need separate it,and luaobjs call each other.

  5. #5
    No Products Registered

    Join Date
    Jun 2006
    Location
    Texas
    Posts
    1,002
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Lua Object can NOT use two or more in one frame!

    Can't you use external files or use multiple functions? Lua wasn't designed to have multiple lua objects in one frame, however if I get a chance I will look into why it doesn't work...

    Edit: Even if you have multiple lua objects in one frame, they will not be able to call each other or talk with each other.

    So if I had Lua1 and Lua2 and Lua1 calls DoCall and Lua2 has that specific function registered, it won't work. This is because the DoCall can only call events tied to the extension that runs it's script...

  6. #6
    No Products Registered

    Join Date
    May 2007
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Lua Object can NOT use two or more in one frame!

    the frist lua obj name is lua1, the second is lua2.

    step 1: lua script in lua1, lua2 is empty.
    I tested mmf to luaobj,using "Call function", is work good,
    in lua script,file:write() outputed log.
    But lua to mmf, using "DoCall" in script, is not work.

    step 2: lua1 is empty, lua script in lua2.
    all test is passed.

    so ,I guessed, lua2 and lua1 maybe use same zone to put DoCall Paramter, when lua2 inited, it clear lua1's. so last one is good,
    frist one is not find the docall paramter.


  7. #7
    No Products Registered

    Join Date
    Jun 2006
    Location
    Texas
    Posts
    1,002
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Lua Object can NOT use two or more in one frame!

    Are you sure you didn't use lua2 instead of lua1 for the function event then?

  8. #8
    No Products Registered

    Join Date
    May 2007
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Lua Object can NOT use two or more in one frame!

    yes, one docall only itself's function.
    So I just "on function" itself, and action is another's "call function ", and put "mmf param" to second one.

  9. #9
    No Products Registered

    Join Date
    May 2007
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Lua Object can NOT use two or more in one frame!

    in step 1: lua1 have 2 event and one function, lua2 has nothing.
    in step 2: lua1 has nothing, lua2 have 2 event and one function.


  10. #10
    No Products Registered

    Join Date
    May 2007
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Lua Object can NOT use two or more in one frame!

    function event is correct. I'm sure.

Page 1 of 4 1 2 3 ... LastLast

Similar Threads

  1. [BUG] Array object can't load if the INI object exists in any frame before it
    By happygreenfrog in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 15th August 2013, 06:17 AM
  2. Object destroyed if not on frame
    By pikzilla in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 12th April 2010, 03:26 AM
  3. Object is cut off by frame
    By pikzilla in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 1st April 2009, 01:39 AM
  4. I can't see my object in another frame?
    By stairhead in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 23rd December 2006, 07:22 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •