+1 vote

I've made a game and tried exporting it, I imagine what I've encountered has been asked before but I'm lost. Everything is completely off, themes are messed up (making me think the tres files aren't loading, even though I can see them under assets in the apk file), the ui is massively shrunk, nothing loads correctly and more or less everything in the game is broken. What could have gone wrong, and what are the steps to solving this?

asked Jun 30 in Engine by psear (103 points)

1 Answer

0 votes
Best answer

Just in case anyone finds this, I've solved it myself. In my game, a huge part of the setup involves reading a config file, which I initially had in res://. This file at times needs to be written to, and for files that need to be stored persistently we should use the path user://. That solved a huge amount of the issues.

answered Jun 30 by psear (103 points)

How do I make the path user: //.?
Could you make a video about it?

Sorry about the late reply. I can't really make a video about it, but here is a short explanation:

var conf = ConfigFile.new()

It really is just changing the path. You don't have to setup the path yourself, godot will save the data in a user folder (which is in a different place depending on operating system). The reason to do this is res:// will install in a read-only location when you export it, so to get around config files that need writing to, you put them in user://. You won't see it in the res:// folder. Where the user:// path is located depends on the operating system, information here: https://docs.godotengine.org/en/3.0/tutorials/io/data_paths.html

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.