Garry's Mod

Garry's Mod

Not enough ratings
Simple Autosave
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Build, Scenic
File Size
Posted
Updated
8.107 KB
11 Aug, 2022 @ 9:58am
11 Jan @ 12:57am
3 Change Notes ( view )

Subscribe to download
Simple Autosave

Description
Made in less than 24 hours.

Apparently, the "gm_save" console command isn't restricted in Lua for some reason. The command basically hits that "Save Game" button in the spawnmenu, so I've made a simple addon as an experiment.

This addon does basically that to save your game every 900 seconds, by default. You can change the settings under the "Utilities" category at the top-right the spawnmenu.
The timer doesn't progress if the server is hibernated, such as when the game is paused in singleplayer.

Obviously, this addon will only work in gamemodes that implement the spawnmenu (like Sandbox), though it won't error if used outside of a Sandbox-derived gamemode.
I cannot add the ability to automatically delete save files, because Workshop addons are no longer allowed to do that.

The floppy disk in the addon's thumbnail is an icon made by Lorc.



If you like my work, you have the option to donate on Ko-fi[ko-fi.com]
so that I can keep working on addons for another day. Every little bit helps!
9 Comments
Vermetra 6 Apr @ 10:25am 
dude the countless amounts of times i've accidentally disconnected before saving when I leave my pc for a bit and get bored, then forget to save has just been fixed because of you thank you so much
Piengineer12  [author] 11 Jan @ 1:09am 
Oh no... really goes to show I don't have anyone to help test my addons in multiplayer :(

I've rolled out an update that in theory fixes the issue, let me know if it didn't.
Yske 10 Jan @ 8:20pm 
Seems to act strangely in multiplayer. Host is forced to save whenever a client's timer runs out, I think. Should really be a host only thing
mingebag 30 Jan, 2024 @ 8:32pm 
This is absolutely helpful and i love this addon so much. Thank you for making this
JJoestar 9 Oct, 2023 @ 12:39pm 
Good idea for RP scene
Piengineer12  [author] 19 Aug, 2022 @ 8:30am 
That's fine. I uploaded this because I know I needed this, so there's probably someone out there that needs it too.
Grub 19 Aug, 2022 @ 12:27am 
ok nice but i dont need this
Akiyummers_ 11 Aug, 2022 @ 10:37am 
cool
Tim_Timmitus 11 Aug, 2022 @ 10:19am 
Nice!