Please help with Ini object tips

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.
  • I'm trying to finish porting my game which was fully functional for Flash export and windows export and which used the Ini object to save game data like sound settings and achievements.
    For the windows and flash exports I included the Ini file in the same folder as the exported game and set it to find the Ini file at start of frame via: Set current file to: Apppath$ + "GameData.stux"

    Will this work for an HTML5 exported game hosted on a website, or do I need to use a different approach?

    Thanks.

  • It doesn't seem to work this way in HTML5, not sure why, I'll check what's wrong in my test or in the code when I've more time (unless Fernando or anyone else knows if there is something to do to make it work).

    Another method that works: do the same, but instead of copying the INI file to the destination folder, just add it to the Binary Data tab in the Data Element editor. The file will be loaded from your application data, and will be saved locally when you write data (and will be loaded from the local copy the next time you run the app).

  • It doesn't seem to work this way in HTML5, not sure why, I'll check what's wrong in my test or in the code when I've more time (unless Fernando or anyone else knows if there is something to do to make it work).

    Another method that works: do the same, but instead of copying the INI file to the destination folder, just add it to the Binary Data tab in the Data Element editor. The file will be loaded from your application data, and will be saved locally when you write data (and will be loaded from the local copy the next time you run the app).

    Would this method you recommend also work just as well for android and IOS exports?

Participate now!

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