How to save a Godot project

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By ProPurDot

This is maybe the dumbest and easiest thing but I can’t figure it out. Does Godot automatically save any changes you make to your scenes and scripts, or do you have to manually save before exiting the program? I can save all scenes but I don’t want to close the application before making sure all of my scripts and nodes are saved and will reappear when I open my (project name).godot. Thank you to anyone for answering this dumb question, I just couldn’t find anything on the Q&A that wasn’t talking about in-game save data.

:bust_in_silhouette: Reply From: Ertain

It’s fine if you don’t know this, especially if you’re new to the Godot engine. Your scenes and project aren’t saved automatically. There are ways to save your project, though.

  • Go to SceneSave Scene
  • Press Control + S (or Command + S for MacOS)
  • Try to exit the program, and the editor will prompt you to save the project

You can also make it automatically save the scene every so often. Go to EditorEditor Settings… Then navigate to Text EditorFiles and set Autosave Interval Secs to the time in which the editor saves the scene. For instance, to save it every 10 minutes, set the interval to 600.

Edit: the “Autosave Interval…” part may only hold for scripts and other text editing parts. Still, you enable autosaving when the scene is run. Go to Editor SettingsRunAuto Save and tick Save Before Running.

I had no idea there was an autosave, I’ve been obsessively Ctrl+S’ing so much that I started doing it in Chrome and accidentally saving webpages…

DDoop | 2020-07-19 18:03

I know that feel.

Ertain | 2020-07-19 20:16

:wave: Hello everyone!

Because of the need for this autosave feature as well, I decided to create an AutoSaver Toggle plugin for Godot to help us! :raised_hands:

“AutoSaver is a peace-of-mind plugin for Godot 4 that enables a toggle to automatically save the currently open scenes and files based on a timer schedule (default is 60 seconds) and/or when the application loses focus.”

NOTE
The AutoSaver Toggle for Godot Editor is currently in early development. I welcome feedback and contributions to improve its stability and features such as porting to GDScript. Check Contributions section for more info.

The plugin is already published in the Godot Asset Library, and has the following features:

  • Creates a visible toggle to easily turn autosave on/off.
  • Automatically save open scenes (.tscn) and scripts/text files (.gd,.txt,.md,etc) at customizable intervals.
  • Option to save when the Godot editor loses focus (disabled by default)
  • The first version is written in C#, but a GDScript version is welcome (see contributions in the GitHub repo)
  • Although written in C#, it’s also compatible with GDScript-only projects using Godot .NET (check Troubleshooting)
  • Uses Godot’s built-in autosave settings (for scripts/text files in the Script Editor)
  • AutoSaver Toggle for Godot Editor by Victor R.R. Avalos

The plugin can be found in the Godot Asset Library or in the GitHub repository.

The plugin is open source, so feel free to contribute or suggest improvements.

Please let me know if you have any questions or feedback!