User Tag List

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

Thread: Question about Ini object

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleInstall CreatorInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Aug 2006
    Location
    France
    Posts
    1,208
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)

    Question about Ini object

    Hello,
    I have a question about ini files on Android:
    - I have an ini file with my game level data
    - It include in my app "Binary Data"
    - At start of the frame I load the files like this:
    Code:
    * Start of Frame
    
    	+ Is running as Android application
    		ini.lang : Set current file to DataStorageDirectory$( "Android object" ) + "/data/lang/" + Lower$(language) + ".ini"
    		ini.level : Set current file to DataStorageDirectory$( "Android object" ) + "/data/lvl.ini"
    
    
    	+ Is running as Windows application
    		ini.lang : Set current file to Apppath$ + "/data/lang/" + Lower$(language) + ".ini"
    		ini.level : Set current file to Apppath$ + "/data/lvl.ini"
    I want to know if the final user can edit this file ? Or there are reload from binary data at each start of the app.
    Thanks.

  2. #2
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    6,365
    Mentioned
    218 Post(s)
    Tagged
    4 Thread(s)
    yes these INI file can be edited by user with a little bit of trick but yes
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleInstall CreatorInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Aug 2006
    Location
    France
    Posts
    1,208
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Thanks @Fernando
    Do you have a tips to prevent this ? Maybe use an MD5 key with all concatanate game level data and if it's not match in game I'm delete local file...

    EDIT: other solution is to write the file content in string object and create ini file at start of the application

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    Tiny's Avatar
    Join Date
    Jul 2006
    Location
    Sweden
    Posts
    577
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Following.

  5. #5
    Clicker Install Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    defisym's Avatar
    Join Date
    Jun 2017
    Location
    Asia
    Posts
    133
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    simply you can compare file’s modified time.
    (I’m not sure if there is a file time object on android)

  6. #6
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleMac Export Module
    dsilvers's Avatar
    Join Date
    Jun 2008
    Location
    Boston, MA
    Posts
    600
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    INI files can be edited. You can change the format extension to something like ".datastuff" or whatever to add a single hoop for them to jump through (though it will still open in text editors). Alternately you can switch to Arrays which are not nearly as easily edited.

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleInstall CreatorInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Aug 2006
    Location
    France
    Posts
    1,208
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by dsilvers View Post
    INI files can be edited. You can change the format extension to something like ".datastuff" or whatever to add a single hoop for them to jump through (though it will still open in text editors). Alternately you can switch to Arrays which are not nearly as easily edited.
    Thanks, I will change the extension name and add md5 keys for important values. Yes the array object is good but all my game load ini format data :/

  8. #8
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleMac Export Module
    dsilvers's Avatar
    Join Date
    Jun 2008
    Location
    Boston, MA
    Posts
    600
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Xenon3000 View Post
    Thanks, I will change the extension name and add md5 keys for important values. Yes the array object is good but all my game load ini format data :/
    So did mine, took me just a couple days to transfer everything over. I honestly thought it would be a LOT worse. You just need to make sure you have a legend handy to know what you're saving to each cell.

  9. #9
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    6,365
    Mentioned
    218 Post(s)
    Tagged
    4 Thread(s)
    i normally use preferences string which happens to be specific for each device and are private so is not readable by others.
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  10. #10
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    Tiny's Avatar
    Join Date
    Jul 2006
    Location
    Sweden
    Posts
    577
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Fernando View Post
    i normally use preferences string which happens to be specific for each device and are private so is not readable by others.
    What is this?

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Replies: 4
    Last Post: 28th February 2019, 03:06 PM
  2. Replies: 3
    Last Post: 16th July 2016, 08:35 PM
  3. DLL object question
    By ASD in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 2nd May 2013, 09:17 PM
  4. Get Object Question
    By BHGames in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 13th January 2011, 04:05 PM
  5. Question about AVI object in GF2
    By Ishmaru in forum The Games Factory 2 - Technical Support
    Replies: 3
    Last Post: 9th April 2007, 01:08 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
  •