Save state (ram dump) in Godot?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By ralime
:warning: Old Version Published before Godot 3 was released.

It’s possible to save states in Godot in a way similar to emulators? How?

:bust_in_silhouette: Reply From: Zylann

You can, but it’s going to be tedious because Godot (and most game engines nowadays) aren’t built in a way that make it easy to dump RAM like that, they run on a computer, so you would have to ask the OS to do it and… well it’s not easy.

But you can have a look at how savegames can be made already, there have been some questions about it on this website already, as well as a doc: Saving games — Godot Engine (stable) documentation in English

It can be as simple as saving some variables to a JSON files, up to being the entire scene tree (which is what .tscn files are, to some extent).