User Tag List

Results 1 to 5 of 5

Thread: Now to reset INI file?

  1. #1
    Clicker Multimedia Fusion 2 DeveloperAndroid Export ModuleiOS Export Module

    Join Date
    Dec 2010
    Posts
    56
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Now to reset INI file?

    I know that in the Hi-Score object there is a very easy right-click and simply choose "Reset", but how do you do this in an INI file? Do I write default, or put a 0 somewhere? I've tried to reset the high scores in my game with a Reset button I made, and when clicked, everything will go back to 0 (Set Counter1 to 0) , but as soon as you go away from the frame and start playing again, then go back to the screen, all the old high scores are still there....how to really reset?

    This is what is in the event editor now, to create the score:

    INI - Set value value ("Counter1") to item xxx in group xxx

    Am just not sure where to go from here...any ideas welcome!

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleMac Export ModuleUnicode Add-on
    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)
    AyreGuitar's Avatar
    Join Date
    Jan 2011
    Location
    Wales, UK
    Posts
    1,113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't use the INI object, but have done similar things with the Array object:
    Just save a blank INI file, call it reset.ini, then when you want to reset your ini file completely, just load reset.ini and save it over your original (eg score.ini)

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    oruga's Avatar
    Join Date
    Feb 2012
    Posts
    366
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've done this by manually setting all values to 0.

    example:
    life=0
    world=0
    flag1=0
    flag3=0

    This, however, may be very hard to do in certain situations where you have lots of values.

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module

    Join Date
    May 2012
    Location
    NSW, Australia
    Posts
    405
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think with INI++ it is easy. As you can get the number of items in a group quite easily, loop through them, set value to 0.
    Unfortunately the INI++ isn't compatible with other runtimes
    Ayregutiar's idea is nice and simple if it will implement in the way you currently store values.

  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)
    make sure you're actually saving the new data and loading from the new data (which should all be 0).

Similar Threads

  1. Reset angle?
    By Warmachine in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 23rd June 2013, 05:40 PM
  2. Reset Direction Animation
    By RickyRombo in forum File Archive
    Replies: 1
    Last Post: 4th June 2008, 02:24 AM
  3. How to reset the Hi-Score ?
    By vesperillo in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 20th October 2007, 06:30 PM
  4. Reset Highscores
    By aaron in forum The Games Factory 2 - Technical Support
    Replies: 1
    Last Post: 2nd October 2007, 07:02 AM
  5. disabeling the f2 reset feature
    By BrashMonkey in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 24th August 2007, 08:03 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
  •