0 votes

hi, after i export game,resource_saver dont saving scene
my code:

ResourceSaver.save("res://scenes/level_chooser.tscn", packed_scene)

ResourceSaver.save("res://saves/scene_saves/"+ level_name, packed_scene)

in engine it works

Godot version 3.4
in Engine by (99 points)

1 Answer

+1 vote
Best answer

"res" folder is only there during creation process. You should create new directory in real folder every user will have on every CPU. Most typically User/Appdata is used for this

by (7,753 points)
selected by

thank you!!! can i make a folder in "user"?

You can make folder wherever You want. It is just good convention to make it in User/Appdata/projectname, this is where Your game will propably be installed on all devices after export

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.