I’m trying to save a file with filename = sys.get_save_file(“MyGame”, “profile” … profileN) and sys.save(filename … “/chars.json”, prof.character), but somehow it doesn’t work if there’s no folder created before it. It creates only “MyGame” folder and then gives an error Could not write to the file C:\Users…\AppData\Roaming\MyGame\profile1/chars.json.
How can i fix that?
Tested on Win8 and Win7.
Thank you!