ClassiCube / ClassiCube

Custom Minecraft Classic / ClassiCube client written in C from scratch (formerly ClassicalSharp in C#)
Other
1.42k stars 211 forks source link

Steam integration broken #598

Open igor725 opened 5 years ago

igor725 commented 5 years ago

When I try to run game (doesn't matter multiplayer or singleplayer) it crashes with this error:

image

P.S. I am using the latest dev build from "Updates" section. Here is my client.log

andrewphorn commented 5 years ago

You need to launch the steam version from steam or delete the rich presence plugin.

Thanks, Andrew


From: igor725 notifications@github.com Sent: Thursday, August 8, 2019 10:11:19 AM To: UnknownShadow200/ClassiCube ClassiCube@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [UnknownShadow200/ClassiCube] Steam integration broken (#598)

When I try to run game (doesn't matter multiplayer or singleplayer) it crashes with this error:

[image]https://user-images.githubusercontent.com/40758030/62722508-38b65b80-ba17-11e9-91e6-e3e5505676d1.png

P.S. I am using the latest dev build from "Updates" section. Here is my client.loghttps://github.com/UnknownShadow200/ClassiCube/files/3482885/client.log

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/UnknownShadow200/ClassiCube/issues/598?email_source=notifications&email_token=AAOFNWIV3OCWM3C7CISRJNDQDRHTPA5CNFSM4IKMWU3KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HEGXNAA, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AAOFNWPWYBO6N3XTBQEWPR3QDRHTPANCNFSM4IKMWU3A.

igor725 commented 5 years ago

Of course, the game was launched from Steam. It happens after update, because the batch script runs new binary directly. I think this protocol command can solve the problem:

steam://run/<id>//<args>/
    Runs an application. It will be installed if necessary.
    The //<args> is optional, args are passed to the application as launch parameters.
UnknownShadow200 commented 5 years ago

What's the memory map of the modules from client.log? I am curious why it's showing -59340395 as an offset

igor725 commented 5 years ago

-- modules --
D:\Steam\steamapps\common\ClassiCube\ClassiCube.exe = 0000000000400000-0000000000683FFF
C:\Windows\SYSTEM32\ntdll.dll = 00007FFAE6B70000-00007FFAE6D3FFFF
C:\Windows\System32\KERNEL32.DLL = 00007FFAE4980000-00007FFAE4A2BFFF
C:\Windows\System32\KERNELBASE.dll = 00007FFAE3EE0000-00007FFAE40FCFFF
C:\Windows\System32\CRYPT32.dll = 00007FFAE3630000-00007FFAE37F8FFF
C:\Windows\System32\ucrtbase.dll = 00007FFAE3410000-00007FFAE3503FFF
C:\Windows\System32\MSASN1.dll = 00007FFAE3050000-00007FFAE305FFFF
C:\Windows\System32\GDI32.dll = 00007FFAE4100000-00007FFAE4133FFF
C:\Windows\System32\gdi32full.dll = 00007FFAE3100000-00007FFAE3280FFF
C:\Windows\SYSTEM32\d3d9.dll = 00007FFADC4E0000-00007FFADC66CFFF
C:\Windows\System32\USER32.dll = 00007FFAE5070000-00007FFAE51D4FFF
C:\Windows\System32\msvcrt.dll = 00007FFAE4360000-00007FFAE43FDFFF
C:\Windows\System32\win32u.dll = 00007FFAE3610000-00007FFAE362DFFF
C:\Windows\System32\sechost.dll = 00007FFAE51E0000-00007FFAE5238FFF
C:\Windows\System32\RPCRT4.dll = 00007FFAE5410000-00007FFAE5530FFF
C:\Windows\System32\imagehlp.dll = 00007FFAE4340000-00007FFAE435BFFF
C:\Windows\System32\SHELL32.dll = 00007FFAE5540000-00007FFAE6A44FFF
C:\Windows\SYSTEM32\dwmapi.dll = 00007FFADFF10000-00007FFADFF35FFF
C:\Windows\System32\cfgmgr32.dll = 00007FFAE3510000-00007FFAE3551FFF
C:\Windows\System32\combase.dll = 00007FFAE4400000-00007FFAE46C4FFF
C:\Windows\System32\windows.storage.dll = 00007FFAE3800000-00007FFAE3ED9FFF
C:\Windows\System32\bcryptPrimitives.dll = 00007FFAE33A0000-00007FFAE3409FFF
C:\Windows\System32\powrprof.dll = 00007FFAE3000000-00007FFAE304BFFF
C:\Windows\System32\advapi32.dll = 00007FFAE46D0000-00007FFAE4771FFF
C:\Windows\System32\shlwapi.dll = 00007FFAE4140000-00007FFAE4191FFF
C:\Windows\System32\kernel.appcore.dll = 00007FFAE2FF0000-00007FFAE2FFEFFF
C:\Windows\System32\shcore.dll = 00007FFAE3560000-00007FFAE3608FFF
C:\Windows\System32\profapi.dll = 00007FFAE2FD0000-00007FFAE2FE3FFF
C:\Windows\System32\WS2_32.dll = 00007FFAE42D0000-00007FFAE4339FFF
C:\Windows\SYSTEM32\WININET.dll = 00007FFACE2B0000-00007FFACE691FFF
C:\Windows\SYSTEM32\WINMM.dll = 00007FFAE0E70000-00007FFAE0E92FFF
C:\Windows\SYSTEM32\WINMMBASE.dll = 00007FFAE0E00000-00007FFAE0E2AFFF
C:\Windows\System32\IMM32.DLL = 00007FFAE53E0000-00007FFAE540DFFF
C:\Windows\system32\uxtheme.dll = 00007FFAE16E0000-00007FFAE1774FFF
C:\Windows\System32\MSCTF.dll = 00007FFAE4780000-00007FFAE48D9FFF
C:\Windows\System32\OLEAUT32.dll = 00007FFAE4FB0000-00007FFAE506FFFF
C:\Windows\System32\msvcp_win.dll = 00007FFAE3060000-00007FFAE30FBFFF
C:\Windows\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_547eeefb57db4499\nvldumdx.dll = 00007FFADC3F0000-00007FFADC4DDFFF
C:\Windows\SYSTEM32\VERSION.dll = 00007FFADF800000-00007FFADF809FFF
C:\Windows\System32\WINTRUST.DLL = 00007FFAE3290000-00007FFAE32E4FFF
C:\Windows\SYSTEM32\CRYPTSP.dll = 00007FFAE2AA0000-00007FFAE2AB6FFF
C:\Windows\system32\rsaenh.dll = 00007FFAE24B0000-00007FFAE24E2FFF
C:\Windows\SYSTEM32\bcrypt.dll = 00007FFAE2BB0000-00007FFAE2BDAFFF
C:\Windows\SYSTEM32\CRYPTBASE.dll = 00007FFAE2AC0000-00007FFAE2ACAFFF
C:\Windows\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_547eeefb57db4499\nvd3dumx.dll = 00007FFA978C0000-00007FFA98D5AFFF
C:\Windows\system32\nvspcap64.dll = 00007FFAA8000000-00007FFAA82B1FFF
C:\Windows\System32\ole32.dll = 00007FFAE4E60000-00007FFAE4F97FFF
C:\Windows\SYSTEM32\ntmarta.dll = 00007FFAE2270000-00007FFAE22A1FFF
C:\Windows\SYSTEM32\gpapi.dll = 00007FFAE1F50000-00007FFAE1F72FFF
C:\Windows\SYSTEM32\cryptnet.dll = 00007FFADB400000-00007FFADB42EFFF
D:\Steam\steamapps\common\ClassiCube\plugins\SteamRichPresence64.dll = 00007FFADCA10000-00007FFADCA17FFF
D:\Steam\steamapps\common\ClassiCube\steam_api64.dll = 00007FFACF7B0000-00007FFACF7F9FFF
C:\Windows\SYSTEM32\VCRUNTIME140.dll = 00007FFADB840000-00007FFADB854FFF
C:\Windows\SYSTEM32\iertutil.dll = 00007FFAD4B30000-00007FFAD4DE0FFF
C:\Windows\SYSTEM32\SspiCli.dll = 00007FFAE2CD0000-00007FFAE2CFBFFF
C:\Windows\SYSTEM32\ondemandconnroutehelper.dll = 00007FFADCD50000-00007FFADCD64FFF
C:\Windows\SYSTEM32\IPHLPAPI.DLL = 00007FFAE2630000-00007FFAE2667FFF
C:\Windows\SYSTEM32\winhttp.dll = 00007FFAE0260000-00007FFAE032BFFF
C:\Windows\system32\mswsock.dll = 00007FFAE28F0000-00007FFAE294BFFF
C:\Windows\SYSTEM32\WINNSI.DLL = 00007FFADFDE0000-00007FFADFDEAFFF
C:\Windows\System32\NSI.dll = 00007FFAE4FA0000-00007FFAE4FA7FFF
C:\Windows\System32\PSAPI.DLL = 00007FFAE6A50000-00007FFAE6A57FFF
C:\Windows\System32\dbghelp.dll = 00007FFAB77F0000-00007FFAB7981FFF
igor725 commented 5 years ago

The error was fixed after creating a file steam_appid.txt containing unique AppID: 1065710, but Steam Overlay is unavailable for some reason.