Hi,
I have been using a global Array Object with same name and properties across all frames to save data on the Save Menu frame. I save and load with the Array fine with the save file created on my desktop where the EXE is. I use the expression "FileNumber"
However, when I get to a certain frame and then create new save data at the Save Menu, there is no new save file on my desktop. When I open the game to load the file, I do not see any data at all. Then when I get to that certain frame and go create new save data at the Save Menu, it displays that saved data even though it wasn't created on my desktop. But I cannot find my data from the files that were created on the desktop.
I happened to find that the file is created in my AppData Roaming folder rather than on the desktop only if I have been through that certain frame. I do not know why this happens because that certain frame does not affect file paths in anyway because no saving or loading is done. Otherwise, if I do not go through that certain frame, the file is created on my desktop next to the EXE and I can see all my desktop files data.
So how do I make it that the data is saved and load from where the EXE directory is consistently?
I've tried the following but still had a problem that the file path is changed to AppData Roaming as long as I go through that particular frame:
- Enter "./Arrayfile.arr" in the expression
- FilePath object: set directory to original
- FilePath object: create directory ".\Save Folder" + current directory ".\Save Folder" (this creates the Save Folder in the App Roaming unless I don't go to that frame, which will create Save Folder on my desktop)