https://bugs.winehq.org/show_bug.cgi?id=44613
Bug ID: 44613 Summary: Stronghold 2 Deluxe fails to compile shaders on startup with builtin d2dx9_27.dll Product: Wine Version: 2.21 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-d3dx9 Assignee: wine-bugs@winehq.org Reporter: alexander-winehq@xmine128.tk Distribution: ---
Created attachment 60601 --> https://bugs.winehq.org/attachment.cgi?id=60601 WINE console output
Summary =======
Stronghold 2 works perfectly when placing a native d3dx9_27.dll in
$WINEPREFIX/dosdevices/c:/windows/syswow64
or by running `winetricks d3dx9_27` (the override done by winetricks is not needed).
However when starting the game without the library present it will show many dialog box with shader compilation errors, before crashing (see attachment 2 for a selection).
A few examples:
* Error: Unable to open include file ../PhongShader.fx Warning: Unmatched #if/#endif at end of file Error: Unexpected end of file during preprocessing Error: syntax error * Error: Unable to open include file ../PhongShader.fx * Error: Unable to open include file ../LifeStudioHeadLighting.fx Error: Unable to open include file ../TransformState.fx
Finally the error message “Failed to load shared effects parameter file. Rendering may appear incorrect.” is displayed and the game segfaults.
Meanwhile a bunch of fixmes will be logged to the console (see attachement 1).
Steps to reproduce ==================
Full game ---------
1. Install Stronghold 2 v1.0 German from ISO-image of the retail CDs 2. Download and install the [v1.4 “Deluxe” patch](http://www.4players.de/4players.php/download_info/Downloads/Download/46369/S...) 3. Apply NoCD crack if you don't actually have a CD drive (like me) 4. Start game
The Stronghold 2 Demo is not affected unfortunately.
https://bugs.winehq.org/show_bug.cgi?id=44613
--- Comment #1 from Alexander Schlarb alexander-winehq@xmine128.tk --- Created attachment 60602 --> https://bugs.winehq.org/attachment.cgi?id=60602 Collection of Screenshots with error messages
https://bugs.winehq.org/show_bug.cgi?id=44613
--- Comment #2 from Alexander Schlarb alexander-winehq@xmine128.tk --- The issue is also present with WINE 3.2
https://bugs.winehq.org/show_bug.cgi?id=44613
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Product|Wine |vkd3d Version|2.21 |1.9 Component|d3d-util |hlsl
https://bugs.winehq.org/show_bug.cgi?id=44613
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |NEW
--- Comment #3 from Nikolay Sivov bunglehead@gmail.com --- It's using fx_2_0 compilation. The issue is reproducible with Steam version as well.
https://bugs.winehq.org/show_bug.cgi?id=44613
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Stronghold 2 Deluxe fails |Stronghold 2 Deluxe fails |to compile shaders on |to compile shaders on |startup with builtin |startup with builtin |d2dx9_27.dll |d3x9_27.dll
https://bugs.winehq.org/show_bug.cgi?id=44613
Gijs Vermeulen gijsvrm@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Stronghold 2 Deluxe fails |Stronghold 2 Deluxe fails |to compile shaders on |to compile shaders on |startup with builtin |startup with builtin |d3x9_27.dll |d3dx9_27.dll