User Tag List

Results 1 to 5 of 5

Thread: Saving/Loading 250 Global Values to/from INI

  1. #1
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS 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)
    DaveC's Avatar
    Join Date
    Jun 2007
    Location
    Perth, Australia
    Posts
    2,132
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)

    Question Saving/Loading 250 Global Values to/from INI

    G'day,
    I've been planning my next iOS game (haven't quite finished my current one lols) and I'm wondering if this idea will cause me problems..? what I want is this, at the start of the game, the player loads his saved data, this will transfer around 250 ini entries into 250 global values, just once, at the start of the game. Then whenever the player saves his game, it will pause and write those same 250 global values back into their corresponding ini entries.. so my question(s)

    1 - will global values have a noticeable impact on the games performance, especially if there's 250+!?
    2 - should I expect any trouble writing that much data at once to an ini file..? what would happen if the player quit while the game was saving?

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module

    Join Date
    Nov 2011
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    an intersting question and as someone who knows virtualy nothing about how to use the ini.object i cant really answer your question but i would likie to see the results... you could do a test run with a lower starting point and increase until it breaks lol

  3. #3
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module

    Join Date
    Aug 2011
    Location
    Beverly Hills, CA USA
    Posts
    508
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have see little to no impact on performance by using large INI files (random reading from thousands of lines) or writing to INI files with several to a dozen values many times throughout an app. Given the cross-platform nature of the INI file I think it's a great container for this type of data.

  4. #4
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Nov 2011
    Posts
    63
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What do you guys think of arrays? I have the same problem as the op but i think i will go with arrays... I am not sure if there is a big performace difference...

  5. #5
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS 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)
    DaveC's Avatar
    Join Date
    Jun 2007
    Location
    Perth, Australia
    Posts
    2,132
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    thanks for the info Keith, looks like I can continue planning with this method in mind ^_^ Morbus, I've use arrays in the past.. they're very similar to INI's however IMO slightly less user friendly. With an INI you can very easily open it up to see what is written and where, but with arrays it's not so simple..

Similar Threads

  1. Saving Group info to Global Values
    By matt_barr in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 22nd October 2009, 04:37 PM
  2. saving/loading objects and fixed values
    By uprize in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 29th September 2009, 06:43 AM
  3. save global values without saving the whole frame?
    By Skeets in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 7th December 2008, 04:48 AM
  4. Saving global values?
    By TSC in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 30th May 2008, 05:25 PM
  5. Saving Global Values
    By Jdsfrog in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 11th June 2007, 12:52 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
  •