Previously my plans for standalone OS X ACK game apps was to have the game creator send me their ACK game, and, time-permitting, I’d make a custom stripped-down version of the Launcher just for that game. But that makes me a bottleneck, and also the user might have a modified ACK (thanks to the fan patches that continue, and Chris’s insterest in updating), a new version of DOSBOx, etc.
SO, thanks to Applescript, I’m able to instead provide a shell OS X app that the game creator can fill with their game, ACK version and DOSBox version, by following these steps:
2. Extract it – you will have a “ACKGameShell” app (that won’t work yet.). Control-click or right-click it and choose “Show Package Contents”
3. Navigate to Contents/Resources
4. In a separate window, find the ACK Launcher app, and control or right-click it and choose “Show Package Contents”
5. Navigate to the ACK Launcher’s Contents/Resources folder
6. Select everything in the ACK Launcher Resources folder, copy, and paste it all into the ACKGameShell’s Resources folder. When done, the ACK folder, DOSBox and several other small files should now be in your ACKGameShell’s Resources folder.
7. Close the ACK Launcher ‘s Contents/Resources window
8. In ACKGameShell’s Resources folder, do the following:
9. Delete “Revolution.icns”, “Revolution.rsrc”, “RevolutionDoc.icns”, and the applet files “c”, “f”, “g”, “i”, “m”, “n”, “o”, “p”, “r”, “t” and “x”
10. Duplicate “dosbox.conf”
11. Rename the duplicate “game.conf”
12. In ACKGameShell’s ACK folder, do the following:
13. Delete all the folders in the GAMENAME/ACK/GAMES folder except for your GAMENAME (whatever your game is called) folder (ie, delete TUTORIAL, BRIGANDS, etc.)
14. Delete the ACK/KITS folder.
15. In the ACK folder, delete ACK.BAT, ACK00.EXE, and ACK04.EXE through ACK10.EXE. (leave ACK01 through ACK03 alone).
16. Navigate back to the ACKGameShell Resources folder, and open game.conf.
17. In game.conf change the last line to “ACKMOD -r GAMENAME -exit” where GAMENAME is the name of your game
18. Make any other DOSBox configuration changes you’d like as defaults for your game (shader used, etc.) and then save this altered game.conf.
18. Navigate to Resources/Scripts/ and double-click main.scpt. This should open up the Applescript editor.
19. The third line of the script should read:
set the resources_path to game_path & quoted form of “ACKGameShell.app/Contents/Resources/”
Change “ACKGameShell” in that line to what you want to call your standalone game app (the name of your OS X app). Note you need to retain the “.app” after the name. E.g. Let’s say your ACK Game is called “Zork Space”, you’d change that line to read:
set the resources_path to game_path & quoted form of “Zork Space.app/Contents/Resources/”
20. The fourth line of the script should read:
set the dosbox_path to game_path & quoted form of “ACKGameShell.app/Contents/Resources/DOSBox.app/Contents/MacOS/”
Change “ACKGameShell” to match EXACTLY what you used in the previous line. So for your example game, we’d change it to:
set the dosbox_path to game_path & quoted form of “Zork Space.app/Contents/Resources/DOSBox.app/Contents/MacOS/”
21. Save your changed main.scr (File –> Save in menu or command-S).
22. Now navigate back to whatever folder is containing the ACKGameShell itself. Rename ACKGameShell to match exactly what you entered as the name in main.scpt (you’re just doing a file rename like you would with any other file in OS X). Following our example, you’d rename “ACKGameShell” as “Zork Space”
23. Now if you double-click your game app, it should launch DOSBox and your game! If this doesn’t work, go back over the steps above and make sure you didn’t miss somthing.
24. After you have your standalone ACK game app working, if you want to give your app a custom icon, follow the steps here.