Jump to content

Playing in Linux: Difference between revisions

m
seems like this should be wikilinked too
(fitted OniX into the manual Wine instructions instead of placing it at the beginning of the article)
m (seems like this should be wikilinked too)
 
(5 intermediate revisions by the same user not shown)
Line 5: Line 5:
==Picking which Oni you want to run==
==Picking which Oni you want to run==
You essentially have three choices for the version of Oni you want to run:
You essentially have three choices for the version of Oni you want to run:
*{{Hover|Vanilla|text=Vanilla means the game has not been modded.}} Oni + Daodan DLL patch
*{{Hover|Vanilla|text=Vanilla means the game has not been modded.}} Oni + [[Daodan DLL]] patch
*[[Anniversary Edition]] Oni
*[[Anniversary Edition]] Oni
*[[OniX]]
*[[OniX]]
Line 15: Line 15:


===Installing with a premade script===
===Installing with a premade script===
An Oni fan has uploaded two install scripts to lutris.net. They can be viewed and downloaded from [https://lutris.net/games/oni/ the game's page] or, if you have Lutris installed, you can simply copy-paste one of the links below into your browser and it will offer to open the install script in Lutris. Make sure to have the Oni CD-ROM (or disk image) ready to be mounted.
Premade install scripts are available from lutris.net for your convenience. They can be viewed and downloaded from [https://lutris.net/games/oni/ their Oni page] or, if you have Lutris installed, you can simply copy-paste one of the links below into your browser and it will offer to open the install script in Lutris. Make sure to have the Oni CD-ROM inserted (or the disk image mounted).
:lutris:oni-vanilla
:'''lutris:oni-daodan-dll'''
:lutris:oni-anniversary-edition
:'''lutris:oni-anniversary-edition'''
:'''lutris:oni-onix'''
:A vanilla installation is also available at lutris:oni-vanilla but it would require manual patching to be able to run.


1. When the script starts, you will be prompted to browse into the CD-ROM directory and find the installer for Oni, typically called onisetup.exe.
1. When you click Install to start running the install script, the default directory for the Lutris installation will end in "oni/" for all three patched versions of the game. This will create a naming conflict if you run one version's install script and then also want to install another version of the game. It's better to name the directory "oni-daodan/" or "oni-ae/" or "onix/" to avoid this problem, but if you do use the default directory that the install script suggests, "oni/", you can always change the directory later by right-clicking the entry in your Lutris library, choosing Configure, and using the Move button. Or you could simply not worry about it, use "oni/" for the first version of the game you install, and use a name like the ones above for additional installations, should they occur.


2. Once selected, 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. Make sure to say "No" when the installer asks if you want to run GLSetup.
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.


3a. (vanilla Oni only) Do not click "Launch" when the Oni installer finishes and closes and you come back to Lutris, because vanilla Oni can't run on modern systems without being patched. Instead, close the Lutris install window and follow step 10 in the next section to install the Daodan DLL, and then you are ready to play Oni through Lutris.
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.


3b. (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. 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.


Note that if you run the vanilla Oni install script and then also want to install AE Oni, you can't use the default directory that the install script suggests, /home/you/games/oni, because that was already used for vanilla Oni, so use something like /home/you/games/oni-ae instead. However the install directory which the Oni installer suggests, C:\Program Files\Oni, can remain the same since it is internal to the new Wine prefix which Lutris is creating. Note too that the install scripts will create identical cards in Lutris so you will need to edit the AE card by right-clicking it and choosing Configure, and then changing its name to something like "Oni AE".
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.


===Manually installing vanilla Oni===
===Manually installing vanilla Oni===
Line 52: Line 56:


===Manually installing OniX===
===Manually installing OniX===
[…]
1. Follow the instructions under {{SectionLink||Manually installing vanilla Oni}} through step 9.
 
2. Right-click the Oni installation you added to the Lutris library and choose Duplicate. Name the new copy "OniX".
 
3. Left-click the copy and click the arrow next to the wine glass icon at bottom, then choose Winetricks.
 
4. When the Winetricks GUI appears and asks you to choose the wineprefix, tell it "Select the default wineprefix". On the next screen, make sure that the window title has the correct prefix set; it should be something like /home/you/Games/oni.
 
5. Choose "Install a Windows DLL or component". When presented with a long list, start typing "dotnet". The AE requires .NET 2.0, so select dotnet20. You may receive some error messages that automatically dismiss themselves; do not worry about these. The .NET installer will run invisibly for a while and you will then return to the Winetricks GUI, which you can exit.
 
6. Download the OniX package from the [[OniX]] page and expand the ZIP.
 
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.
 
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.


===Manually installing AE Oni===
===Manually installing AE Oni===
First follow the instructions under {{SectionLink||Manually installing vanilla Oni}} through step 9. Then you will have a Wine prefix containing Oni, with which you can follow the instructions in {{SectionLink||D3: Patching Oni with the AE}}.
1. Follow the instructions under {{SectionLink||Manually installing vanilla Oni}} through step 9.
 
2. Right-click the Oni installation you added to the Lutris library and choose Duplicate. Name the new copy something like "Oni AE".
 
3. Left-click the copy and click the arrow next to the wine glass icon at bottom, then choose Winetricks.
 
4. When the Winetricks GUI appears and asks you to choose the wineprefix, tell it "Select the default wineprefix". On the next screen, make sure that the window title has the correct prefix set; it should be something like /home/you/Games/oni.
 
5. Choose "Install a Windows DLL or component". When presented with a long list, start typing "dotnet". The AE requires .NET 2.0, so select dotnet20. You may receive some error messages that automatically dismiss themselves; do not worry about these. The .NET installer will run invisibly for a while and you will then return to the Winetricks GUI, which you can exit.
 
6. Download the AE Setup application from the [[Anniversary Edition]] page.
 
7. Back in Lutris, select your "Oni AE" installation in the library. Click the arrow next to the wine glass icon at bottom, then choose "Run EXE inside Wine prefix". In the dialog that pops up, navigate to /home/you/Downloads or wherever you saved the AE Setup application.
 
8. The Setup app should open, asking you to locate the installation of Oni. It should be at the default location of C:\Program Files\Oni. Click Next, accept the default Start Menu folder name with Next, and skip making a desktop shortcut since this is within the Wine prefix. Select "Direct connection" for Internet connection type unless you need to use a proxy, and proceed with the installation. The AEI Updater should open the AE Installer, which will prompt you to initialize the Edition.
 
9. After completing the AE installation, 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/AE/Oni.exe and click Save. You now have a copy of the AE in your Lutris library that you can simply double-click to run.


==Using Wine directly==
==Using Wine directly==
Line 113: Line 149:
: <code>winetricks</code>
: <code>winetricks</code>


2. Running winetricks without any arguments will launch a GUI. First choose "Select the default wineprefix". On the next screen, make sure that the window title has the correct prefix set. Choose "Install a Windows DLL or component". When presented with a long list, scroll down to the "dotnet" section. The AE requires .NET 2.0, so select dotnet20. When Microsoft .NET Framework 2.0 Setup appears, proceed through the installation normally. You will return to the Winetricks GUI, which you can exit.
2. Running winetricks without any arguments will launch a GUI. First choose "Select the default wineprefix". On the next screen, make sure that the window title has the correct prefix set. Choose "Install a Windows DLL or component". When presented with a long list, start typing "dotnet". The AE requires .NET 2.0, so select dotnet20. When Microsoft .NET Framework 2.0 Setup appears, proceed through the installation normally. You will return to the Winetricks GUI, which you can exit.


2. Download the latest Windows version of the AE Installer, linked from [[Anniversary Edition]].
2. Download the latest Windows version of the AE Installer, linked from [[Anniversary Edition]].