https://bugs.winehq.org/show_bug.cgi?id=46464
Bug ID: 46464 Summary: Strong hold 2 needs a native dll fallback mechanism Product: Wine Version: 4.0-rc6 Hardware: x86 OS: Linux Status: NEW Severity: normal Priority: P2 Component: ntdll Assignee: wine-bugs@winehq.org Reporter: zzhang@codeweavers.com Distribution: ---
Created attachment 63272 --> https://bugs.winehq.org/attachment.cgi?id=63272 patch
See https://github.com/ValveSoftware/Proton/issues/506 for details.
Strong hold 2 doesn't run. For it to run, use the following steps:
$ STEAM_COMPAT_DATA_PATH=~/.steam/steam/steamapps/compatdata/40960 ~/.steam/steam/compatibilitytools.d/proton/proton run ~/.steam/steam/steamapps/compatdata/40960/pfx/drive_c/windows/system32/winecfg.exe And set msvcr100.dll and msvcp100.dll to builtin.
And FFLauncher.exe is a .NET application. Since proton doesn't have mono support yet. We need to rename rename Stronghold2.exe to FFLaucher.exe, then it will launch.
$ cd ~/.steam/steam/steamapps/common/Stronghold\ 2/ $ file msvcp100.dll msvcp100.dll: PE32+ executable (DLL) (GUI) x86-64, for MS Windows $ file FFLauncher.exe FFLauncher.exe: PE32 executable (GUI) Intel 80386, for MS Windows
So the reason that the game doesn't run on proton is that it is bundled with dlls of wrong architecture in its application folder. On Windows, there is a dll architecture check[1] when loading dlls, whereas wine currently loads the first found.
[1] Windows Internals # Known Dll Redirection: https://books.google.com/books?id=y83LDgAAQBAJ&pg=PT282&dq=dll+of+wr...
https://bugs.winehq.org/show_bug.cgi?id=46464
Zhiyi Zhang zzhang@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #63272|0 |1 is obsolete| | Assignee|wine-bugs@winehq.org |zzhang@codeweavers.com
--- Comment #1 from Zhiyi Zhang zzhang@codeweavers.com --- Created attachment 63273 --> https://bugs.winehq.org/attachment.cgi?id=63273 patch
https://bugs.winehq.org/show_bug.cgi?id=46464
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |DUPLICATE Status|NEW |RESOLVED
--- Comment #2 from Alexandre Julliard julliard@winehq.org --- Same issue as bug 38021.
*** This bug has been marked as a duplicate of bug 38021 ***
https://bugs.winehq.org/show_bug.cgi?id=46464
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #3 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- Closing Duplicate.
https://bugs.winehq.org/show_bug.cgi?id=46464
Matteo Bruni matteo.mystral@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Strong hold 2 needs a |Stronghold 2 doesn't run, |native dll fallback |bundles DLLs for the wrong |mechanism |architecture