Jump to content

Playing in Linux: Difference between revisions

m
minor instruction tweaks for the AE; it's better to call the prefix WinXP rather than Oni, for mental clarity about what it represents
m (archive link for legacy Java installer)
m (minor instruction tweaks for the AE; it's better to call the prefix WinXP rather than Oni, for mental clarity about what it represents)
Line 16: Line 16:


; 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
: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).
: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 under step D1).
: The maximum compatible version is '''7u65'''. An installer for 7u25 is archived [https://web.archive.org/web/20191108134546/https://javadl.oracle.com/webapps/download/AutoDL?BundleId=78825 here].
: The maximum compatible version is '''7u65'''. An installer for 7u25 is archived [https://web.archive.org/web/20191108134546/https://javadl.oracle.com/webapps/download/AutoDL?BundleId=78825 here]. You'll learn what to do with this file when you reach step B4.


===B: Preparing the Wine prefix===
===B: Preparing the Wine prefix===
1. Open a Linux terminal and create a new Wine prefix (an instance of the Wine compatibility environment) with these commands:
1. 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/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; the directory you enter here will be created when you run the next command)
: <code>export WINEPREFIX=/full/path/to/prefix</code> (where you want the prefix to be stored, e.g. "~/Documents/Wine/WinXP"; the game itself can be installed somewhere else on your hard drive – this is just the compatibility layer for it; the directory you enter here will be created when you run the next command)
: <code>winecfg</code>
: <code>winecfg</code>


Line 34: Line 34:
: <code>wine jre-7u25-windows-i586.exe</code>
: <code>wine jre-7u25-windows-i586.exe</code>


5. 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). See step E for details.
When the Java Setup app appears, simply proceed with the default destination folder.
 
5. The "WinXP" 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). See step E for details.


===C: Installing Oni===
===C: Installing Oni===
Line 57: Line 59:
===D2: Patching Oni with the AE===
===D2: Patching Oni with the AE===
====a: Installing the AE====
====a: Installing the AE====
This is a rather straightforward process which builds on an Oni installation.
This is a rather straightforward process which builds on a vanilla Oni installation.


1. Download the latest Windows version of the AE Installer from the Oni Mod Depot ([http://mods.oni2.net/node/79 click here]).
1. Download the latest Windows version of the AE Installer, linked from [[Anniversary Edition]].


2. Open a Linux terminal, export the "Oni" prefix, navigate to the folder with the AE Installer, and initiate the installation process:
2. Open a Linux terminal, export the "Oni" prefix, navigate to the folder with the AE Installer, and initiate the installation process:
Line 66: Line 68:
: <code>wine Anniversary-Edition-Setup-vXX.YY_ZZ.exe</code>
: <code>wine Anniversary-Edition-Setup-vXX.YY_ZZ.exe</code>


3. During the AE 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 "/".
3. During the AE 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 "Z:/". Don't bother to create Start Menu or desktop shortcuts, as you will not see them.


4. 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, but this is because there is no visual indication that there is work being done in the background. Be patient.
4. 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 or its Updater has hanged, but this is because there is no visual indication that there is work being done in the background. Be patient.


5. Remember to follow the instructions within the AE Installer which tell you to hit the Install button at least once, even if you don't select any mods to install.
5. Remember to follow the instructions within the AE Installer which tell you to hit the Install button at least once, even if you don't select any mods to install.