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.