I cannot find anything helpful anywhere for this issue. The game I am playing is End Roll, I’m using EasyRPG on a Mac. Does anybody know how to fix this?
I was going to upload a second picture showing that Save02.lsd wouldn’t save either but I’m only allowed to send one media piece at a time.
I’m pretty new to all of this so I’m not quite sure what I’m doing honestly
It looks like it cannot write in the game directory.
Where is the game located and how did you install EasyRPG Player?
It’s installed in a folder on my documents. I downloaded it onto my mac via the EasyRPG website. I’d send a picture but I’m not on my macbook right now.
It looks like new versions of macOS restrict writing for “unknown apps”. Not a mac user here, but I guess there is some hidden setting for this.
Analysis and proposal to deal with this issue:
opened 09:05PM - 06 Oct 22 UTC
FileFinder
macOS
RFC
#### Name of the game:
All games
#### Player platform:
macOS Mojave (10.14… ) or later
#### Attach files (as a .zip archive or link them)
This issue is not game-specific.
#### Describe the issue in detail and how to reproduce it:
Modern macOS is becoming increasingly restrictive about which folders applications are allowed to read and write to, and users could be storing their games _anywhere_ but most likely they're putting them in places that macOS considers protected, such as `~/Desktop`, or `~/Downloads`, or `~/Documents`, etc. This can cause write issues when trying to save, or even just the Player launching to an empty game browser, and the user gets very little (if any) feedback as to why.
To that end, I have two proposals:
1. We should write all saved games to `~/Application Support/EasyRPG Player/[game-specific prefix]/`.
2. We should present an Open File dialog when the Player launches.
## Saved games
Pros:
- No special permission needed to write here
Cons:
- Users updating the Player will no longer see their save games and will have to manually move them to the new folder. Depending on how we choose the game-specific prefix, it might be difficult to work out what the new folder even is. Plus, Apple _hides_ the `~/Application Support` directory by default... We might want to consider copying all existing saves to the new folder if it doesn't exist?
- Might break some user's workflows, such as if they keep their games on an iCloud Drive, Dropbox or the like (and the `~/Documents` folder is iCloud Drive synced _by default_ these days).
## Open File Dialogs
Depending on where people put their games the Player will pop up various directory permission prompts on first launch and I suspect some folks are inadvertently rejecting those which then makes the Player effectively useless, and it won’t ask for this permission again, and manually granting it is [quite a faff](https://support.apple.com/guide/mac-help/mchld5a35146/mac).
Apple wants you to get permission to read into these protected directories by opening a standard Open File Dialog (or any other _user initiated_ action, such as drag-and-drop, etc), and that implicitly grants you permission to read the contents… doing it this way lets users do the natural thing of just putting `EasyRPG Player.app` in their `/Applications` folder and letting it show a Open File Dialog on launch for which game they want to open. If the folder they choose doesn't have a game in it, we start the game browser pointed at that directory instead.
Pros:
- Supports users who just want to install `EasyRPG Player.app` into their `/Applications` folder like any other macOS app.
- Since access to the game folder is explicitly granted by the user via the system Open File Dialog, it should avoid the permission prompts entirely.
Cons:
- If the user puts the `EasyRPG Player.app` inside their game folder and the game folder is in a protected directory, the Player is still going to try to discover the game in the same directory as the `.app` and therefore trigger the permission popup anyway. There's no API to determine if you've already been granted this permission, too, the only way to try to read there and then you'll either get your popup + file handle, or an error. The only way to avoid it entirely is to not support dropping the Player in the game directory, which every other platform supports...
I'm open to discussion on exactly what the logic should be but honestly I'm tempted to make it so Mac _only_ supports launching games with either the Open File Dialog, _or_ if the game is packaged inside the `.app` to just start up directly (is this implemented yet?). We can make the dialog less annoying too by having it remember the previously chosen directory and starting there on subsequent launches.
I will be on vacation until November 2nd but plan to start work on a pull request not long afterward, if you'd like to bikeshed some of the specifics of this proposal, doing so _before_ I start coding would be appreciated 😂
i’m having the same problem but i’m on windows. the easyrpg exe is right inside the game directory, the same folder with RPG_RT.exe, but no matter what, i can’t seem to save to any file.
Ghabry
January 20, 2023, 3:46pm
8
The game is likely in the program directory (C:\Program Files). This path is not writable for the user.
Saving only works for RPG_RT.exe because it is a very old program. For very old programs Windows does some compatibiility hacks to make it still work.