User Tag List

Results 1 to 4 of 4

Thread: Way to Save Separate Game Files with INI?

  1. #1
    No Products Registered

    Join Date
    Apr 2007
    Location
    Summerville, SC
    Posts
    58
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Way to Save Separate Game Files with INI?

    Hi, I'm making a game where it's like a virtual life where you get stats and I'm using an INI object to save the information. Although I was wondering if there is a way to save game data as separate game files, eg: Jeff made a new game file, and after he types in his new username and password that information gets saved into a new INI file titled Jeff's username. Also if someone could tell me how to load those certain INIs, that would be great. Thanx!

    Jdsfrog

  2. #2
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Way to Save Separate Game Files with INI?

    Yes, you can do this by using the "Set file" action of the INI object. As you can include strings in the expression that are alterable as well as those that are fixed, you could use something like
    Code:
    On start of frame: Set file of INI to PlayerName + "-save.ini"
    to make it point to the correct file (assuming your player name is stored in a global string called PlayerName).

  3. #3
    No Products Registered

    Join Date
    Jun 2006
    Posts
    1,630
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Way to Save Separate Game Files with INI?

    Quote Originally Posted by DavidN
    Yes, you can do this by using the "Set file" action of the INI object. As you can include strings in the expression that are alterable as well as those that are fixed, you could use something like
    Code:
    On start of frame: Set file of INI to PlayerName + "-save.ini"
    to make it point to the correct file (assuming your player name is stored in a global string called PlayerName).
    But if the game has limited slots, it gets simpler than that doesn't it? If slot 1 selected, load from file "slot1.ini"? To create a new player like Jeff,player would have to erase previous profile in order to create another one in its place.

  4. #4
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Way to Save Separate Game Files with INI?

    You can also do that, and it's probably slightly easier (just keep a global value that can be either 1, 2 or 3). I tend to use the name method to avoid having any slot limits, although to be honest I can't imagine most people needing many more than three saved game slots on the same computer these days.

Similar Threads

  1. The right way to save ini files?
    By yuigoto in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 31st December 2013, 12:36 AM
  2. INI files for save game
    By Drcooper in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 25th June 2010, 02:34 AM
  3. Save status of entire game (load / save values)
    By DEKE15 in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 13th September 2009, 10:17 AM
  4. Ways for INIs to save multiple game files?
    By Jdsfrog in forum Multimedia Fusion 2 - Technical Support
    Replies: 31
    Last Post: 15th April 2008, 05:02 AM
  5. Installing two files to separate directories
    By laurim in forum Install Creator and Patch Maker
    Replies: 2
    Last Post: 7th January 2007, 02:50 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
  •