shkhln / linuxulator-steam-utils

Steam launcher for FreeBSD
MIT License
125 stars 12 forks source link

Hearts of Iron IV not working #135

Closed nembenike closed 1 month ago

nembenike commented 1 month ago

I added the D_PRELOAD=${LD_PRELOAD}:monofix.so %command% launch options but it doesn't seem to do anything, I get the furthest when running with Proton and these are the logs:


/opt/steam-utils/tools/LSU_Proton_8_chroot/run.rb: Unknown command run
src/clientdll/installscript_posix.cpp (536) : Assertion Failed: Standalone evaluator returned error code for app 394360
src/clientdll/installscript_posix.cpp (536) : Assertion Failed: Standalone evaluator returned error code for app 394360
/bin/sh\0-c\0D_PRELOAD=${LD_PRELOAD}:monofix.so /home/steam/.steam/steam/ubuntu12_32/reaper SteamLaunch AppId=394360 -- /home/steam/.steam/steam/ubuntu12_32/steam-launch-wrapper -- '/opt/steam-utils/tools/LSU_Proton_8_chroot'/run.sh waitforexitandrun  '/home/steam/.steam/steam/steamapps/common/Hearts of Iron IV/hoi4.exe'\0
chdir "/home/steam/.steam/steam/steamapps/common/Hearts of Iron IV"
ERROR: ld.so: object '/home/steam/.steam/steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/home/steam/.steam/steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded: ignored.
steam-launch-wrapper: $XDG_RUNTIME_DIR not set.
ERROR: ld.so: object '/home/steam/.steam/steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded: ignored.
pid 10309 != 10307, skipping destruction (fork without exec?)
lsu-mount-runtime: mount -o nocover -t tmpfs tmpfs /home/steam/.steam/tmp
mount: tmpfs: Device busy
lsu-mount-runtime: mount -o nocover -t tmpfs tmpfs /home/steam/.steam/tmp/SteamLinuxRuntime_sniper
mount: tmpfs: Device busy
lsu-mount-runtime: Assuming /home/steam/.steam/tmp/SteamLinuxRuntime_sniper is already set up
ERROR: ld.so: object '/home/steam/.steam/steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/steam/.steam/steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/steam/.steam/steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/steam/.steam/steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/steam/.steam/steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/steam/.steam/steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/steam/.steam/steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
wineserver: using server-side synchronization.
ERROR: ld.so: object '/home/steam/.steam/steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/steam/.steam/steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/steam/.steam/steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/steam/.steam/steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/steam/.steam/steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/steam/.steam/steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/steam/.steam/steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Setting breakpad minidump AppID = 394360
Steam_SetMinidumpSteamID:  Caching Steam ID:  76561198827213849 [API loaded no]
ERROR: ld.so: object '/home/steam/.steam/steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
X connection to :0 broken (explicit kill or server shutdown).
Game 394360 created interface SteamUser020 / User
Game 394360 created interface SteamUtils009 / Utils
Game 394360 method call count for IClientUtils::RecordSteamInterfaceCreation : 2
Game 394360 method call count for IClientUtils::GetAppID : 3
Game 394360 method call count for IClientUser::GetSteamID : 1
Uploaded AppInterfaceStats to Steam
pid 10329 != 10328, skipping destruction (fork without exec?)```
larshenrikoern commented 1 month ago

Hi. I have the same problem. But Rocky Linux 9 has just been added to the ports for replacing redhat linux 7. The problem with the old redhat was that glibc wat to old. This is solved by Rocky linux. But linuxulator-steam-utils is not using Rocky (yet)

shkhln commented 1 month ago

Is that a 64-bit app? LSU_Proton_8_chroot has quite a few limitations.

nembenike commented 1 month ago

i think so, i was not able to get it working in the other chroots either

nembenike commented 1 month ago

these are my logs with legacy


/bin/sh\0-c\0/home/steam/.steam/steam/ubuntu12_32/reaper SteamLaunch AppId=394360 -- /home/steam/.steam/steam/ubuntu12_32/steam-launch-wrapper -- '/opt/steam-utils/tools/LSU_Scout_chroot'/run.sh waitforexitandrun  '/home/steam/.steam/steam/steamapps/common/Hearts of Iron IV/run_hoi4'\0
chdir "/home/steam/.steam/steam/steamapps/common/Hearts of Iron IV"
ERROR: ld.so: object '/home/steam/.steam/steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/home/steam/.steam/steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded: ignored.
steam-launch-wrapper: $XDG_RUNTIME_DIR not set.
ERROR: ld.so: object '/home/steam/.steam/steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded: ignored.
pid 2357 != 2355, skipping destruction (fork without exec?)
lsu-mount-runtime: mount -o nocover -t tmpfs tmpfs /home/steam/.steam/tmp
mount: tmpfs: Device busy
lsu-mount-runtime: mount -o nocover -t tmpfs tmpfs /home/steam/.steam/tmp/SteamLinuxRuntime_sniper
mount: tmpfs: Device busy
lsu-mount-runtime: Assuming /home/steam/.steam/tmp/SteamLinuxRuntime_sniper is already set up
ERROR: ld.so: object '/home/steam/.steam/steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/steam/.steam/steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/steam/.steam/steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/steam/.steam/steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
/home/steam/.steam/steam/steamapps/common/Hearts of Iron IV/hoi4: error while loading shared libraries: libOpenGL.so.0: cannot open shared object file: No such file or directory
Uploaded AppInterfaceStats to Steam```
shkhln commented 1 month ago

Try the legacy chroot with https://github.com/shkhln/linuxulator-steam-utils/commit/88833512731cb55b7a0583cbb6d63a877d7a3e73.

nembenike commented 1 month ago

thank you, it appears to work now

nembenike commented 1 month ago

okay when i start the game i get tons of flickering making the game unplayable, alt-tabbing results in a black screen too

shkhln commented 1 month ago

I'm not sure if I can do anything about individual game issues.

nembenike commented 1 month ago

i guess the game might just be broken on freebsd, i am unable to test for other GPUs (i dont know if it would make a difference) so this might just be intel specific glitching, either way if it does work on other GPUs, then at least it launches