Playing in Linux: Difference between revisions

From OniGalore
Jump to navigation Jump to search
(Writing, writing...)
(Finished!)
Line 33: Line 33:
# The "Oni" WINEPREFIX is now ready.<br/>Remember, that in order to run either Oni or AEInstaller, path to this WINEPREFIX must be specified (exported).<br/>If it is not specified, then the WINE application will use a default WINEPREFIX, and that one is probably set to represent 64bit Windows 7 or 64bit Windows 10 (which is quite sensible for most applications, but unfortunately not good enough for Oni).
# The "Oni" WINEPREFIX is now ready.<br/>Remember, that in order to run either Oni or AEInstaller, path to this WINEPREFIX must be specified (exported).<br/>If it is not specified, then the WINE application will use a default WINEPREFIX, and that one is probably set to represent 64bit Windows 7 or 64bit Windows 10 (which is quite sensible for most applications, but unfortunately not good enough for Oni).


==How to install and run Oni==
==How to install Oni==
# Insert Oni installation medium into the CD/DVD drive (if installed from the CD, 00's style ^_^).
# Insert Oni installation medium into the CD/DVD drive (if installed from the CD, 00's style ^_^).
# Open a Linux terminal, export "Oni" WINEPREFIX, navigate to the folder with contents of the mounted CD drive and initiate the installation process.
# Open a Linux terminal, export "Oni" WINEPREFIX, navigate to the folder with contents of the mounted CD drive and initiate the installation process.
Line 42: Line 42:
#: Instead, choose an appropriate place somewhere in the Linux machine directory tree. Linux machine directory tree should be by default mapped as a different faux drive (usually it is mapped as drive "z:\")
#: Instead, choose an appropriate place somewhere in the Linux machine directory tree. Linux machine directory tree should be by default mapped as a different faux drive (usually it is mapped as drive "z:\")
# The game should install without problems. Ignore the warning regarding DirectX 7, it is harmless.
# The game should install without problems. Ignore the warning regarding DirectX 7, it is harmless.
# DO NOT RUN THE GAME YET !!! More tweaks to come...
# DO NOT RUN THE GAME YET!!!<br/>An attempt to run the raw Oni on a modern system is almost guaranteed to fail as Oni will most probably unceremoniously crash.<br/>The game needs to be patched via AEInstaller.
 
==How to install AEInstaller==
This is a rather straightforward process.
# Download the latest Windows version of the AEInstaller from the Oni Mod Depot ( [http://mods.oni2.net/node/79 click here] ).
# Open a Linux terminal, export "Oni" WINEPREFIX, navigate to the folder with the AEInstaller and initiate the installation process.
#: <code> export WINEPREFIX=/full_path_to_the_folder_where_Oni_WINEPREFIX_is_located </code>
#: <code> cd /full_path_to_the_AEInstaller </code>
#: <code> wine Anniversary-Edition-Setup-vXX.YY_ZZ.exe </code>
#: During the AEInstaller installation, there will be a prompt to provide Oni installation directory.
#: Navigate to the appropriate directory. Linux machine directory tree should be mapped as a drive "/".
# At the end of the installation, the AEInstaller will be automatically executed and will attempt to fetch updates.
#: During the fetching process, it may appear that the AEInstaller has hanged. That is not true, it just does not signalize that there is some work being done in the background. Be patient.
 
==How to launch AEInstaller==
# AEInstaller will be automatically launched once - during the installation process of the AEInstaller. Nice.
# However, to normally launch the AEInstaller as a user, open a Linux terminal, export "Oni" WINEPREFIX, 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_the_folder_where_Oni_WINEPREFIX_is_located </code>
#: <code> cd /full_path_to_the_AEInstaller2Updater.jar </code>
#: <code> wine start /ProgIDOpen jarfile AEInstaller2Updater.jar </code>
 
==Patch Oni via AEInstaller==
# Let the AEInstaller do its magic. ^_^
 
==How to launch patched Oni==
There are two possible ways to launch Oni.
# Launch the game through the AEInstaller application.
# Open a Linux terminal, export "Oni" WINEPREFIX, navigate to the folder with the patched Oni.exe file and launch it via Wine.
#: <code> export WINEPREFIX=/full_path_to_the_folder_where_Oni_WINEPREFIX_is_located </code>
#: <code> cd /full_path_to_the_patched_Oni.exe </code>
#: <code> wine Oni.exe </code>
 
==????==
# PROFIT! ^_^

Revision as of 18:59, 12 May 2020

There is no official support for Oni on a Linux family of OSes.
Nevertheless, it is still possible to run the game on Linux.
Anniversary Edition/Installer/Updater can be made to run as well.

Requirements

Wine
An application used as a compatiblity layer in order to run Windows applications on a Linux machine.
For maximum convenience, it is recommended to install the Wine directly from an official repository of the given Linux distribution (it is natively supported by a wide array of distros).
Wine 5.5 was tested to be be capable of flawlessly running Oni and AEInstaller.
Winetricks
Helper script for configuring various parts of Wine-created compatibility environments.
In some distros, Winetricks is installed alongside the Wine itself.
In other distors, it needs to be installed as a separate package.
A legacy JAVA Runtime Environment offline installer for 32bit (aka x86) version of Windows XP.
Max compatible version is 7u65.
Unfortunately, the official Oracle download page requires a subscription in order to download legacy versions of JRE.
An obscure link through legacy Sun Microsystems website (former developer of the JAVA platform) was found. The link ( click here ) can be used to download a JRE 7u25 offline installer.

How to prepare "Oni" WINEPREFIX

  1. Open a Linux terminal and create a new WINEPREFIX (a new instance of the Wine compatibility environment) by executing the following sequence of commands:
    export WINEARCH=win32
    export WINEPREFIX=/full_path_to_the_folder_where_this_WINEPREFIX_will_be_located
    winecfg
  2. The sequence of commands from the step 1 creates a new 32bit WINEPREFIX in the requested folder and opens a "Wine configuration" GUI tool.
    In the GUI tool, on the "Applications" tab, change the target Windows version to the "Windows XP". Then click on the OK button.
  3. Still in the same terminal (with all the export symbols defined) run Winetricks script to execute necessary configuration changes:
    winetricks corefonts msacm32
  4. Still in the same terminal (with all the export symbols defined) use cd command and navigate to the folder with the Java Runtime offline installer (let's assume the installer is named "jre-7u25-windows-i586.exe").
    Install the JRE into the given WINEPREFIX.
    cd /full_path_to_the_JRE_offline_installer
    wine jre-7u25-windows-i586.exe
  5. The "Oni" WINEPREFIX is now ready.
    Remember, that in order to run either Oni or AEInstaller, path to this WINEPREFIX must be specified (exported).
    If it is not specified, then the WINE application will use a default WINEPREFIX, and that one is probably set to represent 64bit Windows 7 or 64bit Windows 10 (which is quite sensible for most applications, but unfortunately not good enough for Oni).

How to install Oni

  1. Insert Oni installation medium into the CD/DVD drive (if installed from the CD, 00's style ^_^).
  2. Open a Linux terminal, export "Oni" WINEPREFIX, navigate to the folder with contents of the mounted CD drive and initiate the installation process.
    export WINEPREFIX=/full_path_to_the_folder_where_Oni_WINEPREFIX_is_located
    cd /full_path_to_the_contents_of_the_Oni_installation_medium
    wine OniSetup.exe
    During the installation process, it is recommended to NOT place the game inside the WINEPREFIX compatibility environment folder (do not place it anywhere on the faux "C:\" drive).
    Instead, choose an appropriate place somewhere in the Linux machine directory tree. Linux machine directory tree should be by default mapped as a different faux drive (usually it is mapped as drive "z:\")
  3. The game should install without problems. Ignore the warning regarding DirectX 7, it is harmless.
  4. DO NOT RUN THE GAME YET!!!
    An attempt to run the raw Oni on a modern system is almost guaranteed to fail as Oni will most probably unceremoniously crash.
    The game needs to be patched via AEInstaller.

How to install AEInstaller

This is a rather straightforward process.

  1. Download the latest Windows version of the AEInstaller from the Oni Mod Depot ( click here ).
  2. Open a Linux terminal, export "Oni" WINEPREFIX, navigate to the folder with the AEInstaller and initiate the installation process.
    export WINEPREFIX=/full_path_to_the_folder_where_Oni_WINEPREFIX_is_located
    cd /full_path_to_the_AEInstaller
    wine Anniversary-Edition-Setup-vXX.YY_ZZ.exe
    During the AEInstaller installation, there will be a prompt to provide Oni installation directory.
    Navigate to the appropriate directory. Linux machine directory tree should be mapped as a drive "/".
  3. At the end of the installation, the AEInstaller will be automatically executed and will attempt to fetch updates.
    During the fetching process, it may appear that the AEInstaller has hanged. That is not true, it just does not signalize that there is some work being done in the background. Be patient.

How to launch AEInstaller

  1. AEInstaller will be automatically launched once - during the installation process of the AEInstaller. Nice.
  2. However, to normally launch the AEInstaller as a user, open a Linux terminal, export "Oni" WINEPREFIX, navigate to the folder with the AEInstaller2Updater.jar file and launch the jar file through Wine JAVA Runtime Environment.
    export WINEPREFIX=/full_path_to_the_folder_where_Oni_WINEPREFIX_is_located
    cd /full_path_to_the_AEInstaller2Updater.jar
    wine start /ProgIDOpen jarfile AEInstaller2Updater.jar

Patch Oni via AEInstaller

  1. Let the AEInstaller do its magic. ^_^

How to launch patched Oni

There are two possible ways to launch Oni.

  1. Launch the game through the AEInstaller application.
  2. Open a Linux terminal, export "Oni" WINEPREFIX, navigate to the folder with the patched Oni.exe file and launch it via Wine.
    export WINEPREFIX=/full_path_to_the_folder_where_Oni_WINEPREFIX_is_located
    cd /full_path_to_the_patched_Oni.exe
    wine Oni.exe

????

  1. PROFIT! ^_^