Playing in Linux: Difference between revisions

Writing, writing...
(Can I get unbanned on the Oni Discord after I finish this article? Pretty please ^_^)
 
(Writing, writing...)
Line 1: Line 1:
There is no official support for Oni on a family of Linux OSes.<br/>
There is no official support for Oni on a Linux family of OSes.<br/>
However, it is possible to run the game on Linux.<br>
Nevertheless, it is still possible to run the game on Linux.<br>
It is also possible to run the AEInstaller application.
[[Anniversary Edition/Installer/Updater]] can be made to run as well.


==Requirements==
==Requirements==
; [https://www.winehq.org Wine]
; [https://www.winehq.org Wine]
: An application used as a compatiblity layer in order to run Windows applications on a Linux machine.
: An application used as a compatiblity layer in order to run Windows applications on a Linux machine.
: For maximum convenience, install the Wine directly from an official repository of your given Linux distribution (it is natively supported by wide array of distros).
: 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.
: Wine 5.5 was tested to be be capable of flawlessly running Oni and AEInstaller.


Line 14: Line 14:
: In other distors, it needs to be installed as a separate package.
: In other distors, it needs to be installed as a separate package.


; Some legacy JAVA Runtime Environment offline installer for 32bit Windows XP.
; A legacy JAVA Runtime Environment offline installer for 32bit (aka x86) version of Windows XP.
: Max compatible version is '''7u65'''.
: Max compatible version is '''7u65'''.
: Unfortunately, the official Oracle download page requires subscription in order to download legacy versions of JRE.
: Unfortunately, the [https://www.oracle.com/java/technologies/javase/javase7-archive-downloads.html 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 ( [https://javadl.sun.com/webapps/download/AutoDL?BundleId=78825 click here] ) can be used to download a JRE 7u25 offline installer.
: An obscure link through legacy Sun Microsystems website (former developer of the JAVA platform) was found. The link ( [https://javadl.sun.com/webapps/download/AutoDL?BundleId=78825 click here] ) can be used to download a JRE 7u25 offline installer.


==Steps==
==How to prepare "Oni" WINEPREFIX==
# Open a terminal and create a new WINEPREFIX (a new instance of the Wine compatibility environment) by using the following sequence of commands:
# 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
#: <code> export WINEARCH=win32 </code>
#: export WINEPREFIX=full_path_to_the_folder_where_this_WINEPREFIX_will_be_located
#: <code> export WINEPREFIX=/full_path_to_the_folder_where_this_WINEPREFIX_will_be_located </code>
#: winecfg
#: <code> winecfg </code>
# There may be some text written into the terminal about some functions not supported and so on and so forth. Usually it is safe to ignore it.<br/>Eventually, a "Wine configuration" GUI window should appear.
# The sequence of commands from the step 1 creates a new 32bit WINEPREFIX in the requested folder and opens a "Wine configuration" GUI tool.
# On the "Applications" tab, change the Windows version to "Windows XP". Then click on the OK button.
#: In the GUI tool, on the "Applications" tab, change the target Windows version to the "Windows XP". Then click on the OK button.
# TBD, bed time...
# Still in the same terminal (with all the export symbols defined) run Winetricks script to execute necessary configuration changes:
#: <code> winetricks corefonts msacm32 </code>
# 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").<br/>Install the JRE into the given WINEPREFIX.
#: <code> cd /full_path_to_the_JRE_offline_installer </code>
#: <code> wine jre-7u25-windows-i586.exe </code>
# 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==
# 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.
#: <code> export WINEPREFIX=/full_path_to_the_folder_where_Oni_WINEPREFIX_is_located </code>
#: <code> cd /full_path_to_the_contents_of_the_Oni_installation_medium </code>
#: <code> wine OniSetup.exe </code>
#: 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:\")
# 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...
271

edits