https://bugs.winehq.org/show_bug.cgi?id=47728
Bug ID: 47728 Summary: Project Reality BF2 PRBF2.exe crashes on startup Product: Wine Version: 4.15 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-d3dx9 Assignee: wine-bugs@winehq.org Reporter: apq49584@tuofs.com Distribution: ---
Created attachment 65203 --> https://bugs.winehq.org/attachment.cgi?id=65203 backtrace for prbf2.exe
Debian 10 buster with winehq packaged wine-devel and libfaudio from OBS.
Download link: https://www.realitymod.com/downloads
winecfg was used to set a virtual desktop of 1024x768.
(The PRBF2.exe works fine when a native d3dx9_25.dll (sha256:4c54df27ce84d21b2924e64ff79b13e7876ce85d8e0c9c1d0abd8da73888187a) is placed in the game folder. This is just background information and was NOT done for the bug report.)
This is my first bug report here, so if you need anything else, say it and i will provide. thanks
https://bugs.winehq.org/show_bug.cgi?id=47728
--- Comment #1 from SuddenlySoftware apq49584@tuofs.com --- Created attachment 65204 --> https://bugs.winehq.org/attachment.cgi?id=65204 Screenshot of the Error Message
https://bugs.winehq.org/show_bug.cgi?id=47728
--- Comment #2 from SuddenlySoftware apq49584@tuofs.com --- Created attachment 65205 --> https://bugs.winehq.org/attachment.cgi?id=65205 this is the outcome if it works (obtained with native d3dx9_25.dll)
Added for reference for other testers. If all works well you will see a little intro clip and then this screen.
https://bugs.winehq.org/show_bug.cgi?id=47728
SuddenlySoftware apq49584@tuofs.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Distribution|--- |Debian
https://bugs.winehq.org/show_bug.cgi?id=47728
--- Comment #3 from SuddenlySoftware apq49584@tuofs.com --- This bug also affects Battlefield 2 1.5. Battlefield 2 ships with a native d3dx9_25.dll (sha256:4c54df27ce84d21b2924e64ff79b13e7876ce85d8e0c9c1d0abd8da73888187a). When that is removed it crashes in a similar fashion. backtrace attached
https://bugs.winehq.org/show_bug.cgi?id=47728
--- Comment #4 from SuddenlySoftware apq49584@tuofs.com --- Created attachment 65208 --> https://bugs.winehq.org/attachment.cgi?id=65208 backtrace for same bug in Battlefield 2
As stated in comments: Battlefield 2 ships with its own native d3dx9_24.dll and d3dx9_25.dll. When those are removed and wine's own used, it crashes.
https://bugs.winehq.org/show_bug.cgi?id=47728
SuddenlySoftware apq49584@tuofs.com changed:
What |Removed |Added ---------------------------------------------------------------------------- URL| |https://www.realitymod.com/ | |downloads Keywords| |download
https://bugs.winehq.org/show_bug.cgi?id=47728
Ken Sharp imwellcushtymelike@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |minor
--- Comment #5 from Ken Sharp imwellcushtymelike@gmail.com --- The screenshots aren't helpful - you need the console logs.
Are you saying that this actually runs out of the box?
https://bugs.winehq.org/show_bug.cgi?id=47728
--- Comment #6 from SuddenlySoftware apq49584@tuofs.com --- Created attachment 65224 --> https://bugs.winehq.org/attachment.cgi?id=65224 console debug log for PRBF2.exe
Attached is the console log.
I am sorry for causing confusion. Comments 3 and 4 relate to Battlefield 2 which I thought might be useful information, but is probably just noise.
No, Project Reality (which one can get for free to test themselves) does not run of the box.
https://bugs.winehq.org/show_bug.cgi?id=47728
Lorenzo Ferrillo lorenzofer@live.it changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |lorenzofer@live.it
--- Comment #7 from Lorenzo Ferrillo lorenzofer@live.it --- I tried with builtin d3dx9_25 and d3dcompiler_47.dll (wine D3DXCreateEffect forward actual compilation to d3dcompiler D3DCompile function), however even there is failing in a strange way.
https://bugs.winehq.org/show_bug.cgi?id=47728
consolelogger consolelogger@rhyta.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |consolelogger@rhyta.com
--- Comment #8 from consolelogger consolelogger@rhyta.com --- I am comitted to provide all that is needed to allow good work on this.
A known workaround is winetricks d3dx9_25 .
If any logs beyond those already attached above are needed I will get them. Otherwise the status can be changed to NEW as multiple people (https://old.reddit.com/r/ProjectReality/comments/eg3xfu/lets_try_to_get_pr_w...) have tested this.
After that you will hit an additional crash when starting a local game. Known workaround for that is winetricks d3dx9_24 .
To test you either need winetricks dotnet40 to get the launcher to work, or you just start PRBF2.exe manually.
When working on this make sure you install and test without network or decline all offers to update, otherwise the launcher will try to update the game and you will be blocked by unrelated Bug 47480.
https://bugs.winehq.org/show_bug.cgi?id=47728
Gijs Vermeulen gijsvrm@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |DUPLICATE Status|UNCONFIRMED |RESOLVED
--- Comment #9 from Gijs Vermeulen gijsvrm@gmail.com --- With current wine-git and vkd3d-git I get:
0024:err:d3dcompiler:D3DCompile2 Failed to compile shader, vkd3d result -5. 0024:err:d3dcompiler:D3DCompile2 Shader log: 0024:err:d3dcompiler:D3DCompile2 <anonymous>: E5017: Aborting due to not yet implemented feature: Uniform initializer. 0024:err:d3dcompiler:D3DCompile2 <anonymous>:123:30: E5000: syntax error, unexpected KW_SAMPLER_STATE 0024:err:d3dcompiler:D3DCompile2
Which is bug 39652 and bug 42026 respectively.
Marking as dupe of bug 39652.
*** This bug has been marked as a duplicate of bug 39652 ***
https://bugs.winehq.org/show_bug.cgi?id=47728
Gijs Vermeulen gijsvrm@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Product|Wine |vkd3d Summary|Project Reality BF2 |Project Reality BF2 crashes |PRBF2.exe crashes on |on missing 'Uniform |startup |initializer' support Component|d3d-util |hlsl Version|4.15 |1.7
--- Comment #10 from Gijs Vermeulen gijsvrm@gmail.com --- Closing.
https://bugs.winehq.org/show_bug.cgi?id=47728
Gijs Vermeulen gijsvrm@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #11 from Gijs Vermeulen gijsvrm@gmail.com --- Closing.