Playing in Linux: Difference between revisions
m (added info on the need to install 32-bit Wine; removed links to Wine and Winetricks websites as there is nothing there the user should be downloading; added back OniX template) |
m (more wording tweaks before adding instructions for running non-AE Oni) |
||
Line 4: | Line 4: | ||
==Requirements== | ==Requirements== | ||
; Wine | ; Wine | ||
: A compatibility layer for running Windows applications on a Linux machine | : A compatibility layer for running Windows applications on a Linux machine. | ||
: Open a Linux terminal and search for Wine packages. You need to know what your package manager is: apk, apt-get, dnf, emerge, pacman, yum, zypp…. Tell the package manager to search for "wine" and look for a 32-bit Wine package in the results. The package might be called "wine32" or "wine.i686". Install it; the package manager may also need to install a ton of dependencies if this a fairly new Linux install. | |||
; Winetricks | ; Winetricks | ||
: A helper app for configuring various parts of Wine-created compatibility environments. In some distros, Winetricks is installed alongside Wine itself. In other distros, it needs to be installed as a separate package. | : A helper app for configuring various parts of Wine-created compatibility environments. In some distros, Winetricks is installed alongside Wine itself. In other distros, it needs to be installed as a separate package. | ||
You'll | You'll need this for installing the Anniversary Edition, if you want it (the game can be patched to run without installing the AE; this is covered below): | ||
; A legacy Java Runtime Environment offline installer for the 32-bit (AKA x86) version of Windows XP | ; A legacy Java Runtime Environment offline installer for the 32-bit (AKA x86) version of Windows XP | ||
: The maximum compatible version is '''7u65'''. An installer for 7u25 is still hosted [https://javadl.oracle.com/webapps/download/AutoDL?BundleId=78825 here]. | : The maximum compatible version is '''7u65'''. An installer for 7u25 is still hosted [https://javadl.oracle.com/webapps/download/AutoDL?BundleId=78825 here]. | ||
==Preparing the Wine prefix== | ==Preparing the Wine prefix== | ||
# Open a Linux terminal and create a new Wine prefix (an instance of the Wine compatibility environment) | # Open a Linux terminal and create a new Wine prefix (an instance of the Wine compatibility environment) with these commands: | ||
#: <code>export WINEARCH=win32</code> | #: <code>export WINEARCH=win32</code> | ||
#: <code>export WINEPREFIX=/full/path/to/ | #: <code>export WINEPREFIX=/full/path/to/prefix</code> (where you want the prefix to be stored, e.g. "~/Documents/Wine/Oni"; the game itself can be installed somewhere else on your hard drive – this is just the compatibility layer for it). | ||
#: <code>winecfg</code> | #: <code>winecfg</code> | ||
# This creates a 32-bit Wine prefix in the requested folder and opens a "Wine configuration" GUI tool. In the GUI tool, under the "Applications" tab, change the target Windows version to "Windows XP" | # This creates a 32-bit Wine prefix in the requested folder and opens a "Wine configuration" GUI tool. In the GUI tool, under the "Applications" tab, change the target Windows version to "Windows XP" and click "OK". | ||
# Still in the same terminal (with all the export symbols defined), | # Still in the same terminal (with all the export symbols defined), tell Winetricks to execute the necessary configuration changes: | ||
#: <code> winetricks corefonts msacm32 </code> | #: <code>winetricks corefonts msacm32</code> | ||
# Still in the same terminal (with all the export symbols defined), use the | # '''If you're going to install the AE''': Still in the same terminal (with all the export symbols defined), use the "cd" command to navigate to the folder with the Java Runtime Environment installer. Install the JRE into the given Wine prefix like this (assuming the installer is named "jre-7u25-windows-i586.exe"): | ||
#: <code> cd / | #: <code>cd /full/path/to/JRE/installer</code> | ||
#: <code> wine jre-7u25-windows-i586.exe </code> | #: <code>wine jre-7u25-windows-i586.exe</code> | ||
# The "Oni" Wine prefix is now ready. Remember, that in order to run either Oni or the AE Installer, the path to this prefix file must be specified (exported). If it is not specified, then the Wine session will use a default prefix file, one which is probably set to represent 64-bit Windows 7 or 64-bit Windows 10 (which is quite sensible for most applications, but unfortunately not good enough for Oni). | # The "Oni" Wine prefix is now ready. Remember, that in order to run either Oni or the AE Installer, the path to this prefix file must be specified (exported). If it is not specified, then the Wine session will use a default prefix file, one which is probably set to represent 64-bit Windows 7 or 64-bit Windows 10 (which is quite sensible for most applications, but unfortunately not good enough for Oni). | ||
Line 31: | Line 31: | ||
# Insert your Oni CD-ROM into the disc drive (if installing from the CD, 2001-style ^_^). | # Insert your Oni CD-ROM into the disc drive (if installing from the CD, 2001-style ^_^). | ||
# Open a Linux terminal, export the "Oni" prefix file, navigate to the folder with the contents of the mounted CD, and initiate the installation process. | # Open a Linux terminal, export the "Oni" prefix file, navigate to the folder with the contents of the mounted CD, and initiate the installation process. | ||
#: <code>export WINEPREFIX=/ | #: <code>export WINEPREFIX=/full/path/to/prefix</code> | ||
#: <code>cd / | #: <code>cd /path/to/Oni/CD</code> (you may have to open the CD in your file manager to see its path, e.g. /run/media/admin/001228_1801/) | ||
#: <code>wine OniSetup.exe</code> | #: <code>wine OniSetup.exe</code> | ||
# During the installation process, it is recommended to '''NOT''' place the game inside the prefix file's compatibility environment folder (do '''not''' place it anywhere on the faux "C:\" drive). Instead, choose an appropriate place somewhere in your Linux machine's directory tree. The computer's native directory tree should be mapped by default as a different faux drive (usually "Z:\"). | # During the installation process, it is recommended to '''NOT''' place the game inside the prefix file's compatibility environment folder (that is, do '''not''' place it anywhere on the faux "C:\" drive). Instead, choose an appropriate place somewhere in your Linux machine's directory tree. The computer's native directory tree should be mapped by default as a different faux drive (usually "Z:\"). | ||
# The game should install without problems. When GLSetup runs and offers to install OpenGL, make sure to say | # The game should install without problems. When GLSetup runs and offers to install OpenGL, make sure to say '''"No"'''. | ||
# DO NOT RUN THE GAME YET!!! An attempt to run an unpatched copy of Oni on a modern system is almost guaranteed to fail. The game needs to be patched via the AE Installer. | # DO NOT RUN THE GAME YET!!! An attempt to run an unpatched copy of Oni on a modern system is almost guaranteed to fail. The game needs to be patched via the AE Installer. | ||
Line 42: | Line 42: | ||
# Download the latest Windows version of the AE Installer from the Oni Mod Depot ([http://mods.oni2.net/node/79 click here]). | # Download the latest Windows version of the AE Installer from the Oni Mod Depot ([http://mods.oni2.net/node/79 click here]). | ||
# Open a Linux terminal, export the "Oni" prefix, navigate to the folder with the AE Installer, and initiate the installation process. | # Open a Linux terminal, export the "Oni" prefix, navigate to the folder with the AE Installer, and initiate the installation process. | ||
#: <code>export WINEPREFIX=/ | #: <code>export WINEPREFIX=/full/path/to/prefix</code> | ||
#: <code>cd / | #: <code>cd /full/path/to/folder/with/AE/Setup</code> | ||
#: <code>wine Anniversary-Edition-Setup-vXX.YY_ZZ.exe</code> | #: <code>wine Anniversary-Edition-Setup-vXX.YY_ZZ.exe</code> | ||
# During the AE Installer installation, there will be a prompt to provide Oni's installation directory. Navigate to the appropriate directory. Your Linux system's directory tree should be mapped to "/". | # During the AE Installer installation, there will be a prompt to provide Oni's installation directory. Navigate to the appropriate directory. Your Linux system's directory tree should be mapped to "/". | ||
Line 50: | Line 50: | ||
==Launching AE Installer== | ==Launching AE Installer== | ||
The AE Installer will be automatically launched after it is installed. However, any other time you want to launch the AE Installer, open a Linux terminal, export the "Oni" prefix, navigate to the folder with the '''AEInstaller2Updater.jar''' file, and launch the .jar file through Wine Java Runtime Environment: | The AE Installer will be automatically launched after it is installed. However, any other time you want to launch the AE Installer, open a Linux terminal, export the "Oni" prefix, navigate to the folder with the '''AEInstaller2Updater.jar''' file, and launch the .jar file through Wine Java Runtime Environment: | ||
: <code>export WINEPREFIX=/ | : <code>export WINEPREFIX=/full/path/to/prefix</code> | ||
: <code>cd / | : <code>cd /full/path/to/folder/with/AE/Installer</code> | ||
: <code>wine start /ProgIDOpen jarfile AEInstaller2Updater.jar</code> | : <code>wine start /ProgIDOpen jarfile AEInstaller2Updater.jar</code> | ||
Line 61: | Line 61: | ||
A. Launch the game through the AE Installer application.<br> | A. Launch the game through the AE Installer application.<br> | ||
B. Open a Linux terminal, export the "Oni" prefix, navigate to the folder with the patched Oni.exe file, and launch it via Wine. | B. Open a Linux terminal, export the "Oni" prefix, navigate to the folder with the patched Oni.exe file, and launch it via Wine. | ||
: <code>export WINEPREFIX=/ | : <code>export WINEPREFIX=/full/path/to/prefix</code> | ||
: <code>cd / | : <code>cd /full/path/to/folder/with/patched/Oni/EXE</code> | ||
: <code>wine Oni.exe</code> | : <code>wine Oni.exe</code> | ||
Revision as of 23:04, 20 July 2023
There is no official support for Oni in the Linux OS family. Nevertheless, it is still possible to run the game on Linux. The Anniversary Edition Installer can be made to run as well. If you are looking for help running Oni on the Steam Deck, see Playing on the Steam Deck for much simpler instructions.
Requirements
- Wine
- A compatibility layer for running Windows applications on a Linux machine.
- Open a Linux terminal and search for Wine packages. You need to know what your package manager is: apk, apt-get, dnf, emerge, pacman, yum, zypp…. Tell the package manager to search for "wine" and look for a 32-bit Wine package in the results. The package might be called "wine32" or "wine.i686". Install it; the package manager may also need to install a ton of dependencies if this a fairly new Linux install.
- Winetricks
- A helper app for configuring various parts of Wine-created compatibility environments. In some distros, Winetricks is installed alongside Wine itself. In other distros, it needs to be installed as a separate package.
You'll need this for installing the Anniversary Edition, if you want it (the game can be patched to run without installing the AE; this is covered below):
- A legacy Java Runtime Environment offline installer for the 32-bit (AKA x86) version of Windows XP
- The maximum compatible version is 7u65. An installer for 7u25 is still hosted here.
Preparing the Wine prefix
- Open a Linux terminal and create a new Wine prefix (an instance of the Wine compatibility environment) with these commands:
export WINEARCH=win32
export WINEPREFIX=/full/path/to/prefix
(where you want the prefix to be stored, e.g. "~/Documents/Wine/Oni"; the game itself can be installed somewhere else on your hard drive – this is just the compatibility layer for it).winecfg
- This creates a 32-bit Wine prefix in the requested folder and opens a "Wine configuration" GUI tool. In the GUI tool, under the "Applications" tab, change the target Windows version to "Windows XP" and click "OK".
- Still in the same terminal (with all the export symbols defined), tell Winetricks to execute the necessary configuration changes:
winetricks corefonts msacm32
- If you're going to install the AE: Still in the same terminal (with all the export symbols defined), use the "cd" command to navigate to the folder with the Java Runtime Environment installer. Install the JRE into the given Wine prefix like this (assuming the installer is named "jre-7u25-windows-i586.exe"):
cd /full/path/to/JRE/installer
wine jre-7u25-windows-i586.exe
- The "Oni" Wine prefix is now ready. Remember, that in order to run either Oni or the AE Installer, the path to this prefix file must be specified (exported). If it is not specified, then the Wine session will use a default prefix file, one which is probably set to represent 64-bit Windows 7 or 64-bit Windows 10 (which is quite sensible for most applications, but unfortunately not good enough for Oni).
Installing Oni
Skip to the next section if you have an existing installation of Oni.
- Insert your Oni CD-ROM into the disc drive (if installing from the CD, 2001-style ^_^).
- Open a Linux terminal, export the "Oni" prefix file, navigate to the folder with the contents of the mounted CD, and initiate the installation process.
export WINEPREFIX=/full/path/to/prefix
cd /path/to/Oni/CD
(you may have to open the CD in your file manager to see its path, e.g. /run/media/admin/001228_1801/)wine OniSetup.exe
- During the installation process, it is recommended to NOT place the game inside the prefix file's compatibility environment folder (that is, do not place it anywhere on the faux "C:\" drive). Instead, choose an appropriate place somewhere in your Linux machine's directory tree. The computer's native directory tree should be mapped by default as a different faux drive (usually "Z:\").
- The game should install without problems. When GLSetup runs and offers to install OpenGL, make sure to say "No".
- DO NOT RUN THE GAME YET!!! An attempt to run an unpatched copy of Oni on a modern system is almost guaranteed to fail. The game needs to be patched via the AE Installer.
Installing AE Installer
This is a rather straightforward process which builds on an Oni installation.
- Download the latest Windows version of the AE Installer from the Oni Mod Depot (click here).
- Open a Linux terminal, export the "Oni" prefix, navigate to the folder with the AE Installer, and initiate the installation process.
export WINEPREFIX=/full/path/to/prefix
cd /full/path/to/folder/with/AE/Setup
wine Anniversary-Edition-Setup-vXX.YY_ZZ.exe
- During the AE Installer installation, there will be a prompt to provide Oni's installation directory. Navigate to the appropriate directory. Your Linux system's directory tree should be mapped to "/".
- At the end of the installation, the AE Installer will be automatically executed and will attempt to fetch updates. During the fetching process, it may appear that the AE Installer has hanged. That is not true, it just does not indicate that there is work being done in the background. Be patient.
Launching AE Installer
The AE Installer will be automatically launched after it is installed. However, any other time you want to launch the AE Installer, open a Linux terminal, export the "Oni" prefix, navigate to the folder with the AEInstaller2Updater.jar file, and launch the .jar file through Wine Java Runtime Environment:
export WINEPREFIX=/full/path/to/prefix
cd /full/path/to/folder/with/AE/Installer
wine start /ProgIDOpen jarfile AEInstaller2Updater.jar
Patching/modding Oni via AE Installer
Simply let the AE Installer do its magic. ^_^
Launching patched Oni
There are two possible ways to launch Oni:
A. Launch the game through the AE Installer application.
B. Open a Linux terminal, export the "Oni" prefix, navigate to the folder with the patched Oni.exe file, and launch it via Wine.
export WINEPREFIX=/full/path/to/prefix
cd /full/path/to/folder/with/patched/Oni/EXE
wine Oni.exe
Troubleshooting
Some users experience a large drop in frame rate when certain actions occur such as firing a gun. This is a sound-related bug which indicates that you didn't follow step 3 under "Preparing the Wine prefix" :-) Make sure to install msacm32 with winetricks.