Failed to save if place game under Program Files

RyanBram

Veteran
Veteran
Joined
May 13, 2012
Messages
238
Reaction score
272
First Language
Indonesian
Primarily Uses
RMMV
Dear all,


When building RPG Maker Game as Windows application, it will automatically create its save file inside game directory, not in Appdata directory. This will make the game failed to save if installed under C:/Program Files.


If we want to sell our game, we will likely to use installer and place it in Program Files. As Program Files folder required administrator privilege, how to change save folder directory?
 

Zalerinian

Jack of all Errors
Veteran
Joined
Dec 17, 2012
Messages
4,696
Reaction score
935
First Language
English
Primarily Uses
N/A
That's not omething easily changed, and this has been an issue for makers in the past. I think the easiest solution would be to have your installer install the game to Program Files, and then for settings, saves, and other files, I'd say use the My Games folder in My Documents. This is a standard folder that is intended to be used by games to store saves and other content. It's not used by all games, though it is used by some. I'd say this is the recommended location due to its easy access for the player to get to if they need to change something.

The only bad thing about this folder is that you'll need to get the current username of the logged in user, as the folder is under their profile, like so: C:\Users\<username>\Documents\My Games. Alternatively, if you want to give all users access to the files and save yourself the trouble of finding the username of the current user, you can put them in the public profile: C:\Users\Public\Documents\My Games

Aside from that, I'm not personally aware of any solutions for writing in the program files folders, and I believe the general consensus is to not put the games in there since they require special permissions to edit.
 

AlecMachet

Veteran
Veteran
Joined
Oct 25, 2015
Messages
48
Reaction score
19
First Language
English
For compatibility, Windows is supposed to put data that a program tries to save in it's own Program Files directory into a matching ProgramData one. I'm not at home, so I'll take your word that that isn't working. I know it works on rm2k/3 games, but they have a completely different engine.

Regardless, a plugin for a custom save path would be welcome. Hudell made a plugin for changing the save file name. It might be possible to modify that for save path, or it might be possible to specify a path under the plugin parameters.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Day 9 of giveaways! 8 prizes today :D
He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.

Forum statistics

Threads
106,037
Messages
1,018,464
Members
137,821
Latest member
Capterson
Top