xyz
Wait so it's only when the game is exported that you can't write in res://
? Wow, I never made a distinction between running from the editor and from the exported game.
The error is "0". This was the code:
func _ready() -> void:
var config = ConfigFile.new();
var error = config.save("res://Game/Config/testfile.vars");
print(error);
Result: 0, and no file saved