User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12

Thread: Clearing content of INI files (?)

  1. #1
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Jan 2009
    Posts
    1,052
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Clearing content of INI files (?)

    Is there any way for clearing all content at once of a INI file using the INI object?

    I can see the three delete actions, but what if the file has been tampered and some of the content got corrupted? Is there any way to replace the file with a new one?

    I mean, a "Clear All Content" action will suffice, there´s no need to replace the file. What can I do?

  2. #2
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    14,022
    Mentioned
    279 Post(s)
    Tagged
    3 Thread(s)

    Re: Clearing content of INI files (?)

    Just delete the file?

  3. #3
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Jan 2009
    Posts
    1,052
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Clearing content of INI files (?)

    Cannot find a way to do it

  4. #4
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Jan 2009
    Posts
    1,052
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Clearing content of INI files (?)

    Searched again, with no luck.

    Is there any MMF object/function (for the IPhone) that helps me delete a file?

  5. #5
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Jan 2009
    Posts
    1,052
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Clearing content of INI files (?)

    Ok, cannot find a way to delete/clear a file (new feature request?).

    I have found a bug: ini files/values are not being saved in the device. However, they are saved fine on the PC and the iphone simulator.

  6. #6
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleUnicode Add-on

    Join Date
    Jun 2006
    Location
    Australia
    Posts
    988
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Clearing content of INI files (?)

    Yves - the ini object can't delete files and there isn't a file management object for the iPhone. That's what BHGames is saying.

    BHGames - as a work around, either delete the groups that you need to, or set the current file to something else?

    You could maintain two inis, one with a somewhat random name, eg. "data120.ini" which holds your game data and one called "filename.ini" which simply holds the current ini file you are using. When you want to 'delete' your file, make a new random file and change filename.ini to correspond to this new file name. Load the file from the name in filename.ini.

    This is of course messy and a bad way of wasting space, but if you don't have to do it often it might be an option... until a better solution is available.

  7. #7
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Jan 2009
    Posts
    1,052
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Clearing content of INI files (?)

    @nenninja: I will use the first option "delete the groups that you need to" since the remaining ones are cumbersome. But I'd love to have a "clear all content" action in the INI object.

    But what really worries me, currently, is the bug that INI values (or the file itself) are not being stored on the device.

  8. #8
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Jan 2009
    Posts
    1,052
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Clearing content of INI files (?)

    I confirm that with beta 7, INI files are properly saved :)

  9. #9
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Jan 2009
    Posts
    1,052
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Clearing content of INI files (?)

    In beta 8, INI files are not being saved on the device.

  10. #10
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Jan 2009
    Posts
    1,052
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Clearing content of INI files (?)

    Is this fixed now? (I mean, are INI files being saved on the device?)

    One thing I noticed in Windows, if you specify ".\" as the location for your INI, the MMF editor automatically changes the route to "C:\Users\<username>\AppData\Roaming\Clickteam\fil ename.extensionyouuse". However, if you specify "./" the file is saved in the game folder.

    Now, with the new Highscore object, the associated ini file is always saved in "C:\Users\<username>\AppData\Roaming\Clickteam\fil ename.extensionyouuse", regardless whether you set ".\" or "./".

    In both cases, I used a custom extension.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. [BUG 257.17] Clearing backdrops after scrolling
    By crusher in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 28th April 2013, 09:38 AM
  2. Clearing Cache
    By Game_Master in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 17th August 2009, 12:08 PM
  3. Clearing the Cache?
    By pinacoladaxb in forum Vitalize
    Replies: 10
    Last Post: 5th June 2008, 08:18 PM
  4. Clearing the Clipboard
    By Dines in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 4th June 2007, 11:11 PM
  5. Clearing string buffer
    By Nickydude in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 5th April 2007, 11:54 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
  •