Hello @q-tan0x, without the workaround, please add PROTON_LOG=1 %command% to the game's launch options and attach the generated $HOME/steam-$APPID.log to this issue report as a file. (Proton logs compress well if needed.)
Thanks for taking a look and for your kind reply.
Thanks, err:d3dcompiler:D3DCompile2 E5020: The 'fx_2_0' target profile is only compatible with the 'fx' target type. in your Proton log points towards https://bugs.winehq.org/show_bug.cgi?id=37676.
Now I understand the (half of the) problem. Two (or more) versions of DLL binaries coexist, and one is causing a problem.
I ran $ diff, one for those modified by winetricks, and the other is created by Proton:
diff -u --recursive compatdata/23300/pfx/drive_c/windows/system32/ compatdata/1295510/pfx/drive_c/windows/system32/
Binary files compatdata/23300/pfx/drive_c/windows/system32/concrt140.dll and compatdata/1295510/pfx/drive_c/windows/system32/concrt140.dll differ
Binary files compatdata/23300/pfx/drive_c/windows/system32/d3dcompiler_33.dll and compatdata/1295510/pfx/drive_c/windows/system32/d3dcompiler_33.dll differ
Binary files compatdata/23300/pfx/drive_c/windows/system32/d3dcompiler_34.dll and compatdata/1295510/pfx/drive_c/windows/system32/d3dcompiler_34.dll differ
...
Similar workaround is valid also at least for "東方聖戦影 ~ Forlorn Souls of Wicked Past" (3138090), according to this protonDB entry. So at least superficially this is not the source code bug of Wine, but the binary repository management failure.
There remains the possibility that both versions of DLLs are actually legit and necessary, depending on compatibility of each game.
I don't know anything about Windows binaries, so I don't think I can help any more, but I'd be glad if there's something I can help with.
I commented at the above WineHQ bugzilla entry before writing this post, but it was superficial and not to the point.
I really appreciate your answers. Best wishes.
This now runs with Proton-10 (beta). Thanks @kisak-valve and @UsernamesAreNotMyThing.
PROTON_LOG=1x1 2025-04concrt140.dllx1 2025-04d3dcompiler_33.dllx1 2025-04d3dcompiler_34.dllx1 2025-04d3dx9_35.dllx1 2025-04
Compatibility Report
System Information
I confirm:
Symptoms
The game crashes in the story mode. As has been repeatededly reported in protonDB, you have to install the dll of d3dx9. The point is you have to replace the one installed by the Steam client by winetricks.
More precisely the crash happens when you try to start the first puzzle in the story mode.
For the dll, I'm not sure of the exact dll file (ProtonDB reports say d3dx9_35.dll, but they're 3 years old.). Anyway I deleted all d3dx9 files from my prefix (...compatdata/23300/.../windows/system32/), and used winetricks to install again. Then it runs without problem.
I'm sorry for not conforming to the precise required format, but hoping to help other players. m(_ _)m
Reproduction