Playing in Linux: Difference between revisions

m
wording
m (seems like this should be wikilinked too)
m (wording)
 
Line 12: Line 12:


==Using Lutris==
==Using Lutris==
Lutris is a popular GUI for managing games that run through compatibility layers such as Wine. It supports scripts which will automatically install either vanilla Oni or AE Oni. If those don't work for you, we provide manual instructions for installing the game through Lutris as well.
Lutris is a popular GUI for managing games that run through compatibility layers such as Wine. The program's website hosts user-made scripts which will automatically install various versions of a game (assuming you have the original game disc) with the necessary patching and configuration for your system, making Lutris a theoretically one-click solution for playing a game in Linux. The Oni community has provided scripts for installing the above three patched versions of Oni. If those scripts don't work for some reason, we provide manual instructions for installing the game through Lutris as well.


===Installing with a premade script===
===Installing with a premade script===
Line 25: Line 25:
2. On the next screen you will be prompted to browse into the CD-ROM directory and find the installer for Oni, typically called onisetup.exe. You will also be prompted to pick the variant of the Daodan DLL to install if you chose the oni-daodan-dll script.
2. On the next screen you will be prompted to browse into the CD-ROM directory and find the installer for Oni, typically called onisetup.exe. You will also be prompted to pick the variant of the Daodan DLL to install if you chose the oni-daodan-dll script.


3. The game's installer will be launched and you can proceed through the screens as usual; when asked for a destination directory, go with the default of C:\Program Files\Oni – this is a directory internal to the Wine prefix being created, not the actual location on your hard drive, and some of the install scripts expect this path to be used. Make sure to say "No" when the installer asks if you want to run GLSetup.
3. The game's installer will be launched and you can proceed through the installation screens as usual; when asked for a destination directory, go with the default of C:\Program Files\Oni – this is a directory internal to the Wine prefix being created, not the actual location on your hard drive, and some of the install scripts expect this path to be used. Make sure to say "No" when the installer asks if you want to run GLSetup.


4a. (AE Oni only) After the Oni installer finishes and closes, the AE Setup application will run. The default suggested location of Oni, C:\Program Files\Oni, is correct as long as you didn't change it in step 2. Once the AE Installer is downloaded, it will run and download its core mods, including the Daodan DLL patch which allows Oni to run on modern systems.
4a. (AE Oni only) After the Oni installer finishes and closes, the AE Setup application will run. AE Setup's default suggested location for Oni, C:\Program Files\Oni, is correct as long as you didn't change it in step 2. Once the AE Installer is downloaded by AE Setup, it will launch and download its core mods, including the Daodan DLL patch which allows Oni to run on modern systems.


4b. (OniX only) After the Oni installer finishes and closes, the OniX install script will launch in a console window. It may have questions for you at the start, but under normal circumstances it will simply run for several minutes. When done, you will be prompted to press any key to close the console window, and then the installation process will be complete.
4b. (OniX only) After the Oni installer finishes and closes, the OniX install script will launch in a console window. It may have questions for you at the start, but under normal circumstances it will simply run for several minutes. When done, you will be prompted to press any key to close the console window, and then the installation process will be complete.


The install scripts will create identically-named entries in the Lutris library for each version of Oni, so you'll need to edit the game's card afterward by right-clicking it, choosing Configure, and then changing its name to something like "Oni AE" which distinguishes it.
The install scripts will create identically-named entries in the Lutris library for each version of Oni, so you'll need to edit the game's card afterward by right-clicking it, choosing Configure, and then changing its name to something distinct.


===Manually installing vanilla Oni===
===Manually installing vanilla Oni===
Line 38: Line 38:
2. Insert the Oni CD-ROM or mount the disk image.
2. Insert the Oni CD-ROM or mount the disk image.


3. Launch Lutris; first it will have to finish installing the packages that it needs.
3. Launch Lutris; wait as it finishes 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.
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.
Line 47: Line 47:


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>
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).
: 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 automatically if you installed the Flatpak version. Make sure that Lutris has permission to access /run/media/. Now you can proceed past the writability 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).
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 shortcut 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.
9. When installation is done and you've closed the Oni installer, you'll see a card for Oni in your Lutris library with user-submitted cover art. 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.
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.
Line 70: Line 70:
7. Back in Lutris, right-click your OniX installation in the library and choose "Browse files". Navigate to Oni's location, e.g. /home/you/Games/oni/drive_c/Program Files/Oni/. Also open the expanded folder with the OniX files and move them into this Oni/ folder.
7. Back in Lutris, right-click your OniX installation in the library and choose "Browse files". Navigate to Oni's location, e.g. /home/you/Games/oni/drive_c/Program Files/Oni/. Also open the expanded folder with the OniX files and move them into this Oni/ folder.


8. Return to Lutris, click the arrow next to the wine glass icon at bottom, then choose "Open Wine console". The console window that pops up should be in the base directory of the Wine prefix, e.g. /home/you/Games/oni, so 'cd' into the actual Oni folder with <code>cd "drive_c/Program Files/Oni"</code>. Next, enter "GameDataConvert.bat" to run the batch script by that name. The script should proceed automatically. When it's done, close the Wine console.
8. Return to Lutris, click the arrow next to the wine glass icon at bottom, then choose "Open Wine console". The console window that pops up should start in the base directory of the Wine prefix, e.g. /home/you/Games/oni, so enter the actual Oni folder with <code>cd "drive_c/Program Files/Oni"</code>. Next, enter <code>GameDataConvert.bat</code> to run the batch script by that name. The script should proceed automatically. When it's done, close the Wine console.


9. Now return to Lutris. You're not done yet because this copy of the game is another window into the same Wine prefix as the original, and clicking Play will launch the vanilla Oni installation inside it. Right-click the game entry and choose Configure. Under the "Game options" tab, change the executable from […]/Oni/Oni.exe to […]/Oni/OniX.exe and click Save. You now have a direct way to launch OniX from your Lutris library by simply double-clicking it.
9. Now return to Lutris. You're not done yet because this copy of the entry in Lutris is still pointing to the original game executable in the Wine prefix. Right-click the game entry and choose Configure. Under the "Game options" tab, change the executable from […]/Oni/Oni.exe to […]/Oni/OniX.exe and click Save. You now have a direct way to launch OniX from your Lutris library by simply double-clicking it.


===Manually installing AE Oni===
===Manually installing AE Oni===