User Tag List

Page 1 of 6 1 2 3 ... LastLast
Results 1 to 10 of 55

Thread: Beta: Lua+

  1. #1
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Beta: Lua+

    I was getting frustrated with the Lua object, so I decided to write my own. It supports, as well as the features of the original Lua object and other things:

    * Real function registration, so DoCall("Foo",12) becomes Foo(12)
    * Proper argument lists, so you can push multiple arguments and then call the function (instead of delimited lists which are slower and can't use the pipe character)
    * Direct access to the stack
    * Dynamic number of return values when calling Lua functions
    * Threaded function calling

    Bug reports and feature requests are welcome. Although this has already gone through private beta testing, it was originally only one evening of work, so expect a few bugs.

    http://www.aquadasoft.com/LuaPlus.zip (edit-time build only)

    I don't have the source to the original Lua object or anything- this is my own implementation from ground up, so don't expect everything to work exactly the same.

    The object also has an "MMF interface", an optional set of functions which provide direct control over MMF and objects. It does not currently export many functions, but I am going to implement any that people request (if possible).

    I have also made an MFA which can be used to quickly test the extension. It has a simple layout where you can enter code and test it, reading any errors. It exports a function called CreateExport(Object ID), which creates an object and exports it to the MMF interface.

    http://www.aquadasoft.com/Lua+_TestingEngine.mfa

    Thanks in advance for testing this extension!

  2. #2
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Beta: Lua+

    Current functions in the MMF interface:

    - MF_SetObjectDirection(ID,Direction)
    - MF_GetObjectDirection(ID)
    - MF_SetObjectAnimation(ID,Animation ID)
    - MF_GetObjectAnimation(ID)
    - MF_SetObjectAnimationFrame(ID,Frame number)
    - MF_GetObjectAnimationFrame(ID)
    - MF_SetObjectVisibility(ID,Boolean visible/not visible)
    - MF_GetObjectVisibility(ID)
    - MF_GetObjectHotspot(ID)
    - MF_Exit()
    - MF_MoveObject(ID,X,Y)
    - MF_UpdateObject(ID)
    - MF_SetObjectValue(ID,Value number,New value)
    - MF_GetObjectValue(ID,Value number)
    - MF_ObjectPosition(ID)

  3. #3
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    Sphax's Avatar
    Join Date
    Jun 2006
    Location
    Paris, France
    Posts
    4,454
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Beta: Lua+

    DoCall("Foo",12) becomes Foo(12)

    Maybe you can add (if not already added, I've not tested, sorry) the function "DoCall" for backward compatibility with previous scripts and maybe nice possibilities which can be done thanks to this feature.

  4. #4
    Clickteam Clickteam
    Anders's Avatar
    Join Date
    Jun 2006
    Location
    Denmark, Århus
    Posts
    3,455
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: Beta: Lua+

    You can always just code it yourself

  5. #5
    Clicker Fusion 2.5 Developer

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

    Re: Beta: Lua+

    Ah, threads. Exciting.

    Prepare yourself for further feedback.

    PS: Yay for friendly competition...and more Lua... ah, sexy sexy Lua.

  6. #6
    Clicker Fusion 2.5 Developer

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

    Re: Beta: Lua+

    Your LuaPlus.mfx doesn't appear to have version info, as in common with extensions.

    It's really hard to check what version of your extension people have without this info. If you want to help make sure people get the new versions of your extensions, please keep File Version info in tact and up to date.
    Thanks!

  7. #7
    Clicker Fusion 2.5 Developer

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

    Re: Beta: Lua+

    >CRASH:
    Err "Attempt to concatinate a local funtion value "text""
    Err "X" -- This makes no sense.. this is the parameter I passed.
    -- This is the variable name of the parameter of ping, a lua function that simply calls an MMF function print("Pong"..text)
    -- text is in no way a function
    -- It seems that if you try to call any Lua function with any parameter, things crash

    Errors are extremely unforgiving. Errors are caused, and then the EXE dies a horrible crashing death. Very user unfriendly.

    Here's an example to demonstrate the crash: http://puchisoft.com/LuaP Test.rar

  8. #8
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Beta: Lua+

    * Are you sure you have registered the function?
    * Most of the errors come from Lua, not from my extension
    * Most of the crashes come from Lua, not from my extension
    * Are you doing this in a new thread or in the main thread?

    Sorry, in a rush and not on my computer so didn't have much time to write anything out

  9. #9
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    Sphax's Avatar
    Join Date
    Jun 2006
    Location
    Paris, France
    Posts
    4,454
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Beta: Lua+

    It crashes for me. I have tried to correct it but every time lua throw an error MMF2 crash...

  10. #10
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Beta: Lua+

    How strange - that must have happened in a recent build, as it was definitely working 100% a few builds ago.

Page 1 of 6 1 2 3 ... LastLast

Similar Threads

  1. Replies: 23
    Last Post: 14th December 2013, 12:30 AM
  2. [Bugs] Android Exporter since the beta 30 (All beta testers can add to the list)
    By Koji_Kabuto in forum Android Export Module Version 2.0
    Replies: 15
    Last Post: 13th June 2012, 10:52 AM
  3. Beta 30 - .apk size file increased with Beta 30
    By Ls2 in forum Android Export Module Version 2.0
    Replies: 4
    Last Post: 29th May 2012, 03:06 AM
  4. [BUG] Test Report Koji Kabuto on the latest release (Beta 17-Beta XX)
    By Koji_Kabuto in forum Android Export Module Version 2.0
    Replies: 2
    Last Post: 18th February 2012, 02:58 PM
  5. [Beta] uLoop Object, beta only
    By Dines in forum Extension Development
    Replies: 11
    Last Post: 11th June 2009, 11:30 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
  •