User Tag List

Page 3 of 43 FirstFirst 1 2 3 4 5 13 ... LastLast
Results 21 to 30 of 426

Thread: XLua extention beta

  1. #21
    Clicker Multimedia Fusion 2SWF Export Module

    Join Date
    Sep 2006
    Posts
    1,537
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: XLua extention beta

    Yeah its ok its only 2 different places in my code where I would have to send it to an alterable value and retrieve it *in MMF*. And as of right now, theres only about 10 total events running when the game is rewinding, so I think I could slip in a single event that references all object and that part of the code would still run at 50 FPS on a 486. But yeah I don't think theres really anything you can do to fix that, since Lua stores everything as its Number/Variant which iirc is some sort of ungodly double, and provides no way to *know* to convert to integer (math.floor just returns an equivalent double)

    but I'll definitely let you know if I encounter any weird crashes. I've had a few, but they've all been from spamming more than my max # of objects, which SHOULD make it crash anyway

  2. #22
    No Products Registered

    Join Date
    Jun 2006
    Posts
    625
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: XLua extention beta

    I don't have managed to get a single crash yet !

    Congratulations for the bug fixes, it seems pretty good now ! I hope Pixelthief stability problems are solved too...

    Thanks for the great extension !

  3. #23
    No Products Registered

    Join Date
    Jun 2006
    Posts
    625
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: XLua extention beta

    It has got to be some stupid mistake I'm making, could you explain to my poor brain why
    -On Function 'test'
    Set text to 'test function with param : '+MF_StringParam(1)

    writes 'test function with param : 0'
    and creates a xLua Object error : Invalid place to get MMF parameter.

    test function has been registered with 1 param, and the lua script was something like test('does this work ?')

  4. #24
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: XLua extention beta

    Perhaps params start with param(0)?

  5. #25
    Clicker Fusion 2.5 DeveloperSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,739
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: XLua extention beta

    Nope, at least not natively. I've used Lua in C++ before, and Lua+ for MMF, both are 1-based.

  6. #26
    Clicker Multimedia Fusion 2SWF Export Module

    Join Date
    Sep 2006
    Posts
    1,537
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: XLua extention beta

    One of the outputs was 0 based and one was 1 based, I don't remember. I remember having to tinker with it until I got the right one

  7. #27
    Clicker Multimedia Fusion 2
    Retriever2's Avatar
    Join Date
    Jun 2006
    Location
    United States
    Posts
    502
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: XLua extention beta

    They should all be 1-based. I'll be happy to look into it if you have concrete examples.

  8. #28
    Clicker Multimedia Fusion 2
    Retriever2's Avatar
    Join Date
    Jun 2006
    Location
    United States
    Posts
    502
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: XLua extention beta

    I'm sorry, this is actually a bug that I fixed for MechaBowser a few days ago, but I must have hit undo too many times or something and I undid the fix in a more recent build

    In a lot of ways these bugs reflect how I use the object. For example, I never make MMF function calls during the loading procedure, and I actually baked that limit into the extension by mistake, and never caught it.

    http://hocuspocus.taloncrossing.com/rii/xlua-dist.zip

  9. #29
    No Products Registered

    Join Date
    Jun 2006
    Posts
    625
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: XLua extention beta

    Maybe i'm doing something wrong, but I have just the same error when pushing a return value for a MMF Function, with error :
    Invalid place to push a return value.

    Could it be a bug related to last one ?

  10. #30
    Clicker Multimedia Fusion 2
    Retriever2's Avatar
    Join Date
    Jun 2006
    Location
    United States
    Posts
    502
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: XLua extention beta

    Yes, it is, thanks. That case was separated from the rest. Download the build again.

Page 3 of 43 FirstFirst 1 2 3 4 5 13 ... LastLast

Similar Threads

  1. XLua
    By Retriever2 in forum Released Extensions
    Replies: 6
    Last Post: 13th August 2017, 07:42 PM
  2. Extention error with exe
    By Jinxtengu in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 15th October 2012, 03:47 AM
  3. SPC extention question
    By ASD in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 20th November 2009, 03:25 PM
  4. Lua+ or xLua?
    By Shawn in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 17th October 2009, 10:55 PM

Posting Permissions

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