Proton icon indicating copy to clipboard operation
Proton copied to clipboard

DEATH STRANDING (1190460)

Open NTMan opened this issue 6 years ago • 348 comments

Compatibility Report

  • Name of the game with compatibility issues: DEATH STRANDING
  • Steam AppID of the game: 1190460

System Information

  • GPU: Radeon VII
  • Driver/LLVM version: 20.1.99/11.0.0
  • Kernel version: 5.8-rc1
  • Link to full system information report as Gist
  • Proton version: 5.0-10-rc1

I confirm:

  • [x] that I haven't found an existing compatibility report for this game.
  • [x] that I have checked whether there are updates for my system available.

steam-1190460.log

Symptoms

The game crashed with an error message: ERROR: Failed to load api-ms-win-core-systemtopology-l1-1-0.dll.

Screenshot from 2020-07-14 20-39-33

Reproduction

Just launch the game.

NTMan avatar Jul 14 '20 15:07 NTMan

I have the same error with an Nvidia GPU (RTX 2070 Super) and its proprietary driver (440.100) on Debian (kernel version 5.4.0)

julienbenjamin avatar Jul 14 '20 15:07 julienbenjamin

Same here on Arch Linux with kernel 5.7.7 and an Nvidia GTX 760 with driver 450.57.

xythobuz avatar Jul 14 '20 16:07 xythobuz

~~I've drafted this patch: https://source.winehq.org/patches/data/188960 I don't have the game to test, so it might not work.~~

Turns out it was already in wine haha (zebediah figura already added it), I just hadn't updated my source tree.

qsniyg avatar Jul 14 '20 18:07 qsniyg

~I've drafted this patch: https://source.winehq.org/patches/data/188960 I don't have the game to test, so it might not work.~

Turns out it was already in wine haha (zebediah figura already added it), I just hadn't updated my source tree.

does that mean you got it working?

LoreRealm avatar Jul 14 '20 19:07 LoreRealm

@yurgburg No, I have no idea if it works or not with that patch. Just that it turns out that the patch wasn't necessary, as it had already been added a few days prior to wine :) That being said, you'll still need a development build of wine (or a wine with https://source.winehq.org/git/wine.git/commit/37238a74a5fea133b8dbcf55ca62cd0d80dc49f7 patched in) in order for it to work.

qsniyg avatar Jul 14 '20 19:07 qsniyg

@yurgburg No, I have no idea if it works or not with that patch. Just that it turns out that the patch wasn't necessary, as it had already been added a few days prior to wine :) That being said, you'll still need a development build of wine (or a wine with https://source.winehq.org/git/wine.git/commit/37238a74a5fea133b8dbcf55ca62cd0d80dc49f7 patched in) in order for it to work. Oh alright, do you have any idea how I could add that to my wine?

LoreRealm avatar Jul 14 '20 19:07 LoreRealm

@yurgburg You'll need to apply this patch to the wine directory:

Patch
commit 37238a74a5fea133b8dbcf55ca62cd0d80dc49f7
Author: Zebediah Figura <[email protected]>
Date:   Tue Jul 7 10:05:59 2020 -0500

    api-ms-win-core-systemtopology-l1-1-0: New DLL.
    
    Signed-off-by: Zebediah Figura <[email protected]>
    Signed-off-by: Alexandre Julliard <[email protected]>

diff --git a/configure b/configure
index 032f4e3d0f..1eafbace7f 100755
--- a/configure
+++ b/configure
@@ -1030,6 +1030,7 @@ enable_api_ms_win_core_synch_l1_2_1
 enable_api_ms_win_core_sysinfo_l1_1_0
 enable_api_ms_win_core_sysinfo_l1_2_0
 enable_api_ms_win_core_sysinfo_l1_2_1
+enable_api_ms_win_core_systemtopology_l1_1_0
 enable_api_ms_win_core_threadpool_l1_1_0
 enable_api_ms_win_core_threadpool_l1_2_0
 enable_api_ms_win_core_threadpool_legacy_l1_1_0
@@ -20362,6 +20363,7 @@ wine_fn_config_makefile dlls/api-ms-win-core-synch-l1-2-1 enable_api_ms_win_core
 wine_fn_config_makefile dlls/api-ms-win-core-sysinfo-l1-1-0 enable_api_ms_win_core_sysinfo_l1_1_0
 wine_fn_config_makefile dlls/api-ms-win-core-sysinfo-l1-2-0 enable_api_ms_win_core_sysinfo_l1_2_0
 wine_fn_config_makefile dlls/api-ms-win-core-sysinfo-l1-2-1 enable_api_ms_win_core_sysinfo_l1_2_1
+wine_fn_config_makefile dlls/api-ms-win-core-systemtopology-l1-1-0 enable_api_ms_win_core_systemtopology_l1_1_0
 wine_fn_config_makefile dlls/api-ms-win-core-threadpool-l1-1-0 enable_api_ms_win_core_threadpool_l1_1_0
 wine_fn_config_makefile dlls/api-ms-win-core-threadpool-l1-2-0 enable_api_ms_win_core_threadpool_l1_2_0
 wine_fn_config_makefile dlls/api-ms-win-core-threadpool-legacy-l1-1-0 enable_api_ms_win_core_threadpool_legacy_l1_1_0
diff --git a/configure.ac b/configure.ac
index d596422320..4829648c3a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2946,6 +2946,7 @@ WINE_CONFIG_MAKEFILE(dlls/api-ms-win-core-synch-l1-2-1)
 WINE_CONFIG_MAKEFILE(dlls/api-ms-win-core-sysinfo-l1-1-0)
 WINE_CONFIG_MAKEFILE(dlls/api-ms-win-core-sysinfo-l1-2-0)
 WINE_CONFIG_MAKEFILE(dlls/api-ms-win-core-sysinfo-l1-2-1)
+WINE_CONFIG_MAKEFILE(dlls/api-ms-win-core-systemtopology-l1-1-0)
 WINE_CONFIG_MAKEFILE(dlls/api-ms-win-core-threadpool-l1-1-0)
 WINE_CONFIG_MAKEFILE(dlls/api-ms-win-core-threadpool-l1-2-0)
 WINE_CONFIG_MAKEFILE(dlls/api-ms-win-core-threadpool-legacy-l1-1-0)
diff --git a/dlls/api-ms-win-core-systemtopology-l1-1-0/Makefile.in b/dlls/api-ms-win-core-systemtopology-l1-1-0/Makefile.in
new file mode 100644
index 0000000000..beed9fb9c2
--- /dev/null
+++ b/dlls/api-ms-win-core-systemtopology-l1-1-0/Makefile.in
@@ -0,0 +1 @@
+MODULE    = api-ms-win-core-systemtopology-l1-1-0.dll
diff --git a/dlls/api-ms-win-core-systemtopology-l1-1-0/api-ms-win-core-systemtopology-l1-1-0.spec b/dlls/api-ms-win-core-systemtopology-l1-1-0/api-ms-win-core-systemtopology-l1-1-0.spec
new file mode 100644
index 0000000000..b5365eb930
--- /dev/null
+++ b/dlls/api-ms-win-core-systemtopology-l1-1-0/api-ms-win-core-systemtopology-l1-1-0.spec
@@ -0,0 +1,2 @@
+@ stdcall GetNumaHighestNodeNumber(ptr) kernelbase.GetNumaHighestNodeNumber
+@ stdcall GetNumaNodeProcessorMaskEx(long ptr) kernelbase.GetNumaNodeProcessorMaskEx
diff --git a/tools/make_specfiles b/tools/make_specfiles
index 420d850b73..f60fbbf6d2 100755
--- a/tools/make_specfiles
+++ b/tools/make_specfiles
@@ -323,6 +323,7 @@ my @dll_groups =
   "api-ms-win-appmodel-runtime-l1-1-2",
   "api-ms-win-core-path-l1-1-0",
   "api-ms-win-core-quirks-l1-1-0",
+  "api-ms-win-core-systemtopology-l1-1-0",
   "api-ms-win-security-grouppolicy-l1-1-0",
  ],
  [

As to how to build it, I'm not sure, I've never built proton before (only wine), sorry! I think there are probably some guides available for that though :)

qsniyg avatar Jul 14 '20 19:07 qsniyg

@yurgburg You'll need to apply this patch to the wine directory: Patch

As to how to build it, I'm not sure, I've never built proton before (only wine), sorry! I think there are probably some guides available for that though :)

No problem, you've given enough info to figure it out. Cheers!

LoreRealm avatar Jul 14 '20 19:07 LoreRealm

I've tested it with the wine patch suggested by @qsniyg. I now get the error message "Death Stranding requires Windows 10 version 1809 or later".

image

xythobuz avatar Jul 14 '20 21:07 xythobuz

@xythobuz Could you send the proton log? Alternatively, if you don't mind sending a rather large log (though it compresses very well, so please do compress it haha), run it with WINEDEBUG=+all,-heap, to get a full log, which will probably be more helpful in the not unlikely case the proton log doesn't contain enough information :)

qsniyg avatar Jul 14 '20 21:07 qsniyg

6686.111:00c0:00c4:Call ntdll.RtlGetVersion(0051f880) ret=14162ef78
6686.111:00c0:00c4:Ret  ntdll.RtlGetVersion() retval=00000000 ret=14162ef78
6686.111:00c0:00c4:Call user32.MessageBoxA(00000000,143761de8 "Death Stranding requires Windows 10 version 1809 or later.",143761db8 "Death Stranding",00000010) ret=14162efcf

@xythobuz Could you try setting the windows version in winecfg to windows 10? (or protontricks 1190460 win10 I believe)

qsniyg avatar Jul 14 '20 22:07 qsniyg

As far as I can tell (running winecfg with the run script generated in /tmp with PROTON_DUMP_DEBUG_COMMANDS), the windows version is already set to Windows 10.

As you can see in the image, the default is set to Windows 10 and the one listed applications has "Use global settings". But I also get the same error when setting the application to Windows 10 explicitly, too.

image

xythobuz avatar Jul 14 '20 22:07 xythobuz

@xythobuz Could you check if the following patch fixes it?

diff --git a/dlls/ntdll/version.c b/dlls/ntdll/version.c
index 4fef2b5e43..1c8fe83ffb 100644
--- a/dlls/ntdll/version.c
+++ b/dlls/ntdll/version.c
@@ -181,7 +181,7 @@ static const RTL_OSVERSIONINFOEXW VersionData[NB_WINDOWS_VERSIONS] =
     },
     /* WIN10 */
     {
-        sizeof(RTL_OSVERSIONINFOEXW), 10, 0, 0x42EE, VER_PLATFORM_WIN32_NT,
+        sizeof(RTL_OSVERSIONINFOEXW), 10, 0, 0x4A61, VER_PLATFORM_WIN32_NT,
         {0}, 0, 0, VER_SUITE_SINGLEUSERTS, VER_NT_WORKSTATION, 0
     },

Edit: And Zebediah is one step ahead of me again haha: https://source.winehq.org/patches/data/188498 and https://source.winehq.org/patches/data/188499 (I don't think the second patch should be necessary for getting death stranding running, but it shouldn't hurt to apply either).

I'm guessing he was probably given an early build of the game, considering both these patches and the one before were written a week ago at about the same time.

qsniyg avatar Jul 14 '20 22:07 qsniyg

I tried both your patch and also the two patches you've linked. They don't fix the issue, I still get the same message as above. Here are the logs with the two patches from Zebediah.

xythobuz avatar Jul 14 '20 23:07 xythobuz

@xythobuz Huh weird... could you try the following patch? It won't fix it, but it'll at least print what it's sending to the game so we can get a sense of what's not working.

diff --git a/dlls/ntdll/version.c b/dlls/ntdll/version.c
index 1c8fe83ffb..6984cfb74f 100644
--- a/dlls/ntdll/version.c
+++ b/dlls/ntdll/version.c
@@ -585,6 +585,11 @@ NTSTATUS WINAPI RtlGetVersion( RTL_OSVERSIONINFOEXW *info )
     info->dwMinorVersion = current_version->dwMinorVersion;
     info->dwBuildNumber  = current_version->dwBuildNumber;
     info->dwPlatformId   = current_version->dwPlatformId;
+    ERR("dwMajorVersion=%i, dwMinorVersion=%i, dwBuildNumber=%i, dwPlatformId=%i\n",
+        info->dwMajorVersion,
+        info->dwMinorVersion,
+        info->dwBuildNumber,
+        info->dwPlatformId);
     wcscpy( info->szCSDVersion, current_version->szCSDVersion );
     if(info->dwOSVersionInfoSize == sizeof(RTL_OSVERSIONINFOEXW))
     {

qsniyg avatar Jul 14 '20 23:07 qsniyg

Ok, here you go:

xythobuz avatar Jul 15 '20 09:07 xythobuz

Hey there! From your log:

dwBuildNumber=17134

Somehow the value returned still matches the value 0x42EE. Was the change taken into account ? (I believe that version.c patch didn't make it yet in the wine source tree)

a0kami avatar Jul 15 '20 13:07 a0kami

I was worried about that, but I took extra care to do a full rebuild in the vagrant VM (deleting the build folder) and made sure the change is in the source tree of the wine subdirectory inside the VM.

What am I missing? How can I force a rebuild of wine? I was just expecting that deleting the build folder would be enough.

Edit:

See the screenshot below, the changes are there. Also, I can see the log-output from the ERR(...) call added by @qsniyg, and if this has been compiled in then the other change has been compiled in as well, for sure!

47468.831:003c:0040:err:ver:RtlGetVersion dwMajorVersion=10, dwMinorVersion=0, dwBuildNumber=17134, dwPlatformId=2

Screenshot_20200715_155542

xythobuz avatar Jul 15 '20 13:07 xythobuz

@xythobuz Ahhh right, the issue (I believe) is that the registry hasn't been updated yet. Could you run the winecfg command again, set it to windows 7, click apply, then set it to windows 10, then click apply again? In theory this should update the build number (I should probably note that zebediah's second patch is likely required for this to work).

qsniyg avatar Jul 15 '20 14:07 qsniyg