libTAS icon indicating copy to clipboard operation
libTAS copied to clipboard

Half life doesn't load?

Open InfamousKnight opened this issue 6 years ago • 9 comments

So I tried running half life on latest commit as of writing this, followed the steps laid out on the forum, ran /home/sean/.steam/steam/steamapps/common/Half-Life/hl_linux. There appears to be a shell script, but looking at it, just leads to the root directory of the file.

The error message I got was:

[sean@sean-pc ~]$ /home/sean/Desktop/libTAS-master/src/program/libTAS Interim commit built on 2019-08-10 qt5ct: using qt5ct plugin qt5ct: D-Bus global menu: no Attempt 1: Connected. Error:libsteam_api.so: cannot open shared object file: No such file or directory Could not load hw.so. Please try again at a later time.

I would imagine I'm doing something wrong here as I never ran steam games.

InfamousKnight avatar Aug 11 '19 00:08 InfamousKnight

You need to set the library path in Executable options to the game directory where libsteam_api.so should be present. Then, it will probably complain about other libraries missing, you need to move them from the steam runtime directory (inside .local/share/Steam/ubuntu12_32/steam-runtime/i386 for me) into the game folder.

clementgallet avatar Aug 13 '19 07:08 clementgallet

It complained about libopenal.so.1 and I copied the file to the half life directory and ran it and still did the same thing. The libopenal.so.1 seems to have a broken link file type for some reason. I also made made it so half life runs offline by enabling beta on it.

Do I actually move it, or did you misspeak on that?

On Tue, Aug 13, 2019, 3:00 AM Clément Gallet [email protected] wrote:

You need to set the library path in Executable options to the game directory where libsteam_api.so should be present. Then, it will probably complain about other libraries missing, you need to move them from the steam runtime directory (inside .local/share/Steam/ubuntu12_32/steam-runtime/i386 for me) into the game folder.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/clementgallet/libTAS/issues/267?email_source=notifications&email_token=AAT4W4NL5Y5VGMFFI6U2U6LQEJLX3A5CNFSM4IK2UNAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4EXQNA#issuecomment-520714292, or mute the thread https://github.com/notifications/unsubscribe-auth/AAT4W4LEZG5IMZFOYHLATHDQEJLX3ANCNFSM4IK2UNAA .

InfamousKnight avatar Aug 13 '19 12:08 InfamousKnight

Well, I meant "copy", but it doesn't matter. libopenal.so.1 is a link to libopenal.so.1.16.0, so you need to copy both files.

clementgallet avatar Aug 13 '19 14:08 clementgallet

And now it says Error: libopenal.so.1: wrong ELF class: ELFCLASS64

I did look in the 64 bit folder, but libopenal wasnt there. Unless I made a typo.

On Tue, Aug 13, 2019, 10:03 AM Clément Gallet [email protected] wrote:

Well, I meant "copy", but it doesn't matter. libopenal.so.1 is a link to libopenal.so.1.16.0, so you need to copy both files.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/clementgallet/libTAS/issues/267?email_source=notifications&email_token=AAT4W4JKHNGUPADUL56FNQLQEK5JLA5CNFSM4IK2UNAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4FYFWI#issuecomment-520848089, or mute the thread https://github.com/notifications/unsubscribe-auth/AAT4W4O3TUJIUKNP3ZTYAGLQEK5JLANCNFSM4IK2UNAA .

InfamousKnight avatar Aug 13 '19 15:08 InfamousKnight

It says that libopenal is of arch 64-bit, and it should be 32-bit like the game. Did you copy this file from i386 steam runtime? You can check the arch of this file using the command file libopenal.so.1.16.0

clementgallet avatar Aug 13 '19 16:08 clementgallet

I went under ubuntu_12_32 folder and did a search for libopenal and grabbed the 2 files that I saw.

Im not sure though. Ill have to check tomorrow.

InfamousKnight avatar Aug 13 '19 17:08 InfamousKnight

Done a little this morning, and it kept complaining different files everytime I got a new one. So I copied all the .so files in the directory I was getting them from and now it fails to connect. Ill have to restart tomorrow when I get better internet. Right now Im using 3g

On Tue, Aug 13, 2019, 12:43 PM Clément Gallet [email protected] wrote:

It says that libopenal is of arch 64-bit, and it should be 32-bit like the game. Did you copy this file from i386 steam runtime? You can check the arch of this file using the command file libopenal.so.1.16.0

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/clementgallet/libTAS/issues/267?email_source=notifications&email_token=AAT4W4KYFIF4SHYZGSJEAG3QELQDTA5CNFSM4IK2UNAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4GIDLQ#issuecomment-520913326, or mute the thread https://github.com/notifications/unsubscribe-auth/AAT4W4M5EN6TPZTT2VEQVY3QELQDTANCNFSM4IK2UNAA .

InfamousKnight avatar Aug 14 '19 13:08 InfamousKnight

How to run HL1 in libTAS:

  1. Run libTAS with ~/.steam/bin/steam-runtime/run.sh path/to/libTAS
  2. Select the hl_linux executable
  3. Runtime → Force locale → Native
  4. Runtime → Time tracking → clock_gettime()
  5. Runtime → Wait timeout → Infinite waits
  6. Uncheck Runtime → Prevent writing to disk
  7. Check Runtime → Virtual Steam client

YaLTeR avatar May 10 '20 13:05 YaLTeR

You don't need items 3 and 6 anymore.

clementgallet avatar May 11 '20 09:05 clementgallet