User Tag List

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

Thread: Array... help!

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module

    Join Date
    Mar 2010
    Location
    Lier, Norway
    Posts
    276
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Array... help!

    I'm using array to save scores and stars for each level in my game, and this works great on my iPhone 4s (and in mmf).
    BUT, when I run the game on an iPhone 3Gs or on the iOS simulator it doesn't work.

    In a test level I load the .arr file at start of frame, write the score and star value, and save the .arr file.
    The score and star values are loaded from the array in the episode select and level select screen.
    This only works on a few (random levels) when I run the game on the 3Gs or on the simulator.

    Skjermbilde 2012-04-11 kl. 06.17.10.jpgSkjermbilde 2012-04-11 kl. 06.06.51.jpg

    Before I took these screenshots of the episode and level select screen I played through 12 test levels (which have the exact same events) and gave 3 stars on every level.
    This time it only worked on level 3,6,9 and 12.

    Anyone have an idea why this is happening? Any help is greatly appreciated =)

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleInstall Creator Pro

    Join Date
    Jul 2006
    Location
    Germany
    Posts
    1,090
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Haven't run many tests on iPod 3 yet, but so far no problems with arrays. I don't load them at start of frame, maybe that makes a difference? Do you load and save in the same event?
    Note: I'm not running the MMF beta, but I think it makes sense to check these details generally.

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    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)
    Koji_Kabuto's Avatar
    Join Date
    Jul 2006
    Location
    Venezuela
    Posts
    2,847
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    If you are running your game with the beta 4, you have certain problems like the one I report INI files and open URL, Francois on the post of beta 4 responded that I get an update today.

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module

    Join Date
    Mar 2010
    Location
    Lier, Norway
    Posts
    276
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by JoKa View Post
    Haven't run many tests on iPod 3 yet, but so far no problems with arrays. I don't load them at start of frame, maybe that makes a difference? Do you load and save in the same event?
    Note: I'm not running the MMF beta, but I think it makes sense to check these details generally.
    Hi,
    Save and load are not in the same event, but I do load the array at start of the frame.
    Hmm, I will definitely check this out. I just found it really strange that it only works 100% on the 4s.
    (I have not tried with iPhone 4 though)

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module

    Join Date
    Mar 2010
    Location
    Lier, Norway
    Posts
    276
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Koji_Kabuto View Post
    If you are running your game with the beta 4, you have certain problems like the one I report INI files and open URL, Francois on the post of beta 4 responded that I get an update today.
    I didn't know that, thanks! I am running beta 4 =)

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module

    Join Date
    Mar 2010
    Location
    Lier, Norway
    Posts
    276
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I tried loading the array with "run this event once" instead of "start of frame", and now it works on the simulator. Not on the iPhone 3gs.

    Skjermbilde 2012-04-11 kl. 15.11.19.jpg

  7. #7
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleInstall Creator Pro

    Join Date
    Jul 2006
    Location
    Germany
    Posts
    1,090
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is it a global array? Looking at the history of this beta an issue with global arrays should be fixed, though.

  8. #8
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module

    Join Date
    Mar 2010
    Location
    Lier, Norway
    Posts
    276
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I thought that was fixed.. but yes, it is a global array.. no wonder it doesn't work. =/

  9. #9
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module
    Pineapple's Avatar
    Join Date
    Oct 2010
    Posts
    431
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I was having an issue with arrays in iOS. If I didn't set the dimensions in the array settings, the array wouldn't work right on iOS. (though it would work fine on the PC). I haven't checked the latest beta's to see if this behavior still exists.

  10. #10
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module

    Join Date
    Mar 2010
    Location
    Lier, Norway
    Posts
    276
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Pineapple View Post
    I was having an issue with arrays in iOS. If I didn't set the dimensions in the array settings, the array wouldn't work right on iOS. (though it would work fine on the PC). I haven't checked the latest beta's to see if this behavior still exists.
    That could be my issue too, but I'm not sure what to put in the dimensions.
    The game has 200 levels, and I want to store 3 values from each level:

    level , enable
    level , score
    level , stars

    Numeric array, base 0 index
    X dimension: 2
    Y dimension: 2
    X dimension: 1

    Will this be the correct set up?

Page 1 of 2 1 2 LastLast

Similar Threads

  1. NEED HELP! IOS and Array
    By Deathkiller in forum iOS Export Module Version 2.0
    Replies: 3
    Last Post: 2nd April 2013, 07:49 AM
  2. Dynamic Array - Sort 2 dimension array by Column 1
    By Ryan in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 16th December 2012, 04:54 AM
  3. Dynamic Array to Binary Array problems
    By BREK in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 22nd March 2010, 10:48 PM
  4. Array help
    By Zabooza in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 21st April 2009, 03:02 AM
  5. [Request] Array of array - possible for $$$
    By Blizna in forum Extension Development
    Replies: 9
    Last Post: 29th December 2007, 11:13 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
  •