Playing in Linux: Difference between revisions

3,417 bytes added ,  Yesterday at 03:36
added instructions for installing Oni+Daodan under Lutris
(removed instructions on installing a global JRE, as the AE comes with a local JRE that works just fine)
(added instructions for installing Oni+Daodan under Lutris)
 
Line 2: Line 2:
{{Hatnote|If you are looking for help running Oni on the Steam Deck, see [[Playing on the Steam Deck]] for much simpler instructions.}}
{{Hatnote|If you are looking for help running Oni on the Steam Deck, see [[Playing on the Steam Deck]] for much simpler instructions.}}
There is no official support for Oni in the Linux OS family. Nevertheless, it is still possible to run the Windows version of the game on Linux using Wine using the below instructions. Installing the [[Anniversary Edition]] is covered as well.
There is no official support for Oni in the Linux OS family. Nevertheless, it is still possible to run the Windows version of the game on Linux using Wine using the below instructions. Installing the [[Anniversary Edition]] is covered as well.
==Using Lutris==
Lutris is a popular GUI for managing games that run through compatibility layers such as Wine.
===Installing patched vanilla Oni===
1. Using the app store in your Linux distro, install Lutris as a Flatpak (not as an RPM, aka System Package).
2. Insert the Oni CD-ROM or mount the disk image.
3. Launch Lutris; first it will need to finish installing the packages that it needs.
4. Click the + button at top left, then choose "Install a Windows game from an executable". Enter the name of the game in "Game name". The identifier can stay as-is. For "Installer preset", choose "Windows 98 + 3DFX 32-bit" and leave the locale set to System. Click Install.
5. On the next screen, click Install again.
6. The next screen will ask for an install location. Anything along the lines of /home/you/Games/oni is fine. Say yes to a desktop shortcut and/or application menu shortcut if you desire. Click Continue.
7. The next screen will ask you to select the setup file. Click the "Browse…" button, navigate to the Oni CD-ROM, and pick onisetup.exe. After clicking OK, click Install.<br>
: If, after picking the installer, you are warned that "The destination folder is not writable by the current user", you need to cancel this installation process, close Lutris, and install Flatseal. In Flatseal, Lutris should be listed if you installed the Flatpak version. Make sure that Lutris has permission to access /run/media/. Now you can proceed past the writable warning and continue with the installation in Lutris (you would get a fatal error here if you disregarded the warning).
8. It will take a couple minutes for Lutris to launch the installer, but you can then walk through the original Oni installer's process to install the game. The destination within the installer does not matter much; you have already told Lutris where the game will actually be going, and the location chosen here will be a subdirectory within that folder. Thus the default installation location of C:\Program Files\Oni will be fine. Make sure to say "No" when asked to run GLSetup. Say no to the offer of a desktop shortcut as well, since you wouldn't be able to see it (it's the one that Lutris offered to create in step 6 which matters).
9. When installation is done and you've closed the Oni installer, you'll see a card for Oni in your Lutris library (the cover art was submitted by a fan). You're not done yet: right-click the game and choose "Configure". In the Configure window, under the "Game options" tab, change "Prefix architecture" from "Auto (default)" to "32-bit". Under "Runner options", change the Wine version from the default setting to "System", then turn off Esync, Fsync, AMD FidelityFX Super Resolution, BattlEye Anti-Cheat and Easy Anti-Cheat. Click Save.
10. Oni isn't ready to run until we patch it with the Daodan DLL. Right-click the game again and choose "Browse files". You'll find yourself in the Linux file manager looking at a folder probably called "oni". Enter it and drill down to Program Files/Oni/, where the game EXE and GameDataFolder reside. Now that you see the directory where the Daodan DLL needs to go, visit the [[Daodan DLL]] page and follow the instructions there for manual installation. Note that step 5 tells the reader to click on the Oni EXE, but in Linux you'll need to launch the game through Lutris. When launched through Lutris, Oni should now run successfully.


==Manual approach==
==Manual approach==