The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates. | Twitter

0 votes

I made a script which reads .json files in my res:// and makes dialogs out of them. It works fine, but when I export my game it crashed, because there is no res:// any more and the .json files dont get exported with all the other files.

Is there a other text format which gets exported because a .png file for example gets exported ,too?


Is there a way how I still can read the .json files after the game was exported


Is there a way how to get these .json files to the user:// path which still exists after exporting, but then there must be a installation programm which creates the .json files in the user:// folder when someone installs the game the first time.

Godot version Newest (3.2)
in Engine by (378 points)

2 Answers

+4 votes
Best answer

.json files are not exported by default. You must specify them to be exported in the Resources tab of the export menu.

by (8,550 points)
selected by
0 votes

You can export JSON by adding *.json to the type of resources to export in the Export menu, Resources tab.

by (50 points)
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.