https://bugs.winehq.org/show_bug.cgi?id=57571
Rencer rencer@euromail.hu changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|unspecified |9.22 Severity|normal |major
--- Comment #7 from Rencer rencer@euromail.hu --- As joaopa suggested, now I tried to make the game work without winetricks or dll overrides. As I said in the reply, currently I have to rely on Wine version 9.22. Becaus of this I changed the version from 'Unknown' to '9.22' and focus on that.
Made fresh prefix (no winetricks or anything else) (Wine mono is installed during wineboot.):
env WINEPREFIX=~/.wineZAFE1 wineboot
Than I run this and checked that the sound is working, clicking on the button in the 'Audio' tab. Everything is fine: env WINEPREFIX=~/.wineZAFE1 winecfg
Than during the game installation for a second a DirectX Jun 2010 SDK install window pops up.
(This is built in the GOG installer along with dotnet 3.5, and VC++ 2008)!!!
This is the only thing that you can see in the GUI; they runs silently, so I'm not sure what others are installed. Or not installed. But in the background, while siletly installing DirectX, in the terminal these lines are writen out:
regsvr32: Successfully registered DLL 'C:\windows\system32\xactengine2_0.dll' regsvr32: Successfully registered DLL 'C:\windows\system32\xactengine2_1.dll' regsvr32: Successfully registered DLL 'C:\windows\system32\xactengine2_2.dll' regsvr32: Successfully registered DLL 'C:\windows\system32\xactengine2_3.dll' regsvr32: Successfully registered DLL 'C:\windows\system32\xactengine2_4.dll' regsvr32: Successfully registered DLL 'C:\windows\system32\xactengine2_5.dll' regsvr32: Successfully registered DLL 'C:\windows\system32\xactengine2_6.dll' regsvr32: Successfully registered DLL 'C:\windows\system32\xactengine2_7.dll' regsvr32: Successfully registered DLL 'C:\windows\system32\xactengine2_8.dll' regsvr32: Successfully registered DLL 'C:\windows\system32\xactengine2_9.dll' regsvr32: Successfully registered DLL 'C:\windows\system32\xactengine2_10.dll' regsvr32: Successfully registered DLL 'C:\windows\system32\xactengine3_0.dll' regsvr32: Successfully registered DLL 'C:\windows\system32\XAudio2_0.dll' regsvr32: Successfully registered DLL 'C:\windows\system32\xactengine3_1.dll' regsvr32: Successfully registered DLL 'C:\windows\system32\XAudio2_1.dll' regsvr32: Successfully registered DLL 'C:\windows\system32\xactengine3_2.dll' regsvr32: Successfully registered DLL 'C:\windows\system32\XAudio2_2.dll' regsvr32: Successfully registered DLL 'C:\windows\system32\xactengine3_3.dll' regsvr32: Successfully registered DLL 'C:\windows\system32\XAudio2_3.dll' regsvr32: Successfully registered DLL 'C:\windows\system32\xactengine3_4.dll' regsvr32: Successfully registered DLL 'C:\windows\system32\XAudio2_4.dll' regsvr32: Successfully registered DLL 'C:\windows\system32\xactengine3_5.dll' regsvr32: Successfully registered DLL 'C:\windows\system32\XAudio2_5.dll' regsvr32: Successfully registered DLL 'C:\windows\system32\xactengine3_6.dll' regsvr32: Successfully registered DLL 'C:\windows\system32\XAudio2_6.dll' regsvr32: Successfully registered DLL 'C:\windows\system32\xactengine3_7.dll' regsvr32: Successfully registered DLL 'C:\windows\system32\XAudio2_7.dll'
Then i tried to run the game: env WINEPREFIX=~/.wineZAFE1 wine ~.wineZAFE1/drive_c/GOGGames/ZafehouseDiaries/ZafehouseDiaries.exe
The game starts, I can see the texts written out in the bottom right corner. But when it supposed to draw the logo-animations and the menu; the screen is bugged as before. And now there is no sound! So it just getting worst... It is clear that in my Manjaro system I must use dll overrides.
So I made all those overrides that was written out in the terminal, using winecfg. And than the sound started working! I also boiled down exactly which one of those dll need for the sound. The only one dll override that is responsible for the sound in this case is the 'XAudio2_7.dll'. But still no graphics.
It is clear now that the game doesn't works without manual dll overrides, just-out-of-the-box. Without dll override there is also no sound. Maybe the graphics can fixed too, but I really don't know what I sound try to make it work.
I must rely on whatever Manjaro uses at any given time; I can't change graphic drivers, or something in the kernel that related to graphics. There is no option to downgrade any of these. It is now using, for graphics, for music and almost anything else a completely different thing than it was used, when the game worked last time. Not to mention that the very core of Manjaro changed so drastically over years, that it is no longer compatible even with itself from past times. And on top of that Manjaro, even that it is supposed to be an always-so-frikin-fresh-rolling-release, still lags behind even years in some cases. Like the default wine is 9.22, winetricks in Manjaro is from 2024 january, etc.
I open for suggestions that I can try out, to see if it can fix the graphics.
****** PS1: You can peek into any GOG game installer using the 'innoextract' package with this command:
innoextract --progress --color --gog --output-dir ./UNPACKEDSTUFF YOURGOGGAMESINSTALLER.EXE
In this example, this will extract everything inside the ./UNPACKEDSTUFF folder.
You can find the games itself in the 'app' folder. It is faster extracting with innoextract than actually going through the whole installation. This way you can skip installing the redistributables that are built in the installer and can't skipped because they runs silently.
Sometimes you can actually even run the game from this folder. But most of the times they will not work, because most games write stuff inside the registry, and without proper installation that won't happen. I tried with this game, it isn't work. Zafehouse writes many things inside the registry; in the 'user.reg' file that you can find in the root folder of the wineprefix.
There will be other folders that are extracted. In the 'tmp' folder you find every junk that the installer using (pictures, icons, fonts, etc) Also in this 'tmp' folder you can find all the redistributables that are shipped with the GOG installer. In this case, Zafehouse GOG installer contains: 'directx_Jun2010_redist.exe', 'dotNetFx35setup.exe', 'vcredist_x86_2008.exe' and 'vcredist_x64_2008.exe'
****** PS2: Austin English said in his post that: "...directx9 generally caused more problems than it solved..."
If I quickly managed to cancel the installation of DirectX during the installation the game will not run! It crashes immediately with "Unhandled exeption occured in your application...." error. So, in our case, and in countless many more that I experienced, installing DirectX actually helps. Without installing DirectX + making the overrides manually, the game won't even start and there is no music.