Saving data where into the game folder

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

Hi, as the title says i ask for your opinion on “automatic” data saving.
For example, when the user wants to save his progress, he can save it in the same folder as the executable

:bust_in_silhouette: Reply From: MisterMano

If you want to indicate the folder where it’ll be saved, the tutorials give the example of using ("user://"), which will vary according to the OS.

Personally, I prefer using (./), as this defines the folder where the executable is. So, ./saves would refer to the saves folder wherever the executable is, whether it is /home/bla/game (for Linux) or C:/Games/Game/game

If you plan to have the game as HTML5, do use (user://), which will save to their browser’s cache. Similar question here -