19,721
edits
m (placed current instructions under a new section to separate them from the other instructions coming later; added placeholder section for Daodan DLL as reminder for later) |
m (added letter designators to steps so they can refer to each other; add'l wording tweaks) |
||
| Line 6: | Line 6: | ||
Rather than using a Wine management GUI such as Lutris or Bottles, you may want to do it yourself by working directly with Wine (this is also a fallback if those tools do not work for you). | Rather than using a Wine management GUI such as Lutris or Bottles, you may want to do it yourself by working directly with Wine (this is also a fallback if those tools do not work for you). | ||
===Installing the needed packages=== | ===A: Installing the needed packages=== | ||
; 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 | : Open a Linux terminal and tell your package manager to search for "wine32". (You will need to know what your package manager is: apk, apt, dnf, emerge, pacman, yum, zypp…). The package might be called "wine32", "wine.i686", etc. If you don't see such a package, you may need to enable 32-bit architecture with a command such as (in Ubuntu) <code>sudo dpkg --add-architecture i386</code> followed by <code>sudo apt update</code>, then search again. In order to install Wine, the package manager may also need to install a ton of dependencies if this a fairly new Linux install, but it will probably not take too long. | ||
; Winetricks | ; Winetricks | ||
| Line 19: | Line 19: | ||
: 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=== | ===B: Preparing the Wine prefix=== | ||
# Open a Linux terminal and create a new Wine prefix (an instance of the Wine compatibility environment) with these commands: | # 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) | #: <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>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" and click "OK". | # 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". | ||
| Line 30: | Line 30: | ||
#: <code>cd /full/path/to/JRE/installer</code> | #: <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, | # 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=== | ===C: Installing Oni=== | ||
Skip to the next section if you have an existing installation of Oni. | Skip to the next section if you have an existing installation of Oni. | ||
# Mount the disk image for the Oni CD-ROM, or insert your CD-ROM into the disc drive. | # Mount the disk image for the Oni CD-ROM, or insert your CD-ROM into the disc drive. | ||
# Open a Linux terminal, export the "Oni" prefix | # Open a Linux terminal, export the "Oni" prefix you created in step B1, navigate to the folder with the contents of the mounted CD, and initiate the installation process: | ||
#: <code>export WINEPREFIX=/full/path/to/prefix</code> | #: <code>export WINEPREFIX=/full/path/to/prefix</code> | ||
#: <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/[user name]/001228_1801/ or /media/[user name]/001228_1801/) | #: <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/[user name]/001228_1801/ or /media/[user name]/001228_1801/) | ||
#: <code>wine onisetup.exe</code> or <code>wine OniSetup.exe</code> (the capitalization of the EXE varies) | #: <code>wine onisetup.exe</code> or <code>wine OniSetup.exe</code> (the capitalization of the EXE varies) | ||
# 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 | # 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 that the installer presents). 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:\"). This maintains a distinction between the Wine prefix used to run the game and the game itself (you might want to re-use this prefix for other games, or try out other prefixes for this game). | ||
# | # Oni should install without problems. When GLSetup runs and offers to install OpenGL, make sure to say '''"No"'''. Creating a desktop shortcut is also pointless because you will need to create a shortcut that uses Wine (see step E). | ||
# <u>Don't bother trying to run the game yet.</u> 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. | # <u>Don't bother trying to run the game yet.</u> 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. | ||
===Patching Oni with the Daodan DLL=== | ===D1: Patching Oni with the Daodan DLL=== | ||
[…] | […] | ||
===Patching Oni with the AE=== | ===D2: Patching Oni with the AE=== | ||
====Installing 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 an Oni installation. | ||
# 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]). | ||
| Line 58: | Line 58: | ||
# 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. | # 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. | ||
====Running AE Installer==== | ====b: Running the 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=/full/path/to/prefix</code> | : <code>export WINEPREFIX=/full/path/to/prefix</code> | ||
| Line 64: | Line 64: | ||
: <code>wine start /ProgIDOpen jarfile AEInstaller2Updater.jar</code> | : <code>wine start /ProgIDOpen jarfile AEInstaller2Updater.jar</code> | ||
===Launching patched Oni=== | ===E: Launching patched Oni=== | ||
There are two possible ways to launch Oni:<br> | There are two possible ways to launch Oni:<br> | ||
A. Launch the game through the AE Installer application if you installed the AE.<br> | A. Launch the game through the AE Installer application if you installed the AE.<br> | ||