User Tag List

Results 1 to 2 of 2

Thread: Overwrite pre-existing data in INI?

  1. #1
    Clicker Fusion 2.5Android 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)
    MasochisticGamer's Avatar
    Join Date
    Nov 2012
    Location
    Gravois Mills. MO USA
    Posts
    76
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Overwrite pre-existing data in INI?

    Using INI++ 1.5 to save option data in my game. I have the following setup in the INI itself.

    Code:
    [options]
    fullscreen=0
    screenscale=2
    soundvol=100
    musicvol=100
    It loads data from the INI just fine. It's WRITING to the INI that I seem to be having trouble with.

    Example: Let's say you set the screen scale to 2x (which would be a value of 1 saved to the INI).

    Start of Frame:
    • Appdrive$ + Appdir$ + "options.ini" (Load file, keeping the old path, keeping the data in the current object.)


    Player Pressed Button (Okay):
    • Set Item "fullscreen" in group "options" to value FScreen("Active")
    • Save INI


    For some reason, the value for fullscreen stays the same. Nothing changes.

    EDIT: When looking in the debugger, the data is changed there. But just not saved. And for the life of me I have no idea why.

  2. #2
    Clicker Fusion 2.5Android 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)
    MasochisticGamer's Avatar
    Join Date
    Nov 2012
    Location
    Gravois Mills. MO USA
    Posts
    76
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Found the issue. In order to save the data, I have to set the default INI file to the extension in the frame. Otherwise, it loads the data, but not the file to edit.

Similar Threads

  1. Replies: 1
    Last Post: 26th June 2015, 10:28 PM
  2. ICP Biuld 44: Check for existing Reg-Key the Installer overwrite the existing Key?
    By salventhor in forum Install Creator and Patch Maker
    Replies: 3
    Last Post: 21st January 2014, 09:58 AM
  3. Using existing code in a new app
    By soarerv8 in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 23rd January 2013, 05:02 AM
  4. Request to overwrite protected files
    By Frank in forum Install Creator and Patch Maker
    Replies: 3
    Last Post: 4th November 2008, 09:00 AM
  5. Copy & overwrite file in Vista
    By Bipolar_Games in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 26th September 2008, 08:30 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
  •