Garry's Mod

Garry's Mod

26 个评价
Simple Autosave
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 工具
插件标签: 建筑, 风景
文件大小
发表于
更新日期
8.107 KB
2022 年 8 月 11 日 上午 9:58
1 月 11 日 上午 12:57
3 项改动说明 ( 查看 )

订阅以下载
Simple Autosave

描述
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 条留言
Vermetra 4 月 6 日 上午 10:25 
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  [作者] 1 月 11 日 上午 1:09 
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 1 月 10 日 下午 8:20 
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 2024 年 1 月 30 日 下午 8:32 
This is absolutely helpful and i love this addon so much. Thank you for making this
JJoestar 2023 年 10 月 9 日 下午 12:39 
Good idea for RP scene
Piengineer12  [作者] 2022 年 8 月 19 日 上午 8:30 
That's fine. I uploaded this because I know I needed this, so there's probably someone out there that needs it too.
Grub 2022 年 8 月 19 日 上午 12:27 
ok nice but i dont need this
Akiyummers_ 2022 年 8 月 11 日 上午 10:37 
cool
Tim_Timmitus 2022 年 8 月 11 日 上午 10:19 
Nice!