ini object to save HTML5 game not working

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.
  • Hi,

    I want to use an ini object to save game data locally. It works when I test it in Fusion, but does not work when I build and run in HTML5 format. I haven't been able to figure it out, but I'm new to the ini object. Does it work with HTML5? Any ideas what I might be missing? Thanks for any help you can offer.

    Brett

  • The HTML5 object has an action to write cookies, and an expression to read them
    Also, extensions like INI and Array save data as cookies for the HTML5 runtime if I remember correctly (not sure why it's not working with you, maybe it was never implemented and it's just a false memory, or only works if loaded from binary data)

    Game/App developer, artist and a community contributor.
    You can support my work on: Please login to see this link.

  • Thanks Linky,

    I eventually figured out that it had to do with the timing of events being different in exe and html5 games. Now it is working because I triggered the INI events differently. Also, it appears that the INI saves to the browser's local storage rather than as a cookie. Thanks for your suggestions,

    Brett

Participate now!

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