Godot-proposals: Autosaving (scenes/scripts)

Created on 28 May 2020  路  3Comments  路  Source: godotengine/godot-proposals

Describe the project you are working on:
3d open world game (but it doesn't really matter for this proposal)

Describe the problem or limitation you are having in your project:
If my computer hangs/crashes (e.g. because I wrote a bad shader or got a loop by mistake in a script), I lose progress.

Describe the feature / enhancement and how it helps to overcome the problem or limitation:
Autosaving, e.g. every 5 minutes, is a standard in most game engines/IDEs and prevents losing progress.

Describe how your proposal will work, with code, pseudocode, mockups, and/or diagrams:
Autosaving is often coupled with saving to .bak or some other file in addition to the main file, so that file content is not lost on I/O errors (see https://github.com/godotengine/godot/issues/38813 for one such report, and I am almost certain there was one more, too)

If this enhancement will not be used often, can it be worked around with a few lines of script?:
Nope.

Is there a reason why this should be core and not an add-on in the asset library?:
Requires core changes.

Original issue: https://github.com/godotengine/godot/issues/6236

Related: https://github.com/godotengine/godot/issues/6231

editor

Most helpful comment

Which is why it would be best if the auto save time is configurable.

All 3 comments

Auto-saving should not be default, because some workflows involve inspecting scenes without saving differences.

Some game engines have an annoying that warns auto-save is after 30s though.

Which is why it would be best if the auto save time is configurable.

Configurable time sounds good. Personally I have my IDEs auto-save after 0.5 seconds of inactivity.

It could just be set to 0 to disable it, so we don't need a checkbox in the editor settings, just a number.

Was this page helpful?
0 / 5 - 0 ratings