User Tag List

Results 1 to 4 of 4

Thread: This is bizarre and inexplicable:

  1. #1
    Clicker Multimedia Fusion 2SWF Export Module

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

    This is bizarre and inexplicable:


    (you might have to copy/paste the image link)



    The middle action- setting "SfxTemp" on my E-shaped object.
    Despite the values in the magicdeque and referenced global being valid, this "SfxTemp" is set to completely incorrect values.

    When it should return 430, it returns instead 1091567616



    Experimenting with it, I found that removing the absolute value on the function- the abs() term- causes it to function properly. IE now it returns 430.


    I've been testing it out though, and virtually anything I wrap around it causes it to return garbage values. Using a Floor() function does the same thing- returns 2^30 size integers. Int(), Ceil(), etc. I tried breaking up the code- setting the temporary value, then operating on it. Same result- it creates more garbage values.


    So I basically have equation that looks like this:


    (X - Y) = 430
    Abs(X - Y) = 1091567616
    Floor(X - Y) = 1077936128




    (I'm just using generic values- it operates on all sorts of numbers not just 430 and does them fine without the function calls, and each time its a different integer).




    Does the magicdeque return some kind of float that MMF2 doesn't recognize? Is there some kind of type-casting error going on here, where its trying to use a wrong format float as an integer? Why does subtraction and addition work fine, but function calls- even when used on stored, parallel copies of the value- return bizarre numbers? Whats going on here

  2. #2
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: This is bizarre and inexplicable:

    What happens if you convert it to a string?
    Working as fast as I can on Fusion 3

  3. #3
    Clicker Multimedia Fusion 2SWF Export Module

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

    Re: This is bizarre and inexplicable:

    String displays the same thing.

    I'm thinking its a possible flaw with the "Change Value" function of the magicdeque object. If I store that same equation in a *different* object like a counter, it displays the right value. But if I store it back in the deque, all future calls to that same position return garbage.

    So its telling it to change value to the correct value, but future "Get value at element/array" calls are giving the garbage

  4. #4
    Clicker Multimedia Fusion 2SWF Export Module

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

    Re: This is bizarre and inexplicable:

    heh, thanks LB ~_~
    your saying "string" made me notice something:









    I think I found the culprit. There seems to be a typo in the "Change Value" option of the magicdeque object- its using the string type! Looks like he accidentally made 2x change string options. So it must be passing a string into whats supposed to be an integer, and lord only knows how the type conversion works.

    I should email him that bug or summat

Similar Threads

  1. Inexplicable crash on Load Frame Position
    By fawfulfan in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 16th July 2012, 06:02 PM
  2. Inexplicable lua code behavior
    By keokeo in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 13th June 2011, 12:21 PM
  3. Bizarre 3-condition bug
    By Phi in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 21st May 2011, 02:36 PM
  4. MooGames bug bizarre
    By CrystalNoir in forum The Games Factory 2 - Technical Support
    Replies: 7
    Last Post: 1st August 2006, 10:00 AM

Posting Permissions

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