I was able to run Sam 3 on nvidia card before. Now they added CS 1.6 but they changed paths. I modified the original command I was using for sam3 but it doesnt work.
cd ~/.steam/steam/SteamApps/common/Half-Life/ && export LD_LIBRARY_PATH=~/.steam/steam/ubuntu12_32 && primusrun ./hl_linux -game cstrike -console -dev -numericping -noipxIts giving me this error:
Error:libsteam_api.so: cannot open shared object file: No such file or directory Could not load hw.so.
1 Answer
After few hours I found it. You need to add game root path to the LD_LIBRARY_PATH:
cd ~/.steam/steam/SteamApps/common/Half-Life/ &&
export LD_LIBRARY_PATH=~/.steam/steam/ubuntu12_32:~/.steam/steam/SteamApps/common/Half-Life/ &&
primusrun ./hl_linux -game cstrike -console -dev -numericping -noipxAlso you need to be running Steam before you run the game.
Plus if you want to disable vertical sync you need to run
export vblank_mode=0before running the game. So this is full bash script:
#!/bin/bash
export vblank_mode=0
cd ~/.steam/steam/SteamApps/common/Half-Life/ && export LD_LIBRARY_PATH=~/.steam/steam/ubuntu12_32:~/.steam/steam/SteamApps/common/Half-Life/ && primusrun ./hl_linux -game cstrike -nosync 2