User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11

Thread: How pause a lua script in xlua?

  1. #1
    No Products Registered

    Join Date
    Dec 2008
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How pause a lua script in xlua?

    How to Pause a lua script running in xlua?
    (without busy-waiting)

    I tried to find How to, but only to fail, fail and fail.

    a. Using 'while' command : busy waiting, fail
    b. Using coroutine : xlua doesn`t support coroutine...
    c. Using C lib : ............... I tried. but cannot found.


    Only I need is .....
    Pause a script for a while without busy-waiting in xlua
    like 'sleep()' function in C.

    please help me out...

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,741
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: How pause a lua script in xlua?

    b. Using coroutine : xlua doesn`t support coroutine...
    Well, it does. Retriever2 actually made me an example before. I'll see where I can find it.

    EDIT: Here it is. http://hocuspocus.taloncrossing.com/rii/coroutine.zip
    I'm sure he allows me to link it here, as it's n his public directory anyway.

  3. #3
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Aug 2006
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How pause a lua script in xlua?

    Quote Originally Posted by Looki
    Well, it does. Retriever2 actually made me an example before. I'll see where I can find it.
    Cool example, in the events it says Zephni's Lua Example though but im guessing thats maybe another nick used by Retriever2. In any case thanks for posting.

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

    Re: How pause a lua script in xlua?

    Ah, actually, I forgot about that part. :blush:
    He didn't release it because he didn't actually make it - It was just an updated/modified version of Zephni's old example.

  5. #5
    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: How pause a lua script in xlua?

    Yes, it's not my example. In fact I didn't even port it, I just fixed some bugs! So credit to where credit is due, but regardless I think it's a helpful example.

  6. #6
    No Products Registered

    Join Date
    Dec 2008
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How pause a lua script in xlua?

    Oh! Thanks for help and really useful Example!

    I didn`t realize xlua does support coroutine!

  7. #7
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    UrbanMonk's Avatar
    Join Date
    May 2008
    Location
    Southern U.S.A.
    Posts
    847
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: How pause a lua script in xlua?

    I'm the one who ported the code for that example, and Retriever2 fixed it for me!

    http://www.create-games.com/forum_post.asp?id=264058&show=all

    I asked some other questions on that thread about coroutines too, and I refer back to it whenever I forget something.

  8. #8
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: How pause a lua script in xlua?

    Hi UrbanMonk. That link on TDC goes to a page that does not exist. Thought I would let you know.

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  9. #9
    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: How pause a lua script in xlua?

    It works for me ... maybe they require you to be registered and logged in?

  10. #10
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: How pause a lua script in xlua?

    Why, but anyway I get 404 now.

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

Page 1 of 2 1 2 LastLast

Similar Threads

  1. XLua
    By Retriever2 in forum Released Extensions
    Replies: 6
    Last Post: 13th August 2017, 07:42 PM
  2. Replies: 10
    Last Post: 15th October 2012, 04:33 PM
  3. xLua - pause execution
    By Looki in forum Extension Development
    Replies: 5
    Last Post: 26th November 2009, 02:40 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
  •