User Tag List

Results 1 to 6 of 6

Thread: The right way to save ini files?

  1. #1
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS 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)
    yuigoto's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    The right way to save ini files?

    I'm sorry if my question is a duplicated one.

    I got MMF2 through Humble Bundle and now (finally, since I'm done with work) I'm digging through all the tutorials in the ClickTeam website before I start making something. Right now I'm stuck in the "ini file tutorial".

    The tutorial says that, by not specifying an absolute path, the file is saved automatically in the application folder, but if I build and run the executable no file is created (I've also de-selected the "Create INI file in Application Data folder", in the object properties).

    Is there a way to save the ini file in the application folder? Do I have to use a relative path or a specific variable?

    Thanks!

    Also, thanks ClickTeam for MMF2 (hoping to upgrade to Fusion 2.5 soon! )!

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    happygreenfrog's Avatar
    Join Date
    May 2011
    Location
    I.L.T.D.O.I.R (I.L.T.D.O.I.R's Location: The Dimension Of Infinite Recursion)
    Posts
    4,307
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    It is possible to save in the application's folder, but you shouldn't. If you do, and your program is installed to the Program Files folder, then, because of Windows, everyone will need to run your program as an administrator, and that could cause some problems since some people can't. The "Create INI file in Application Data folder" is what you should use. It creates the file in a special folder, which isn't in the same folder as your application. Said special folder is where all Windows developers are supposed to save data now (from what I know), and it is called the "Application Data" folder, or the "AppData" folder for short.

  3. #3
    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,366
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    Hey, that tutorial was originally written in 2001, by me, and things might have changed since then.
    If you un-tick the "Create INI file in Application Data folder", the ini-file will be created in the Windows folder.

    Anyway, if you want to create the ini-file in your applications's folder, you may do so in the eventeditor.

    * Start of frame
    - Ini: Set Current file:
    apppath$+"filename.ini"

  4. #4
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS 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)
    yuigoto's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks, happygreenfrog and Popcorn!

    Just wanted to know how to use it well. I'll try to save the ini file in the application folder as a last resort only then.

  5. #5
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS 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)
    yuigoto's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ah yes, salamanderpants! Some applications I intend to build as a portable exe and probably will do like this.

    Thanks!

    I've also seen that there's a SQLite object. Since I'm using it almost on a daily basis (with some PHP projects I'm building), I'll try using it too. :P

  6. #6
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS 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)
    yuigoto's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh, ok! Thanks! (and sorry for the delay) =P

    Guess I'll be sticking with MMF2 for a while...

Similar Threads

  1. Newgrounds Save Files
    By Mephistus in forum SWF/Flash Export Module Version 2.0
    Replies: 8
    Last Post: 2nd April 2013, 12:39 AM
  2. Save games and .ini files
    By Gamemaker10 in forum The Games Factory 2 - Technical Support
    Replies: 6
    Last Post: 30th November 2010, 05:29 AM
  3. Save and load jpg files
    By Earl in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 15th September 2010, 03:44 AM
  4. INI files for save game
    By Drcooper in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 25th June 2010, 02:34 AM
  5. Problem with save files
    By Yima in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 20th February 2008, 10:49 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
  •