User Tag List

Page 43 of 43 FirstFirst ... 33 41 42 43
Results 421 to 426 of 426

Thread: XLua extention beta

  1. #421
    Clicker Multimedia Fusion 2SWF Export Module

    Join Date
    Sep 2006
    Posts
    1,537
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Heya, been over a year since xLua's been brought up, but now that MMF2.5 is running on a Unicode base, I noticed some difficulties with strings in xLua. It appears that if a Unicode string is passed via parameters in an MMF2 function call it will normalize it into ascii for Lua's strings and be able to compare, take lengths of them, etc, just fine, but if you directly pull a string from an object via the MMFI, ie, object.getstring(id,0), it will pull the 2-byte unicode string array instead of the normalized 1-byte string, and any comparisons to it with static strings will fail.

    I'm trying to think whether there is any way this could or should be fixed on either on MMFUnicode's end or on the xLua object, or if its worth it to port over one of the unicode normalization libraries (compile a .dll and use it as an external library?). I could probably just create a table look-up for my own purposes.

  2. #422
    Clicker Multimedia Fusion 2SWF Export Module

    Join Date
    Sep 2006
    Posts
    1,537
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    To add onto that- from what I can tell, all the GetString() function returns is the first letter of the string, as it mistakes the second byte for a null terminator. So even if I could compile a library to normalize unicode strings, it wouldn't do me any good. Is there any way to yank these strings out of MMF, at least, at more than a single byte? Same problem with GetName()

  3. #423
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleSWF Export Module

    Join Date
    Jul 2006
    Location
    Norway
    Posts
    325
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is it possible to create functions within an API?

    Lets say that I want to create a function for shutting down the program. I use the function shutdown() to do so and add a action in MMF to shut down the program. But i want that function to be a part of an API consisting of other functions.
    So instead of calling shutdown() I can instead call app.shutdown() where app is the API consisting of function and shutdown is the function to close the program.

  4. #424
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Posts
    1,305
    Mentioned
    14 Post(s)
    Tagged
    0 Thread(s)
    Just make an object called "app", and put your shutdown function inside it:

    app = {}
    app.shutdown = function() ... end

  5. #425
    Clicker Multimedia Fusion 2
    Retriever2's Avatar
    Join Date
    Jun 2006
    Location
    United States
    Posts
    502
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well, it's been a pretty long while since I've been around. I'm curious how this object has aged, what holes have opened up as the fusion platform has changed, etc.

  6. #426
    Clicker Fusion 2.5 Developer

    Join Date
    Dec 2006
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Retriever2 View Post
    Well, it's been a pretty long while since I've been around. I'm curious how this object has aged, what holes have opened up as the fusion platform has changed, etc.
    Hi!

    Xlua has been an absolutely necessary part of my Fusion usage ever since I was taught of its existence and how to use lua. Thanks for making it!

    It seems that mmf.newObject() has a memory leak; using it extensively accumulates memory usage, leading to an eventual crash. There are some other features with slightly similar problems but for the most part the object seems to work perfectly. The online documentation is also great. Again, thanks!

Page 43 of 43 FirstFirst ... 33 41 42 43

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
  •