Hello there. Recently I've noticed a problem in a game I'm working on called Galactic Space Agency (GSA for short). The problem involves saving. Saves are stored to "Installed Directory"\Saves\Default with the installed directory generally being Program Files (x86)\GalacticSpaceAgency
After some tests, I've found that the game is failing to create new directories as well as new files. Running the program as administrator allows the files and directories to be created and modified. I could build the program to execute as administrator by default, but I know there are games and programs that can create files within it's installed folder for saves and does not require to be run as an administrator. Alternatively, if there is a way to save files to "My Documents" as that would also be acceptable.
I do NOT want to save to AppData as I want the files easily accessible to any and all users. I feel it is more inviting like that and is one of the reasons I chose to use Clickteam over a competitor that demands AppData as the install path. AppData will only serve as a last resort.
I have only tested this on Windows 10, but I will test on Windows XP and 7 later today. I don't remember having problems in the past and I am almost 100% sure that it used to work properly. Maybe there was a recent change or maybe I somehow failed to test saving outside of CF 2.5. Even if the problem is exclusive to Windows 10, I need it to be compatible on all modern Windows installations.
Here are some screenshots of some of the code that I have for saving the game that may help.