19,721
edits
m (added letter designators to steps so they can refer to each other; add'l wording tweaks) |
(wrote Daodan DLL section that pretty much punts to the DLL's article; added some more explanation in some parts; switched to manual numbering of bullet points for clarity when editing) |
||
| Line 20: | Line 20: | ||
===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: | |||
: <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>winecfg</code> | |||
2. 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". | |||
3. Still in the same terminal (with all the export symbols defined), tell Winetricks to execute the necessary configuration changes: | |||
: <code>winetricks corefonts msacm32</code> | |||
4. '''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 /full/path/to/JRE/installer</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. | |||
===C: 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. | ||
1. Mount the disk image for the Oni CD-ROM, or insert your CD-ROM into the disc drive. | |||
2. 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>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) | |||
3. 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). It also makes the game directory easier to access in the Linux file explorer when performing operations like step D1 (if you choose to go that route). | |||
4. 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 your own shortcut that uses Wine (see step E). When the installer closes, you can eject the Oni CD-ROM or un-mount the disk image. | |||
5. <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 Daodan DLL or the AE, so choose your path below: D1 or D2 (they are inter-compatible, so you can both patch your base install of Oni with the Daodan DLL and also install the AE on top of the base install to get a second copy of the game which is patched and also contains mods). | |||
===D1: Patching Oni with the Daodan DLL=== | ===D1: Patching Oni with the Daodan DLL=== | ||
[ | The Anniversary Edition is not required in order to provide the patch that Oni needs in order to run on modern systems. The AE makes it possible to installs mods in Oni, but the patch comes from the Daodan DLL, an independent fan creation which the AE automatically installs. Go to the [[Daodan DLL]] article and follow the manual installation instructions, substituting the standard path given there for Oni (C:\Program Files\Oni\) for the one you picked in the installer in step C3. | ||
===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 an 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]). | |||
2. Open a Linux terminal, export the "Oni" prefix, navigate to the folder with the AE Installer, and initiate the installation process: | |||
: <code>export WINEPREFIX=/full/path/to/prefix</code> | |||
: <code>cd /full/path/to/folder/with/AE/Setup</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 "/". | |||
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. | |||
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. | |||
====b: Running the AE Installer==== | ====b: Running the AE Installer==== | ||
| Line 66: | Line 80: | ||
===E: 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> | ||
1. Launch the game through the AE Installer application if you installed the AE. | |||
2. 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=/full/path/to/prefix</code> | : <code>export WINEPREFIX=/full/path/to/prefix</code> | ||
: <code>cd /full/path/to/folder/with/patched/Oni/EXE</code> | : <code>cd /full/path/to/folder/with/patched/Oni/EXE</code> | ||