Runs well on macOS due to being in Java
Posted: Sun Aug 18, 2024 1:17 am
When I saw this game required Java, and had a file named Stalingrad.jar, I decided to try to get it running directly on my Mac (M3 MacBook Pro, macOS 14.6.1). I wanted to share the steps here. I hope you agree that there's nothing particularly shady here! There's something unreasonable in my brain that wants to engage more with the game now that it's running directly on my main computer without blurry Crossover text or knowing I'm wasting resources running Parallels.
- Install the game on a PC or inside a Wine bottle or Whisky bottle or Crossover bottle or in Parallels.
- Copy the game directory to your Mac
- Open Terminal and either find or install an appropriate version of java. For me the one at /usr/bin/java works fine.
- Obtain the "Java home" path by typing and look for a line like
Code: Select all
/usr/bin/java -XshowSettings:properties -version
Code: Select all
java.home = /Library/Java/JavaVirtualMachines/temurin-17.jdk/Contents/Home
- In the game folder, delete libs/jre and make it a symlink to the Java home by doing
Code: Select all
cd libs; ln -s /Library/Java/JavaVirtualMachines/temurin-17.jdk/Contents/Home jre; cd ..
- Find your product serial number in the file serialreg.txt (in the game directory). It's of the form "XXXX-XXXX-XXXX-XXXX-XXXX" and can also be obtained from matrixgames.com
- Put the following text in a file named "reg" in the game directory (which will imitate a call to the Windows registry): with spaces between each of the three tokens, and the last one is of course your serial number.
Code: Select all
echo REG_SZ XXXX-XXXX-XXXX-XXXX-XXXX
- Type the following to make the "reg" command executable:
Code: Select all
chmod a+x reg
- Run the following command to start the game:
Code: Select all
PATH=$PATH:.; /usr/bin/java -Xmx1G -jar Stalingrad.jar
- It looks better when running in a window
- The trackpad scrolling doesn't smoothly zoom, it zooms all the way in and then stays there. I use +/- instead.
- I haven't tried shortcuts that use (what the game calls) "Ctrl". I'm guessing one of Ctrl or Command will work. Single-key shortcuts like F work fine.