Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upProjectSettings.save_custom returns error ERR_FILE_UNRECOGNIZED for any path #38152
Comments
|
The file needs |
|
@pgoral Using the ConfigFile class is probably a better idea to store user configuration. When you save the project settings, you'll literally save all settings, including settings the user isn't supposed to change such as internal Godot settings. @KoBeWi Could we remove this restriction? |
|
The restriction is hardcoded here: godot/core/project_settings.cpp Lines 870 to 877 in 1d45a26 Removing it would be easy if we decided to do that. |
|
I think we should leave it like this, but only document it properly |
|
I'm new here and in world of opensource, can i already open a pr describing this in doc? |


Godot version:
v3.2.2.rc.custom_build.36a30f681
OS/device including version:
Window 10
Issue description:
I'm trying to save ProjectSettings at runtime using save_custom to location "user://override.cfg", but this action returns error ERR_FILE_UNRECOGNIZED. Actually this method returns this error for any path. Is it allowed to call it at runtime or only in tool? I want to use ProjectSettings mechanism at runtime for storing some user configurations.