Im getting an error when trying to call the function get_var(). I have no idea why this is happening. im looking for someone who can help me fix that error "
The actual error they are recieving in the screenshot is null on store_var, I assume the main post is a little ahead of itself, the file won’t be created to be loaded eitherway.
@gertkeno , Right, but that would be because the file path was wrong, and the file didn’t exist and wasn’t opened? Or is it the fault of the : character being interpreted/filtered by Godot or the operating system?
If saving the file makes file exist return true why can’t open work?
The file path is the same wrong path for both saving and loading, it’s an impossible location on Windows (disallows : characters), and neither a res:// or user:// path so I think Godot doesn’t allow it without some special flags.
Since the file path is wrong no file is ever created, file is null, trying to use store_var on null produces this error
When loading, this line probably works as intended. The file path is illegal thus it cannot exist, so the rest of the load_data function loads zeros (assuming correct indentation)