Jump to content

Autosave mod


Caroby
 Share

Recommended Posts

Hi guy me and my friend was trying 0.A.D over network (LAN) but we run out some problems due to losing connection from clients(poor wifi signal from one of the clients).
ChatGPT suggested that if we save it we may restore and continue our gameplay without problem, but it is not easy to remember to keep saving just in case, then I asked GPT to create a mod to autosave and it did and it works very well and I would like to share. I don't know it already exists but GPT said there is not such native function.

 

The default autosave time is 300s, but I changed mine to 60s and it doesn't freeze the game while saving. More instructions at github.

https://github.com/tiekookeit/0ad_mod_autosave
 

  • Like 2
Link to comment
Share on other sites

1 hour ago, Caroby said:

Hi guy me and my friend was trying 0.A.D over network (LAN) but we run out some problems due to losing connection from clients(poor wifi signal from one of the clients).
ChatGPT suggested that if we save it we may restore and continue our gameplay without problem, but it is not easy to remember to keep saving just in case, then I asked GPT to create a mod to autosave and it did and it works very well and I would like to share. I don't know it already exists but GPT said there is not such native function.

 

The default autosave time is 300s, but I changed mine to 60s and it doesn't freeze the game while saving. More instructions at github.

https://github.com/tiekookeit/0ad_mod_autosave

Great idea! :) So i just tried it out, and I got these warnings: image.png.4e738223620d477a2c25d72688bb9c31.png

Maybe you already did this, but if you could add a setting in the settings page that allows you to change the interval, I think that would be helpful

Link to comment
Share on other sites

Hi @Caroby! Thanks for your work on this mod!!
This is definitely a great feature to add to the game.
I wanted to mention, just in case, that if a player disconnects, you can still save the game and rehost it to resume from where they left off. The player doesn't need to be online at that moment. Aside from that detail, thanks again for this work. I haven't been able to test it yet, but autosave isn't a bad thing for anyone. :)

Edited by guerringuerrin
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...