User Tag List

Results 1 to 7 of 7

Thread: Ini++ saving

  1. #1
    No Products Registered

    Join Date
    Mar 2009
    Posts
    412
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Ini++ saving

    At last, its time to add some saving options to my game. I have wondered about this before, but it sounded too complicated so I waited with it... And now its time. I heard earlier that the Ini++ object was the smartest. I have looked at Ini++ tutorials and examples, but since my saving works in another way, I find it very hard to connect the info I get and my project together. Im sure that once I get it to work for my own application, Ill be able to do it on my own later. But I need some help getting started.

    My application is built in this way:

    1) Every frame is a level. And I want to add a "Start of Frame - save game (frame number and score)".

    2) I also want a maybe more tricky part, at least for me:
    On the application menu, you can select "Equipment". You start with a normal gun, but you are also able to get two more later on in the game. These two guns are grayed out, but later I have a frame that says "Congratulations, you have been awarded a new gun". I have made a global event that says when Flag 1 of Ini++ is On, Gun 2 is enambled in the menu. Just to test it, I made a "user clicks H on keyboard - Set flag 1 On", and it works. But when I restart the frame, it toggles off again. All this is probably because I failed at telling the application to save. Does anyone have a solution??

  2. #2
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Ini++ saving

    Flags don't get saved!

    You can't expect an object's internal flags to be loaded externally...

  3. #3
    No Products Registered

    Join Date
    Mar 2009
    Posts
    412
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Ini++ saving

    Eh, ok.. Then I need another idea..

  4. #4
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: Ini++ saving

    Global Values, maybe? They are unlimited.

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  5. #5
    Clicker Multimedia Fusion 2
    Fusion 2.5 (Steam)iOS Export Module (Steam)

    Join Date
    Jun 2007
    Location
    United States
    Posts
    73
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Ini++ saving

    Right. You want an ini file like this:

    [Core]
    FrameNumber = [number]
    PlayerScore = [number]
    EquippedWeapon = [number] (Give each weapon an ID number)

    [Weapons]
    Weapon1 = yes
    Weapon2 = no
    Weapon3 = no

    At runtime you would store these variables in global values, and when the game saves you would save the global values to the correct values in the ini file.

  6. #6
    No Products Registered

    Join Date
    Mar 2009
    Posts
    412
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Ini++ saving

    Yeah, that looks like something that could work. But Im a little confused on how the saving works.. Could you type an event that starts with "Start of frame", and then saves the score and the frame number in the application path?

  7. #7
    Clicker Multimedia Fusion 2
    Fusion 2.5 (Steam)iOS Export Module (Steam)

    Join Date
    Jun 2007
    Location
    United States
    Posts
    73
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Ini++ saving

    Start of Frame:

    INI++
    >Set current group "Core"
    >Current Group, Set Value "FrameNumber", 0, [number]
    >Current Group, Set Value "PlayerScore", 0, [number]
    >Current Group, Set Value "EquippedWeapon", 0, [number]

    Repeat these steps to save your available weapons.

    SPECIAL EVENTS - LOADING
    Set Global Value "X" to Retreive data from object, ini++, item value. Do the same for the other values. Define the group, item, then value to load.


Similar Threads

  1. iOS INI Saving?
    By XStar in forum Multimedia Fusion 2 - Technical Support
    Replies: 30
    Last Post: 11th August 2012, 05:00 PM
  2. saving
    By TheCrimsonTaco in forum iOS Export Module Version 2.0
    Replies: 3
    Last Post: 14th April 2012, 08:32 PM
  3. [R] New way of saving!
    By NeoMonkey in forum File Archive
    Replies: 6
    Last Post: 15th May 2010, 05:37 PM
  4. Saving
    By Klagmar in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 28th November 2009, 01:20 PM
  5. saving
    By Pritchy96 in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 5th August 2008, 04:39 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
  •