This guide is to help you run Age of History 3 natively on Linux without any compatibility issues. We will achieve this by creating a shell script that will convert the .exe file into a Java executable, allowing you to run the game seamlessly.
Image: Steam
How to Run the Game on Linux
Prerequisites: Before we begin, ensure that you have the following prerequisites installed on your system:
- Unzip utility
- Java Development Kit (JDK)
Creating a Shell Script:
- Navigate to the game’s installation directory.
- Create a shell script with the following content:
#!/bin/sh
unzip -qq aoh3.exe -d jarfiles
jar --create --file aoc3.jar --manifest jarfiles/META-INF/MANIFEST.MF -C ./jarfiles/ .
rm -r jarfiles
- Make the script executable by running
chmod +x script_name.sh
. - Execute the script.
Editing Game Launch Options:
- Open Steam and right-click on Age of History 3.
- Select ‘Properties…’.
- In the ‘Launch Options’ field, paste the following command:
java -jar aoc3.jar # %command%
- Save the changes and launch the game. The game should now run without any issues.
After Game Updates: It’s important to note that you will need to rerun the shell script after each game update. This ensures that the game files remain compatible with the native Linux environment.
This method was shared by qwesdeqas
Related Posts
None found