Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | kubaxius | |
Old Version | Published before Godot 3 was released. |
As the title say, I can not load cfg file via ConfigFile class. Everything works fine on Windows, but when I export game for Android it throws an ERR_CANT_OPEN error. I tried to load this file via File class and it doesn’t work too, but this time error code equaled 3, ERR_UNCONFIGURED.
Sorry for any language mistakes, but I’m not native.
Is it a custom config file in your project folder? If so, export with the “Export all files” option, or make sure to whitelist this file (or all *.cfg files), otherwise it might not be exported (and thus it runs fine in the editor which uses the normal project folder, but not with the exported data pack).
Akien | 2017-06-16 07:35
Thanks, that was it
kubaxius | 2017-06-16 09:27
Great, I’ll turn my comment into an answer then.
Akien | 2017-06-16 09:28