User Tag List

Results 1 to 6 of 6

Thread: [BUG] Weirdness involving String objects and division?

  1. #1
    Clickteam Clickteam
    Olivier's Avatar
    Join Date
    Jun 2006
    Posts
    3,000
    Mentioned
    9 Post(s)
    Tagged
    1 Thread(s)

    [BUG] Weirdness involving String objects and division?

    In blank app just add a String object and this event and you'll get a nice crash in Xcode with the message "error: address doesn't contain a section that points to a section in a object file".
    Code:
    • Only one action when event loops
       - Special conditions : Set Global Value A to npara("String")/2
    Dividing by 2.0 doesn't make the app crash. I'm using MMF Unicode.

    EDIT: The crash has nothing to do with the actual number of paragraphs hold by the String object.

  2. #2
    Clickteam Clickteam
    Olivier's Avatar
    Join Date
    Jun 2006
    Posts
    3,000
    Mentioned
    9 Post(s)
    Tagged
    1 Thread(s)
    Might have something to do with these fixes from beta 2:
    Quote Originally Posted by Yves View Post
    Bug fixes and new features in Build 256 - Beta 2
    - String object crashed when getting the N'th paragraph
    - Strings used as parameters of events were corrupted after a jump to frame jumping at the same frame

  3. #3
    Clickteam Clickteam
    Olivier's Avatar
    Join Date
    Jun 2006
    Posts
    3,000
    Mentioned
    9 Post(s)
    Tagged
    1 Thread(s)
    There's really a problem with the npara("String") expression. Whatever calculation I do with it, the result remains unchanged, I get the total number of paragraphs of the String object. With a String object holding 6 paragraphs, I get the following:
    Code:
    npara("String") = 6
    npara("String") / 2.0 = 6
    ( npara("String") / 2.0 ) * 0 = 6
    npara("String") / 2 = app crash
    ( npara("String") / 2 ) * 0 = app crash

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleMac Export ModuleUnicode Add-on
    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)
    AyreGuitar's Avatar
    Join Date
    Jan 2011
    Location
    Wales, UK
    Posts
    1,113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Olivier - perhaps as a workaround try setting an Global/Alterable Value to npara("String") and use that, e.g.
    Global Val A=npara("String")
    Global Val A / 2.0 or whatever

  5. #5
    Clickteam Clickteam
    Anders's Avatar
    Join Date
    Jun 2006
    Location
    Denmark, Århus
    Posts
    3,456
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)
    Fixed for next release

  6. #6
    Clickteam Clickteam
    Olivier's Avatar
    Join Date
    Jun 2006
    Posts
    3,000
    Mentioned
    9 Post(s)
    Tagged
    1 Thread(s)
    Yes AyreGuitar, that workaround would probably work, didn't tried it yet. Hopefully the next release will be ready soon, so I don't have to change my code in my numerous frames. Thank you for the fix AndiOS!

Similar Threads

  1. Questions involving Steam
    By BartekB in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 17th September 2013, 10:01 PM
  2. exe works; Flash exported weirdness.
    By nim in forum SWF/Flash Export Module Version 2.0
    Replies: 7
    Last Post: 8th May 2013, 04:50 PM
  3. string weirdness
    By Jafa in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 6th January 2011, 03:09 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
  •