Help with saving INI on Android

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • It's been sometime since using INI - and when I did I mostly used INI++. I've had a look at the INI object on Android but I can't seem to do much with it.

    At the end of each level, I need to save the levels_unlocked value to the INI and when the game is loaded I need to retrieve that value(along with a few others).

    I'm assuming I set value levels_unlocked to item value "unlocked(or whatever name I choose)" and somehow retrieve that value when the game loads. But I can't figure out how to do this. [Edit: I now know how to retrieve values]

    I also don't know where the file is saved or how to set the file path, etc.[still at loss on how to do this with android]

    Could someone knock-up a quick example or image I can follow, or provide a tutorial for INI on Android. Thanks.

    Edited once, last by Caesar (May 25, 2014 at 11:54 PM).

  • Thanks FVivolo. After sleeping on it, I managed to solve the problems(just didn't know how to set a different save path for the INI). I'm sure your example will be useful.

  • Thanks FVivolo. After sleeping on it, I managed to solve the problems(just didn't know how to set a different save path for the INI). I'm sure your example will be useful.


    Hi, I'm using ini object inside my app, it's working fine (loading and saving values etc) except if i remove the app and install it again then ini file resets, am i missing something?
    also the link for the example is down, i would like to know how to do that if you can upload a new example that would be fantastic thank you!

  • on the google site it says that the data backup is automatic from the android 6 version, but I don't know if it also applies to the ini files and I wonder if something needs to be done on Clickteam

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!