So, I was curious. Is there any way for people to keep their data on a game when they download a new version of it online?
Can I update a game while saving people's progress?
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.
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 [MENTION=36127]Calder[/MENTION] what platform will this game run on?
-
'ello, thanks for replying! While I haven't made the game yet since I want to know if saving the data is possible first, it would be for Windows.
-
If you're using INI++ or Arrays or a whatever, as long as your game doesn't fundamentally change the way it reads those files and they exist in the same location, then yeah this shouldn't be a problem?
-
I've just been using regular Ini's in the game itself. I just learned there's a file location option in the Ini's properties, but will moving the folder its in mess it up because its still checking there or will it automatically change? I also learned you can do this with INI++, but I don't know how to use ++.
-
you can also use an Array to save Data. so you can reload it after every update of your game. (esp. for Mobile gaming)
-
I don't really get how arrays work. Why do they need coordinates to save values?
-
Arrays are a pretty universal thing in programming - think of it as storing data in a "table" - here is a randomly Googled tutorial: Please login to see this link.
-
Okay, while I still don't really get how they work, I was able to figure out how to use arrays. But when a player downloads a new update, it would come with its own array file. Do you just need to replace the new file with the old one, or is there some other way to do it?
-
?
You create a save file with all the info.. (like mygame.sav) your update should NEVER come with a save file.
then once you start the game you load the file back in, and set all the values wherever needed. -
?
Then how do players get the save file in the first place? Should I just have them download it separately? -
you store it on your drive somewhere, or in the same game folder.. (usually the userapp data folder)
like how any other game works with an auto save or with a save button. -
Thank you, but that doesn't really answer my question. I still don't get how players are supposed to get their own save file. Does the application itself create it or what?
-
Ehm, What do you want to do? what so you mean by players... what are you trying to accomplish
Maybe look at some tutorials..
You just create a save file... There are tons of examples on the board, you tube, the web.
a save file is just a save file... nothing more, nothing less. -
I'm working on a game in Clickteam Fusion 2.5 to upload on Please login to see this link. (A website for posting indie games for others to play), and I want anyone who downloaded a previous version of the game to be able to save their progress in case I upload a new, updated version of it for them to download (with bug fixes, improvements, etc.). I did try looking for tutorials, but I didn't find anything related to what I'm trying to do, which is why I created this thread.
-
so you create a save file, once you update your game, the savefile stays untouched. you create it just under an event
-
Using the AppData directory is the right way to go. All other save game locations may cause trouble if the app is not run with admin rights on the machine.
Before saving there you have to create a save game location using the File-object: AppDataDirectory$( "File" ) + "\mygame\". After that you can save your data there (for example an array or ini called "settings") using the File-object: AppDataDirectory$( "File" ) + "\mygame\" + "settings"
example: Please login to see this picture.
You only need to create the directory for saving once, re-creating it will do no harm tho - if the directory already exists this operation will change nothing (all save data in this directory will stay untouched).
Updating your .exe will not change or erase any files in the AppData directory. Like the others said, just make sure not to change your file saving and readout routines.
-
So if other people download the game, and it doesn't detect a save file in that directory, will it recreate it on that person's computer for any version of the game to use?
-
So if other people download the game, and it doesn't detect a save file in that directory, will it recreate it on that person's computer for any version of the game to use?
A save data directory needs to be created manually, like I outlined. If it already exists, the event to create the directory will not override the directorly or saved files in that directory. The version of the .exe does not matter, as long as the events loading the save data refer to the right AppData folder.
Tutorial on Array/ Ini plus example .mfa (not checked the download myself though): Please login to see this link.
-
Okay, I think I figured out how to do this. Thank you very much!
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!