Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Adham | |
Old Version | Published before Godot 3 was released. |
Somewhere in my game code I have this line:
my_game_settings.parse_json(file.get_as_text())
where the file has the path ‘res://settings.cfg’. I am choosing not to save to user:// since this isn’t a game save but something only internal.
In the editor when playing the scene, it works just fine & loads the file with no errors.
However, when I build an .exe I get the error:
ERROR: _File::get_as_text: Condition ' !f ' is true. returned: String()
At: core\bind\core_bind.cpp:1582
I superstitiously tried changing everything! It won’t budge! Same error & I don’t understand C++ to know why.