User Tag List

Results 1 to 7 of 7

Thread: Strange MMF Behaviour

  1. #1
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    UK
    Posts
    126
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Strange MMF Behaviour

    Hello,

    I was creating a stackable inventory system without much luck, so I decided to create an edit box to help me debug the code by reporting which lines where running. In doing so, the stackable inventory started to work, which was weird as I hadn't actually changed any of the events but just added some actions to output to the edit box. However, I did add the following line:

    On Loop "Inv"
    +LoopIndex("Inv") = 0
    -Change edit box text

    Anyway, I decided to delete the debugging edit box as it was no longer needed- and the inventory system stopped working again. Perplexed, I've done some experiments and have isolated the problem to the new line of code I mentioned above. When removing this line of code (or deleting the edit box to render this line blank), the system stops working, and I don't see why.

    I've uploaded the working version. Each time you press Space Bar a rabbit will be added to your inventory. The rabbits stack up 3 per item slot, and then when you next press Space the system will start stacking the next inventory slot. Now go into the event editor and remove the first line in the 'Inventory' group, and now the inventory system will stack the first slot up to 3, but won't stack the rest of the inventory slots.

    It's just weird as all that line does is change the edit box's text so I don't know why it's so crucial for my system to work :/
    Attached files Attached files

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    UltimateWalrus's Avatar
    Join Date
    Jul 2006
    Posts
    824
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Strange MMF Behaviour

    It's not your fault. MMF has some unfortunate bugs that make the order of actions not quite what you think it'd be. This can be especially troublesome if you're trying to do actions and fastloop triggers in the same event.

    I didn't spend the time to analyze why the edit object was allowing the order of actions to work as planned. But I figured it had something to do with this bug, so I did a slight reorganization of the code so that actions and fastloop triggers occur in separate events. It seems to be working fine now, let me know if you have any more problems.
    Attached files Attached files

  3. #3
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    UK
    Posts
    126
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Strange MMF Behaviour

    Ah yes thanks! I knew that you couldn't have actions such as Spread Value in the same event as a fastloop trigger but I wasn't aware that it could cause problems with other actions.

    I'll PM Francois to see if he knows why that line of code I mentioned makes it work as that's quite strange.

  4. #4
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)

    Re: Strange MMF Behaviour

    Well it was a bug and now it is corrected. Thank you for exposing the problem so well, I would have never found it without that.
    Keep your extra line until we publish the next bug correction patch.

  5. #5
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    UK
    Posts
    126
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Strange MMF Behaviour

    Ok, thank you!

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    UltimateWalrus's Avatar
    Join Date
    Jul 2006
    Posts
    824
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Strange MMF Behaviour

    []Well it was a bug and now it is corrected. Thank you for exposing the problem so well, I would have never found it without that.
    Keep your extra line until we publish the next bug correction patch. [/]

    No way! You fixed it? That bug has given me hours of grief!! Thank you so much Francois!!!!!! <img src="/center/images/graemlins/laugh.gif" alt="" /> <img src="/center/images/graemlins/laugh.gif" alt="" /> <img src="/center/images/graemlins/laugh.gif" alt="" /> <img src="/center/images/graemlins/laugh.gif" alt="" />

    Hey, by any chance could you now fix the Collision lag bug? That bug has given me days of grief. If you fix that, you will be my hero for eternity <img src="/center/images/graemlins/tongue.gif" alt="" />

  7. #7
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)

    Re: Strange MMF Behaviour

    I have not fixed it (I do not think it is a bug), but I have explained how it works. This should help you...

Similar Threads

  1. Strange MMF2 behaviour at start of SWF
    By King_Cool in forum SWF/Flash Export Module Version 2.0
    Replies: 2
    Last Post: 9th November 2012, 04:27 PM
  2. Strange behaviour when export Application.cci vs XCode project
    By AyreGuitar in forum iOS Export Module Version 2.0
    Replies: 5
    Last Post: 6th September 2012, 09:56 PM
  3. bug? strange behaviour of animation frames
    By padawan in forum SWF/Flash Export Module Version 2.0
    Replies: 2
    Last Post: 20th June 2011, 09:05 PM
  4. Strange behaviour with "Look in direction of"
    By JoKa in forum SWF/Flash Export Module Version 2.0
    Replies: 1
    Last Post: 6th April 2010, 06:51 AM
  5. Follow the frame - Strange behaviour
    By DanielRehn in forum Extension Developers Lobby
    Replies: 6
    Last Post: 29th December 2007, 09:45 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
  •