[Solved] Saving data.json in appdata

So, i have finally after a long time figured out how to save gamedata on my computer

HOWEVER i have no idea on how to save it in appdata, all i know is how to save it in the gdevelop 5 appdata folder, documents, downloads and photos

How do i edit this action to make it create the data in my game’s appdata folder?

FileSystem::DocumentsPath() + FileSystem::PathDelimiter() + “Hello.json”

FileSystem::UserdataPath() will save in your game’s appdata folder once you actually build your game.

When you are previewing your game, it is GDevelop that is running, not your game, so any attempts to use the appdata folder will save into/show the GDevelop’s appdata folder instead.

Side Note just in case: You cannot save to a local file if you’re running the game on the web or previewing on a web build.

1 Like

oh so thats why i found it in the gdevelop folder, thank you for the help :smile:

1 Like