Oni Central Forum

A forum for the Oni community

You are not logged in.

#1 18/11/17 13:19

6u1d0
Member
Registered: 18/11/17

AE on Linux. Runs Flawlessly now...

Hello,
I'd like to run ONI AE in a wine on LMDE (linux). I won't bother you with linux and wine related process, so far I succesfully ran the ONI setup and patched it with AE.
Only it doesn't launch.
I ran through the problem, and I need to identify where the initialisation fails :
Here is the startup.txt

system sleep disabled
keystroke traps installed
begin initializing oni
looking for the game data folder
initializing the template manager
DataFolder = GameDataFolder
Created a file iterator for the data folder.
Got Level Info for level0_Final.dat.
Valid Level level0_Final.dat
Got Level Info for level10_Final.dat.
Valid Level level10_Final.dat
Got Level Info for level11_Final.dat.
Valid Level level11_Final.dat
Got Level Info for level12_Final.dat.
Valid Level level12_Final.dat
Got Level Info for level13_Final.dat.
Valid Level level13_Final.dat
Got Level Info for level14_Final.dat.
Valid Level level14_Final.dat
Got Level Info for level18_Final.dat.
Valid Level level18_Final.dat
Got Level Info for level19_Final.dat.
Valid Level level19_Final.dat
Got Level Info for level1_Final.dat.
Valid Level level1_Final.dat
Got Level Info for level2_Final.dat.
Valid Level level2_Final.dat
Got Level Info for level3_Final.dat.
Valid Level level3_Final.dat
Got Level Info for level4_Final.dat.
Valid Level level4_Final.dat
Got Level Info for level6_Final.dat.
Valid Level level6_Final.dat
Got Level Info for level8_Final.dat.
Valid Level level8_Final.dat
Got Level Info for level9_Final.dat.
Valid Level level9_Final.dat
calling TMrRegisterTemplates
calling ONrRegisterTemplates
initializing oni platform specific code
initializing sound system 2, basic level
initializing basic sound system 2 layer...
DirectSoundCreate
direct sound dwFlags = f5f
direct sound dwFreeHw3DAllBuffers = 0
direct sound dwFreeHw3DStaticBuffers = 0
direct sound dwFreeHw3DStreamingBuffers = 0
direct sound dwFreeHwMemBytes = 0
direct sound dwFreeHwMixingAllBuffers = 16
direct sound dwFreeHwMixingStaticBuffers = 16
direct sound dwMaxContigFreeHwMemBytes = 0
direct sound dwMaxHw3DAllBuffers = 0
direct sound dwFreeHwMixingStaticBuffers = 16
direct sound dwFreeHwMixingStreamingBuffers = 16
direct sound dwMaxContigFreeHwMemBytes = 0
direct sound dwMaxHw3DAllBuffers = 0
direct sound dwMaxHw3DStaticBuffers = 0
direct sound dwMaxHw3DStreamingBuffers = 0
direct sound dwMaxHwMixingAllBuffers = 16
direct sound dwMaxHwMixingStaticBuffers = 16
direct sound dwMaxHwMixingStreamingBuffers = 16
direct sound dwMaxSecondarySampleRate = 200000
direct sound dwMinSecondarySampleRate = 100
direct sound dwPlayCpuOverheadSwBuffers = 0
direct sound dwPrimaryBuffers = 1
direct sound dwSize = 96
direct sound dwTotalHwMemBytes = 0
direct sound dwUnlockTransferRateHwBuffers = 0
setting the direct sound cooperative level
initializing oni persistance
initializing scripting
initializing binary data system
initializing imaging
initializing image system...
initializing motoko
initializing 3D display system..
initializing geometry engines...
initializing draw engines...

So I guess that draw engines is the most obvious suspect.

If you had such an issue on a windows XP, what would you suggest ?

Last edited by 6u1d0 (27/11/17 5:00)

Offline

#2 18/11/17 14:54

Iritscen
Moderator
From: NC, USA
Registered: 22/10/07

Re: AE on Linux. Runs Flawlessly now...

That resembles the log that you'll see if you try to run unpatched Oni on a modern PC.  Are you sure that you ran the Oni.exe in the AE/ folder?  Oni can only run if the Daodan DLL (binkw32.dll) is present next to it, which comes with the AE.

You can also check for a debugger.txt in the folder next to Oni.exe, which may have more useful information than startup.txt.


byproducts are fine, but where's the beef?

Offline

#3 18/11/17 16:31

6u1d0
Member
Registered: 18/11/17

Re: AE on Linux. Runs Flawlessly now...

I was unsure of that.
Ok, I ran the Anniversary-Edition-Setup-v1.3_1.exe and it installed the binkw32.dll in the ONI folder next to Oni.exe (which was updated). I don't find the debugger.txt. Should I pass some option to the oni.exe app for it to generate it ?
I suspect the AE setup didn't correctly work with wine. Is it just replacing the Oni.exe and adding a few dll int the folder or are there other change applied ?

Offline

#4 18/11/17 16:46

Iritscen
Moderator
From: NC, USA
Registered: 22/10/07

Re: AE on Linux. Runs Flawlessly now...

The AE Setup app should be creating a new AE/ folder inside of Oni's folder for everything that it installs, so the path should be C:\Whatever\Oni\AE\ for the new Oni.exe and for binkw32.dll and for everything else new.  The original Oni/ folder should have been left untouched.  Are you saying that you didn't even get a AE/ folder when you ran Setup?


byproducts are fine, but where's the beef?

Offline

#5 19/11/17 2:50

6u1d0
Member
Registered: 18/11/17

Re: AE on Linux. Runs Flawlessly now...

No, the AE folder was created with Oni.exe, bink32.dll and so on. I just thought that some patch should have applied to the original Oni.exe. So it can be related to where I run my wine from. I'll try from the AE folder instead. I've messed up to much on that bottle for now. I'll need to remove it from the cellar and configure a new one from zero, but this is wine/linux matter so here is not the correct place to discuss it.
Thank you for the input, it really help, even though I haven't pulled out the cork yet.
I'll update in case of progress.

Offline

#6 19/11/17 10:10

Iritscen
Moderator
From: NC, USA
Registered: 22/10/07

Re: AE on Linux. Runs Flawlessly now...

No, we deliberately don't touch the original Oni folder, but you're free to copy binkw32.dll to the main Oni folder if you want to run vanilla Oni with only the patch required to allow it to run on modern PCs.  Btw, it's not inappropriate to ask questions about running Oni in Linux, it's something we try to support when we can.


byproducts are fine, but where's the beef?

Offline

#7 24/11/17 16:03

6u1d0
Member
Registered: 18/11/17

Re: AE on Linux. Runs Flawlessly now...

Ok,
As usual, when it doesn't work, try another way. Think Different.
I first tried on my Linux machine, wich is low consumption, it relies on motherboard builtin video card. I tried out on my son linux gaming machine with a nvidia graphic card. So hardware related issue. AE patching works fine. I gave a quick try, but for now, I have no sound. This is probably wine related, so I'll need a little more time to troubleshoot. I'll make a report.

Last edited by 6u1d0 (24/11/17 16:11)

Offline

#8 24/11/17 20:20

Iritscen
Moderator
From: NC, USA
Registered: 22/10/07

Re: AE on Linux. Runs Flawlessly now...

Yes, I've encountered the sound issue too when testing Windows Oni in Wine on a Mac.  Don't think I ever found a solution to it, and, looking around the forum, it seems that we've always had this problem in Wine.  I see some discussion about fixing sound in the comments here: https://appdb.winehq.org/objectManager. … 4&sAllBugs

As far as graphics, I would still expect Oni to run on a machine with integrated graphics, but maybe that's also a Wine interaction issue.


byproducts are fine, but where's the beef?

Offline

#9 27/11/17 5:03

6u1d0
Member
Registered: 18/11/17

Re: AE on Linux. Runs Flawlessly now...

Ok, runs flawlessly now. Just had to do some linux related sound tuning and I am happy to run this games I really enjoyed. No sound issue, no F1 bug so far. I'll post a step by step soon.

Offline

#10 27/11/17 9:39

Iritscen
Moderator
From: NC, USA
Registered: 22/10/07

Re: AE on Linux. Runs Flawlessly now...

Great, it would be nice to know how you fixed those issues.


byproducts are fine, but where's the beef?

Offline

#11 28/11/17 9:19

6u1d0
Member
Registered: 18/11/17

Re: AE on Linux. Runs Flawlessly now...

I successfully installed the Oni along AE ed on linux using wine. This is a step by step, with some comments
[COMMENT]
I first tried out on a LMDE machine wich is my main computer. This machine has only motherboard integrated video support (no videocard), and I really on nouveau driver. I had no success, and I suspect that nouveau is the cause. On a second computer (uBuntu16-64bit) with a Nvidia card and proprietary driver, it works flawlessly.

[/COMMENT]

Requirements
WINE (tested with 2.21)

Depending on your distro, install wine either from your repos or directly from WineHQ. I went for wineHQ to get wine 2.21. Oni is reported to run on Wine 0.9, so you should be fine with the one from your distro's repos. But I'd highly suggest that you add the WineHQ repos to your sources of software. See WineHQ wiki pages
WINETRICKS
I used winetricks script to configure many things. I really recommend you do so, because many steps involve bugs workaround that are well documented, but winetricks provides an easy way to perform them. You should get the most up to date, the one from your distro's repos is likely out of date. You can find a link at WineHQ wiki page

So first check out WineHQ appDB for informations.

If you're not familiar with using Wine and Wine prefixes, I'd suggest you to google some howto's. I like the "complete_guide_using_wine_command_line" at linuxquestions site.
To make it short, you should have a directory (usually refered as a wine prefix) where you want your 'machine'. It is recommended to have a different one for each main app you run with wine.



I create a new wine bottle at

~/.wineCellar/oniBottle

with a 32bit and using winetricks.

export WINEPREFIX=/home/myName/.wineCellar/oniBottle
export WINEARCH=win32
path/to/where/you/stored/winetricks --gui

winetricks put the required files and folder in your

~/.wineCellar/oniBottle

directory. I use the UI to :
'select the default wineprefix'
'install a font'->corefonts (it never hurts)
'install a dll or compoment'-> vcrun2015
                            -> dotnet20 for MS .NET2.0 (probably also works with more recent) wich is required by AEinstaller
Somewhere in the process, windows 2003 flag is set. I chose to correct this though I am not positive it is required.
I still used the winetricks script :
run winecfg.

As I used export to set the variable WINEPREFIX, you must use the same terminal without closing it for all the procedure otherwise wine revert to the default ~/.wine bottle.
Change in 'applications' tab Windows version to XP (or 98 probably works).
In the 'Drives' tab, check out that you have your CD or mounted .iso of Oni set somewhere. It should be at D: but I had no problem at other location. If not add it.
I then run windows explorer.exe to manage the files and run the installation.
As usual, it is better to run any app.exe from where it is located, so I move to

/home/myName/.wineCellar/oniBottle/drive_c/windows
cd /home/guido/.wineCellar/oniBottle/drive_c/windows
wine explorer.exe

It launches a windows file manager window within your WINEPREFIX (and you can acces at many other places). I go to the D: where is Oni and run ONISETUP. Dismiss the options of running GLSETUP.
Then navigate to where you stored the Anniversary-Edition-Setup-v1.3_1.exe and run it. It takes quite a time and sometimes seems to hang up. Be patient.
You're done, run Oni from the Oni.exe that is located within

~/.wineCellar/oniBottle/drive_c/Program Files/Oni/AE

.

Last edited by 6u1d0 (28/11/17 9:23)

Offline

#12 28/11/17 9:26

6u1d0
Member
Registered: 18/11/17

Re: AE on Linux. Runs Flawlessly now...

Sorry I can't put links in the forum but all references are easy to find...

Offline

#13 28/11/17 10:01

Iritscen
Moderator
From: NC, USA
Registered: 22/10/07

Re: AE on Linux. Runs Flawlessly now...

And you didn't have to do anything special to get Oni's sound working in Wine?


byproducts are fine, but where's the beef?

Offline

#14 30/11/17 15:30

6u1d0
Member
Registered: 18/11/17

Re: AE on Linux. Runs Flawlessly now...

I only had to set sound out setting back to its normal (in my case via HDMI) that for some reason was not correctly set. But it doesn't looks like a Wine issue. It may require some tweak on the audio tab of winecfg depending on your hardware.

Offline

Board footer

Powered by FluxBB