Add show-time-to-next-autosave debug option to the API
Posted: Tue Jun 30, 2026 11:59 am
We have this debug setting available:
Turning it on displays time remaining to next auto-save in top-right corner:
It would be nice if we could read that value in the API. I've checked and there are two auto-save related members available: `LuaGameScript::auto_save` to perform an auto-save programmatically, and `LuaGameScript::autosave_enabled` to check if auto-saving is enabled and to toggle it.
I propose adding another property, maybe something like `LuaGameScript::autosave_time_to_next`, which would be a read-only value returning the same time remaining as that debug option (though returning it as number of ticks remaining would probably be most convenient).
Turning it on displays time remaining to next auto-save in top-right corner:
It would be nice if we could read that value in the API. I've checked and there are two auto-save related members available: `LuaGameScript::auto_save` to perform an auto-save programmatically, and `LuaGameScript::autosave_enabled` to check if auto-saving is enabled and to toggle it.
I propose adding another property, maybe something like `LuaGameScript::autosave_time_to_next`, which would be a read-only value returning the same time remaining as that debug option (though returning it as number of ticks remaining would probably be most convenient).