Save games that can be loaded by the game, but do not match those in the game directory. (RPGM 2K)

I came across a bizarre issue today: I noticed that the dates on the save files in the game directory were days old despite me having overwritten those since then. Some testing revealed that the saves that I could load in the game did not match those in the game directory, but the saves that were being loaded by the game did not appear to exist anywhere on my computer.

Interestingly the phantom files vanish when I move the game directory out of Program Files, but reappear when I move it back.

Does anyone have any idea wrt to what could be causing this?
It's less bizarre than you think: Since the RM game tries to write into the write-protected "Program Files" space without running as administrator, the write access gets redirected to the virtual file store instead. This feature exists since Windows Vista actually. Later, the game will also see the virtual files instead of the real ones (if existing) because they have higher priority. You can click "compatibility files" in Windows Explorer to see the virtual files. You can also manually look into C:\Users\Username\AppData\Local\VirtualStore ("AppData" is normally hidden but you can navigate to it directly in the address bar or by pressing Win+R and entering %localappdata%\VirtualStore).

So for example, if the game attempts to write to C:\Program Files (x86)\My Project\Save01.lsd, it will actually be redirected to C:\Users\Username\AppData\Local\VirtualStore\Program Files (x86)\My Project\Save01.lsd, and if this file then exists it will be read instead of the actual C:\Program Files (x86)\My Project\Save01.lsd file next time.

If you move the game out of the "Program Files" folder, the files in the virtual store will no longer be found because the path doesn't match anymore.


RM games shouldn't be in "Program Files" for this reason, they should be in a location to which they have actual write access, such as %localappdata%\Programs.
It's less bizarre than you think: Since the RM game tries to write into the write-protected "Program Files" space without running as administrator, the write access gets redirected to the virtual file store instead. This feature exists since Windows Vista actually. Later, the game will also see the virtual files instead of the real ones (if existing) because they have higher priority. You can click "compatibility files" in Windows Explorer to see the virtual files. You can also manually look into C:\Users\Username\AppData\Local\VirtualStore ("AppData" is normally hidden but you can navigate to it directly in the address bar or by pressing Win+R and entering %localappdata%\VirtualStore).

So for example, if the game attempts to write to C:\Program Files (x86)\My Project\Save01.lsd, it will actually be redirected to C:\Users\Username\AppData\Local\VirtualStore\Program Files (x86)\My Project\Save01.lsd, and if this file then exists it will be read instead of the actual C:\Program Files (x86)\My Project\Save01.lsd file next time.

If you move the game out of the "Program Files" folder, the files in the virtual store will no longer be found because the path doesn't match anymore.


RM games shouldn't be in "Program Files" for this reason, they should be in a location to which they have actual write access, such as %localappdata%\Programs.
I ended up moving the game out of Program Files before I noticed this, but your tip worked perfectly. Thanks a lot!

Original thread: https://forums.rpgmakerweb.com/threads/save-games-that-can-be-loaded-by-the-game-but-do-not-match-those-in-the-game-directory-rpgm-2k.130010/