Auto save with an array issue

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.
  • So I'm attempting to create an auto save system for my game which saves the game every 5 seconds or so... The issue is that the array for my world data is already over 1MB in size and growing, and when I save the array, the game "hiccups" for a split second while it's saving. There's a noticeable lag which is really unacceptable for any game every 5 seconds of play.


    So is there any trick or way of auto saving an array while avoiding this issue? Or am I going to be forced to having the player manually save their game? How do other games save data on the fly without it causing lag issues?

    Please login to see this link.

    My examples:
    Please login to see this link.
    Please login to see this link.
    Please login to see this link.

  • It's a number array that's like 1500 X dimension and 10 Y dimension.

    There's just no way to currently save like a small bit of data at a time. It's save the whole file or nothing.

    Saving at app end could work but then if the game or computer crashes you'd lose hours of progress.

    Please login to see this link.

    My examples:
    Please login to see this link.
    Please login to see this link.
    Please login to see this link.

  • It appears the Ini++ object can save/load objects including it's variables and strings... Only issue is that it appears the latest version of the extension the object load isn't working. Anyone know who I'd contact about getting it fixed?

    Please login to see this link.

    My examples:
    Please login to see this link.
    Please login to see this link.
    Please login to see this link.

  • Nevermind, something about the folder pathing was screwing it up. I got the saving/loading of objects working with Ini++... I'll test to see if this is a viable solution :)

    Please login to see this link.

    My examples:
    Please login to see this link.
    Please login to see this link.
    Please login to see this link.

  • Surely you don't need to save to a file every 5 seconds? Wouldn't it be enough to save to RAM every 5 seconds, and then just save what you have in RAM to a file every few minutes and/or when the user quits? You could potentially even capture an alt-f4 keypress and automatically save then.

    Please login to see this link.
    My Fusion Tools: Please login to see this link. | Please login to see this link. | Please login to see this link.

Participate now!

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