ValveSoftware / Proton

Compatibility tool for Steam Play based on Wine and additional components
Other
24.28k stars 1.06k forks source link

COTTON REBOOT! (1656820) #5448

Open opal1974 opened 2 years ago

opal1974 commented 2 years ago

Compatibility Report

System Information

I confirm:

Symptoms

Game installs, does nothing on load. Crashes to desktop. Does this in both the 6xx release and the experimental builds of proton.

steam-1656820.log

Reproduction

kisak-valve commented 2 years ago

Hello @opal1974, err:module:import_dll Library api-ms-win-shcore-stream-winrt-l1-1-0.dll (which is needed by L"Z:\\home\\user\\.local\\share\\Steam\\steamapps\\common\\Cotton Reboot\\cotton_reboot.exe") not found in your log points towards needing at least https://source.winehq.org/git/wine.git/commit/7f7fdd6c8657ebe4079c9f959bbfba508a2d1680, which is in wine 6.6 and newer.

After that is err:module:import_dll Library vccorlib140.DLL (which is needed by L"Z:\\home\\user\\.local\\share\\Steam\\steamapps\\common\\Cotton Reboot\\cotton_reboot.exe") not found which will need more developer attention.

BigPrimeNumbers commented 2 years ago

Hello @opal1974, err:module:import_dll Library api-ms-win-shcore-stream-winrt-l1-1-0.dll (which is needed by L"Z:\\home\\user\\.local\\share\\Steam\\steamapps\\common\\Cotton Reboot\\cotton_reboot.exe") not found in your log points towards needing at least https://source.winehq.org/git/wine.git/commit/7f7fdd6c8657ebe4079c9f959bbfba508a2d1680, which is in wine 6.6 and newer.

After that is err:module:import_dll Library vccorlib140.DLL (which is needed by L"Z:\\home\\user\\.local\\share\\Steam\\steamapps\\common\\Cotton Reboot\\cotton_reboot.exe") not found which will need more developer attention.

I used Winetricks to add the missing vccorlib140.DLL via installing the VCRUN2019 package, and I now can see the title screen. The game then crashes with the error given in the log (perhaps a stub is needed from Wine?):

seems to be something to do with the error: Unhandled exception: unimplemented function api-ms-win-shcore-stream-winrt-l1-1-0.dllCreateRandomAccessStreamOnFile called in 64-bit code (0x0000000170032048).

lborl commented 1 year ago

Has anyone had any luck with this? When I try with SteamTinkerLaunch to run with VCrun2017 I get a splash screen about how naughty it is download things illegally and then it crashes to desktop. Is Proton triggering some kind of false flag anti-piracy thing?

jesus-ramos commented 1 year ago

The crash is due to a stub for CreateRandomAccessStreamOnFile. Creating a stub that just returns nothing useful just hangs on a black screen at another stub for MFCreateMFByteStreamOnStreamEx.

Graham--M commented 2 months ago

It's kind of a shame that they didn't use SHCreateStreamOnFileEx() and MFCreateMFByteStreamOnStream() to get the MFByteStream since the RandomAccessStream wasn't used for anything else and those functions were actually implemented.

I did get the game working (other than the publisher intro video) by loading my own code in and overwriting the stubbed functions to basically call those functions. Not useful for implementing Proton functionality but it's here if you want to play with it.