0 votes

I'm using ResourceSaver.save() to save scenes in my script for example:
ResourceSaver.save("res://Scenes/19.tscn", packed_scene2)

And it works fine in the engine, but after exporting I get the pleasantly vague message;
Error: Cannot save file 'res://Scenes/19.tscn'.
At: scene/resources/resource____format____text.cpp:1470

I've used print(packed_scene2) to make sure that it's not an issue with the variable, but that doesn't seem to be the case.

in Engine by (60 points)

So I'm realizing now that I probably can't save files at "res://" after exporting and that any resource files created after exporting will have to be seperate from the executable. Can someone confirm this?
And in that case I should probably use .scn files instead of .tscn?

Please log in or register to answer this question.

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 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 webmaster@godotengine.org with your username.