User Tag List

Results 1 to 5 of 5

Thread: Reset the INI file start of game problem

  1. #1
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Evilized79's Avatar
    Join Date
    Nov 2009
    Location
    Netherlands
    Posts
    889
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Reset the INI file start of game problem

    I have alot of objects in my game where I save and load them in a ini file but I want the ini file to reset at the start of the game, and I don't know how to do it.
    anyone have an idea?

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS 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)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,365
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    To reset an inifile, you can simply delete the file. If the file doesn't start out blank, you could have one ini file that has all the start of game values, and then let the actual inifile copy that file at the start of the game. In either case, you might benefit from not using an ini file at all, but global values / strings instead.

  3. #3
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export Module

    Join Date
    Dec 2013
    Posts
    156
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can do this using the file object.

    Start of frame
    + File(File):Appdir$ + "my.ini" exists
    --> Delete the file Appdir$ + "my.ini"

  4. #4
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export Module
    Janette5's Avatar
    Join Date
    Dec 2014
    Location
    Western Cape, SA
    Posts
    1,159
    Mentioned
    199 Post(s)
    Tagged
    0 Thread(s)
    I use different groups inside the ini file.

    Settings like music / sound is in a group and the player's score / objects are in another group. To reset the game the player can either press a button that deletes that group - or choose another player / save slot - which lets them keep their game but also start a new game.

    If you choose to delete the ini file - you will have to re-save whatever main settings are saved in there, unless you use different ini files.

    But I agree with Popcorn, it doesn't sound like you really need an ini file.

  5. #5
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Evilized79's Avatar
    Join Date
    Nov 2009
    Location
    Netherlands
    Posts
    889
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Thanks for all the help people, I might actually delete the ini's and use the Gobal Values

Similar Threads

  1. Android OBB expansion file won't start to download
    By ASD in forum Android Export Module 2.5
    Replies: 18
    Last Post: 8th May 2019, 12:11 PM
  2. Replies: 2
    Last Post: 5th November 2017, 11:52 PM
  3. Now to reset INI file?
    By 1234cb in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 10th June 2013, 06:04 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
  •