Playing in Linux: Difference between revisions

m (mentioned that a .desktop file can be used as a shortcut)
(added instructions for installing Oni+Daodan under Lutris)
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{UpdatedForOniX|1.0.0}}
{{UpdatedForOniX|1.0.0}}
{{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. The [[Anniversary Edition]] Installer can be made to run 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==
Line 14: Line 39:
: A helper app for configuring various parts of Wine-created compatibility environments.
: A helper app for configuring various parts of Wine-created compatibility environments.
: In some distros, Winetricks is installed alongside Wine itself, however it usually needs to be installed as a separate package, so search for "winetricks" and install it if it hasn't already been installed.
: In some distros, Winetricks is installed alongside Wine itself, however it usually needs to be installed as a separate package, so search for "winetricks" and install it if it hasn't already been installed.
; A legacy Java Runtime Environment offline installer for the 32-bit (aka x86) version of Windows XP
:You'll need this for installing the Anniversary Edition, if you want it (the game can be patched to run without installing the AE; this is covered below).
: The maximum compatible version is '''7u65'''. An installer for 7u25 is still hosted [https://javadl.oracle.com/webapps/download/AutoDL?BundleId=78825 here].


===B: Preparing the Wine prefix===
===B: Preparing the Wine prefix===
1. Open a Linux terminal and create a new Wine prefix (an instance of the Wine compatibility environment) with these commands:
1. Open a Linux terminal and create a new Wine prefix (an instance of the Wine compatibility environment) with these commands:
: <code>export WINEARCH=win32</code>
: <code>export WINEARCH=win32</code>
: <code>export WINEPREFIX=/full/path/to/prefix</code> (where you want the prefix to be stored, e.g. "~/Documents/Wine/Oni"; the game itself can be installed somewhere else on your hard drive – this is just the compatibility layer for it; the directory you enter here will be created when you run the next command)
: <code>export WINEPREFIX=/full/path/to/prefix</code> (where you want the prefix to be stored, e.g. "~/Documents/Wine/WinXP"; the game itself can be installed somewhere else on your hard drive – this is just the compatibility layer for it; the directory you enter here will be created when you run the next command)
: <code>winecfg</code>
: <code>winecfg</code>


Line 30: Line 51:
: <code>winetricks corefonts msacm32</code>
: <code>winetricks corefonts msacm32</code>


4. '''If you're going to install the AE''': Still in the same terminal (with all the export symbols defined), use the "cd" command to navigate to the folder with the Java Runtime Environment installer. Install the JRE into the given Wine prefix like this (assuming the installer is named "jre-7u25-windows-i586.exe"):
4. The "WinXP" Wine prefix is now ready. Remember that, in order to run either Oni or the AE Installer, the path to this prefix file must be specified (exported). If it is not specified, then the Wine session will use a default prefix file, one which is probably set to represent 64-bit Windows 7 or 64-bit Windows 10 (which is quite sensible for most applications, but unfortunately not good enough for Oni). See step E for details.
: <code>cd /full/path/to/JRE/installer</code>
: <code>wine jre-7u25-windows-i586.exe</code>
 
5. The "Oni" Wine prefix is now ready. Remember that, in order to run either Oni or the AE Installer, the path to this prefix file must be specified (exported). If it is not specified, then the Wine session will use a default prefix file, one which is probably set to represent 64-bit Windows 7 or 64-bit Windows 10 (which is quite sensible for most applications, but unfortunately not good enough for Oni). See step E for details.


===C: Installing Oni===
===C: Installing Oni===
Line 41: Line 58:
1. Mount the disk image for the Oni CD-ROM, or insert your CD-ROM into the disc drive.
1. Mount the disk image for the Oni CD-ROM, or insert your CD-ROM into the disc drive.


2. Open a Linux terminal, export the "Oni" prefix you created in step B1, navigate to the folder with the contents of the mounted CD, and initiate the installation process:
2. Open a Linux terminal, export the WinXP prefix you created in step B1, navigate to the folder with the contents of the mounted CD, and initiate the installation process:
: <code>export WINEPREFIX=/full/path/to/prefix</code>
: <code>export WINEPREFIX=/full/path/to/prefix</code>
: <code>cd /path/to/Oni/CD</code> (you may have to open the CD in your file manager to see its path, e.g. /run/media/[user name]/001228_1801/ or /media/[user name]/001228_1801/)
: <code>cd /path/to/Oni/CD</code> (you may have to open the CD in your file manager to see its path, e.g. /run/media/[user name]/001228_1801/ or /media/[user name]/001228_1801/)
Line 57: Line 74:
===D2: Patching Oni with the AE===
===D2: Patching Oni with the AE===
====a: Installing the AE====
====a: Installing the AE====
This is a rather straightforward process which builds on an Oni installation.
This is a more complex process which builds a patched copy of Oni on top of a vanilla Oni installation, but it will allow you to install mods.


1. Download the latest Windows version of the AE Installer from the Oni Mod Depot ([http://mods.oni2.net/node/79 click here]).
1. First you need to install .NET in Wine. In a terminal, run the commands:
: <code>export WINEPREFIX=/full/path/to/prefix</code>
: <code>winetricks</code>


2. Open a Linux terminal, export the "Oni" prefix, navigate to the folder with the AE Installer, and initiate the installation process:
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. Download the latest Windows version of the AE Installer, linked from [[Anniversary Edition]].
 
3. In the terminal, export the WinXP prefix if it isn't already exported, then navigate to the folder with the AE Installer and initiate the installation process:
: <code>export WINEPREFIX=/full/path/to/prefix</code>
: <code>export WINEPREFIX=/full/path/to/prefix</code>
: <code>cd /full/path/to/folder/with/AE/Setup</code>
: <code>cd /full/path/to/folder/with/AE/Setup</code>
: <code>wine Anniversary-Edition-Setup-vXX.YY_ZZ.exe</code>
: <code>wine Anniversary-Edition-Setup-vXX.YY_ZZ.exe</code>


3. During the AE installation, there will be a prompt to provide Oni's installation directory. Navigate to the appropriate directory. Your Linux system's directory tree should be mapped to "/".
4. During the AE installation, there will be a prompt to provide Oni's installation directory. Navigate to the appropriate directory. Your Linux system's directory tree should be mapped to "Z:/". Don't bother to create Start Menu or desktop shortcuts, as you will not see them.
 
5. At the end of the installation, the AE Installer Updater will be automatically executed and will attempt to fetch the current AE Installer. During the fetching process, it may appear that the Updater has hanged, but this is because the initial part of the fetching process takes the longest.


4. At the end of the installation, the AE Installer will be automatically executed and will attempt to fetch updates. During the fetching process, it may appear that the AE Installer has hanged, but this is because there is no visual indication that there is work being done in the background. Be patient.
6. The Updater will launch the Installer. When the Installer launches, there is also no visual indication that there is work being done in the background as the AEI talks to the Mod Depot, so be patient.


5. Remember to follow the instructions within the AE Installer which tell you to hit the Install button at least once, even if you don't select any mods to install.
The progress dialogs for updating and installing the AE may have a glitch under Wine where they hide behind the AEI's main window, but they are still present and working. The Instructions window which presents tips for using the AEI may also be glitched, presenting as a tiny title bar only. Close the tiny window and proceed to choose some mods if you wish. You can leave all mods turned off, but you do have to click the Install button at least once.


====b: Running the AE Installer====
====b: Running the AE Installer====
The AE Installer will be automatically launched after it is installed. However, any other time you want to launch the AE Installer, open a Linux terminal, export the "Oni" prefix, navigate to the folder with the '''AEInstaller2Updater.jar''' file, and launch the .jar file through Wine Java Runtime Environment:
The AE Installer will be automatically launched after it is installed. However, any other time you want to launch the AE Installer, open a Linux terminal, export the WinXP prefix, and navigate to the folder with the '''AEInstaller2.jar''' file (starting from Oni's folder, this is AE/AEInstaller/bin/). Launch the .jar file through your Wine prefix's Java Runtime Environment:
: <code>export WINEPREFIX=/full/path/to/prefix</code>
: <code>export WINEPREFIX=/full/path/to/prefix</code>
: <code>cd /full/path/to/folder/with/AE/Installer</code>
: <code>cd /full/path/to/folder/with/AE/Installer</code>
: <code>wine start /ProgIDOpen jarfile AEInstaller2Updater.jar</code>
: <code>wine start /ProgIDOpen jarfile AEInstaller2.jar</code>


===E: Launching patched Oni===
===E: Launching patched Oni===
There are two possible ways to launch Oni:<br>
There are two possible ways to launch Oni:<br>
1. Launch the game through the AE Installer application if you installed the AE.
1. If you installed the AE, launch the game through the AE Installer, which itself is launched using the process in D2(b).


2. Open a Linux terminal, export the "Oni" prefix, navigate to the folder with the patched Oni.exe file, and launch it via Wine:
2. If you didn't install the AE, or want to launch the Oni EXE directly without going through the AEI, open a Linux terminal, export the WinXP prefix, navigate to the folder with the patched Oni.exe file, and launch it via Wine:
: <code>export WINEPREFIX=/full/path/to/prefix</code>
: <code>export WINEPREFIX=/full/path/to/prefix</code>
: <code>cd /full/path/to/folder/with/patched/Oni/EXE</code>
: <code>cd /full/path/to/folder/with/patched/Oni/EXE</code>
: <code>wine Oni.exe</code>
: <code>wine Oni.exe</code>


As a shortcut, you can place the above commands in a shell script and then create a desktop file which executes the script (make sure to set both the .sh and .desktop files as executable).
As a shortcut, you can place the above commands into a shell script and then create a desktop file which executes the script (make sure to set both the .sh and .desktop files as executable).


===Troubleshooting===
===Troubleshooting===
Line 103: Line 128:
   },
   },
You may be able to get by with the numbers 1024 and 8192, but if that doesn't work, try raising them to the above figures. Unfortunately, the higher the numbers, the more delayed Oni's sound will be.
You may be able to get by with the numbers 1024 and 8192, but if that doesn't work, try raising them to the above figures. Unfortunately, the higher the numbers, the more delayed Oni's sound will be.
;Any other problems
Note that because you are running a Windows application, the problems which crop up in Windows Oni can happen here too. See {{SectionLink|Troubleshooting|Windows}} for further issues and their solutions.


[[Category:Oni Support]]
[[Category:Oni Support]]

Latest revision as of 03:36, 5 November 2025

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.

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.

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

Rather than using a Wine management GUI such as Lutris or Bottles, you may want to do it yourself by working directly with Wine (this is also a fallback if those tools do not work for you).

A: Installing the needed packages

Wine
A compatibility layer for running Windows applications on a Linux machine.
Open a Linux terminal and tell your package manager to search for "wine32". (You will need to know what your package manager is: apk, apt, dnf, emerge, pacman, yum, zypp…). The package might be called "wine32", "wine.i686", etc. If you don't see such a package, you may need to enable 32-bit architecture with a command such as (in Ubuntu) sudo dpkg --add-architecture i386 followed by sudo apt update, then search again. In order to install Wine, the package manager may also need to install a ton of dependencies if this a fairly new Linux install, but it will probably not take too long.
Winetricks
A helper app for configuring various parts of Wine-created compatibility environments.
In some distros, Winetricks is installed alongside Wine itself, however it usually needs to be installed as a separate package, so search for "winetricks" and install it if it hasn't already been installed.

B: Preparing the Wine prefix

1. Open a Linux terminal and create a new Wine prefix (an instance of the Wine compatibility environment) with these commands:

export WINEARCH=win32
export WINEPREFIX=/full/path/to/prefix (where you want the prefix to be stored, e.g. "~/Documents/Wine/WinXP"; the game itself can be installed somewhere else on your hard drive – this is just the compatibility layer for it; the directory you enter here will be created when you run the next command)
winecfg

2. This creates a 32-bit Wine prefix in the requested folder and opens a "Wine configuration" GUI tool. In the GUI tool, under the "Applications" tab, change the target Windows version to "Windows XP" and click "OK".

3. Still in the same terminal (with all the export symbols defined), tell Winetricks to execute the necessary configuration changes:

winetricks corefonts msacm32

4. The "WinXP" Wine prefix is now ready. Remember that, in order to run either Oni or the AE Installer, the path to this prefix file must be specified (exported). If it is not specified, then the Wine session will use a default prefix file, one which is probably set to represent 64-bit Windows 7 or 64-bit Windows 10 (which is quite sensible for most applications, but unfortunately not good enough for Oni). See step E for details.

C: Installing Oni

Skip to the next section if you have an existing installation of Oni.

1. Mount the disk image for the Oni CD-ROM, or insert your CD-ROM into the disc drive.

2. Open a Linux terminal, export the WinXP prefix you created in step B1, navigate to the folder with the contents of the mounted CD, and initiate the installation process:

export WINEPREFIX=/full/path/to/prefix
cd /path/to/Oni/CD (you may have to open the CD in your file manager to see its path, e.g. /run/media/[user name]/001228_1801/ or /media/[user name]/001228_1801/)
wine onisetup.exe or wine OniSetup.exe (the capitalization of the EXE varies)

3. During the installation process, it is recommended to NOT place the game inside the prefix file's compatibility environment folder (that is, do not place it anywhere on the faux "C:\" drive that the installer presents). Instead choose an appropriate place somewhere in your Linux machine's directory tree. The computer's native directory tree should be mapped by default as a different faux drive (usually "Z:\"). This maintains a distinction between the Wine prefix used to run the game and the game itself (you might want to re-use this prefix for other games, or try out other prefixes for this game). It also makes the game directory easier to access in the Linux file explorer when performing operations like step D1 (if you choose to go that route).

4. Oni should install without problems. When GLSetup runs and offers to install OpenGL, make sure to say "No". Creating a desktop shortcut is also pointless because you will need to create your own shortcut that uses Wine (see step E). When the installer closes, you can eject the Oni CD-ROM or un-mount the disk image.

5. Don't bother trying to run the game yet. An attempt to run an unpatched copy of Oni on a modern system is almost guaranteed to fail. The game needs to be patched via the Daodan DLL or the AE, so choose your path below: D1 or D2 (they are inter-compatible, so you can both patch your base install of Oni with the Daodan DLL and also install the AE on top of the base install to get a second copy of the game which is patched and also contains mods).

D1: Patching Oni with the Daodan DLL

The Anniversary Edition is not required in order to provide the patch that Oni needs in order to run on modern systems. The AE makes it possible to installs mods in Oni, but the patch comes from the Daodan DLL, an independent fan creation which the AE automatically installs. Go to the Daodan DLL article and follow the manual installation instructions, substituting the standard path given there for Oni (C:\Program Files\Oni\) for the one you picked in the installer in step C3.

D2: Patching Oni with the AE

a: Installing the AE

This is a more complex process which builds a patched copy of Oni on top of a vanilla Oni installation, but it will allow you to install mods.

1. First you need to install .NET in Wine. In a terminal, run the commands:

export WINEPREFIX=/full/path/to/prefix
winetricks

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. Download the latest Windows version of the AE Installer, linked from Anniversary Edition.

3. In the terminal, export the WinXP prefix if it isn't already exported, then navigate to the folder with the AE Installer and initiate the installation process:

export WINEPREFIX=/full/path/to/prefix
cd /full/path/to/folder/with/AE/Setup
wine Anniversary-Edition-Setup-vXX.YY_ZZ.exe

4. During the AE installation, there will be a prompt to provide Oni's installation directory. Navigate to the appropriate directory. Your Linux system's directory tree should be mapped to "Z:/". Don't bother to create Start Menu or desktop shortcuts, as you will not see them.

5. At the end of the installation, the AE Installer Updater will be automatically executed and will attempt to fetch the current AE Installer. During the fetching process, it may appear that the Updater has hanged, but this is because the initial part of the fetching process takes the longest.

6. The Updater will launch the Installer. When the Installer launches, there is also no visual indication that there is work being done in the background as the AEI talks to the Mod Depot, so be patient.

The progress dialogs for updating and installing the AE may have a glitch under Wine where they hide behind the AEI's main window, but they are still present and working. The Instructions window which presents tips for using the AEI may also be glitched, presenting as a tiny title bar only. Close the tiny window and proceed to choose some mods if you wish. You can leave all mods turned off, but you do have to click the Install button at least once.

b: Running the AE Installer

The AE Installer will be automatically launched after it is installed. However, any other time you want to launch the AE Installer, open a Linux terminal, export the WinXP prefix, and navigate to the folder with the AEInstaller2.jar file (starting from Oni's folder, this is AE/AEInstaller/bin/). Launch the .jar file through your Wine prefix's Java Runtime Environment:

export WINEPREFIX=/full/path/to/prefix
cd /full/path/to/folder/with/AE/Installer
wine start /ProgIDOpen jarfile AEInstaller2.jar

E: Launching patched Oni

There are two possible ways to launch Oni:
1. If you installed the AE, launch the game through the AE Installer, which itself is launched using the process in D2(b).

2. If you didn't install the AE, or want to launch the Oni EXE directly without going through the AEI, open a Linux terminal, export the WinXP prefix, navigate to the folder with the patched Oni.exe file, and launch it via Wine:

export WINEPREFIX=/full/path/to/prefix
cd /full/path/to/folder/with/patched/Oni/EXE
wine Oni.exe

As a shortcut, you can place the above commands into a shell script and then create a desktop file which executes the script (make sure to set both the .sh and .desktop files as executable).

Troubleshooting

Gunfire kills the frame rate

Some users experience a large drop in frame rate when certain actions occur such as firing a gun. This is a sound-related bug which indicates that you didn't follow step 3 under "Preparing the Wine prefix" :-) Make sure to install msacm32 with winetricks.

Sound stutters so badly that it's mostly inaudible

This was only observed happening in Linux running inside of a VM, specifically Fedora Linux. The audio server, pipewire, does not allow enough headroom for the latency that comes with virtualization. This can be fixed by making a user-level copy of the config file:

mkdir -p ~/.config/wireplumber/main.lua.d
cp /usr/share/wireplumber/main.lua.d/50-alsa-config.lua ~/.config/wireplumber/main.lua.d

…and then editing ~/.config/wireplumber/main.lua.d/50-alsa-config.lua to change this portion of the file as follows:

 ["vm.node.defaults"] = {
   ["api.alsa.period-size"] = 2048,
   ["api.alsa.headroom"] = 16384,
 },

You may be able to get by with the numbers 1024 and 8192, but if that doesn't work, try raising them to the above figures. Unfortunately, the higher the numbers, the more delayed Oni's sound will be.

Any other problems

Note that because you are running a Windows application, the problems which crop up in Windows Oni can happen here too. See Troubleshooting § Windows for further issues and their solutions.