Hello. I bought this game for mac, and I got it running with save files:
- Download the mac build for the game, unzip it
- note: We will source the game files from here
- Download the latest nwjs.io https://dl.nwjs.io/v0.76.0/nwjs-v0.76.0-osx-x64.zip, unzip it
- note: This is the 64bit executable that osx requires, we will copy the game contents on to here
- Copy over 'Downloads/Fear & Hunger_MAC/Game.app/Contents/Resources/app.nw' to 'Downloads/nwjs-v0.76.0-osx-x64/nwjs.app/Contents/Resources/'
- Optional: Download pixi.js v4.8.9 https://pixijs.download/v4.8.9/pixi.js
- Optional: Copy it to 'Downloads/nwjs-v0.76.0-osx-x64/nwjs.app/Contents/Resources/app.nw/js/libs' and choose replace when OSX asks.
- Open TextEdit use it to edit 'Downloads/nwjs-v0.76.0-osx-x64/nwjs.app/Contents/Resources/app.nw/package.json'
- note: You can use the shortcut Cmd+O then Cmd+Shift+G then copypaste the whole file path
- Replace the line
name: "" - It should now instead say
name: "fh1" - Save and close.
- Rename 'Downloads/nwjs-v0.76.0-osx-x64/nwjs.app' to FH1.app or something you'd like and move it to the Applications folder (/System/Applications) or your local user apps folder
- Click the Apple Menu on your top left,
Open System Preferences,
then open Security & Privacy.
Leave that window open - Open our recently made FH1.app.
Decline OSX's offer to Send it to Trash - Move back to the Security & Privacy window,
- and click the new button that appeared as Open Anyway.
- Confirm again in the prompt shows up
- OSX might ask to activate notifications for the game. I blocked them, and discovered later that notifications might cause crashes.
After all that, I finally managed to get the game functional and with savefiles 🎉
Afterthougts:
I originally tried with nw.js versions 0.29.4 which i thought FH1 originally used. Then tried again with 0.50.3, both had some popups reporting errors. v0.79.0 is the one that had a readable error message and was easily trackable to the docs [4]
While searching on how to do update nw.js versions I stumbled with a comment saying pixi.js 4.8.9 had better performance, so I updated it to check it out. But I dont think it's needed.
Savefiles I didnt understand what was the issue until I tried changing the settings and saw a screen similar to this[5]. I don't know the specifics, but I'm guessing some OSX security feature moves applications to some read-only folder unless they are on a Applications folder [6]
I also found some nwjs binaries for m1 macbooks [2] but I had no way to test them
A very involved process overall, but totally possible!
sources:
- https://forums.rpgmakerweb.com/index.php?threads/need-some-help-cannot-open-a-ga...
- https://github.com/LeonardLaszlo/nw.js-armv7-binaries
- https://stackoverflow.com/questions/32928473/chrome-required-value-version-is-mi...
- https://docs.nwjs.io/en/latest/References/Manifest%20Format/#name
- https://forums.rpgmakerweb.com/index.php?threads/unable-to-save-in-deployed-mac-...
- https://apple.stackexchange.com/questions/389855/why-my-app-is-starting-in-priva...