WarGame: European Escalation Linux (Optimus)

This game was giving me a hell of a time. It would not load at all. I tried the following things, and got the following errors.

./Wargame”  <— (this just using the intel card) .. Game wont load. Just got this error.

./Wargame: error while loading shared libraries: libsteam_api.so: cannot open shared object file: No such file or directory

Then i tried “optirun ./Wargame“… Then got this error.

[S_API FAIL] SteamAPI_Init() failed; Sys_LoadModule failed to load: /home/chuck/.steam/bin32/steamclient.so
[S_API FAIL] SteamAPI_Init() failed; unable to locate a running instance of Steam, or a local steamclient.dll.
sh: xmessage: command not found

(Although this error says steam isn’t running..it is)

Then i tried “primusrun ./Wargame

./Wargame: error while loading shared libraries: libsteam_api.so: cannot open shared object file: No such file or directory

This error saying that “libsteam_api.so” isn’t found….It is in the Wargame directory.

So i figured it out, and created this bash script for primusrun with this command “touch Opti-war“.

then i opened it with gedit “gedit Opti-war“. Then i added this to it

#!/bin/bash
export vblank_mode=0
cd ~/.local/share/Steam/SteamApps/common/Wargame\ European\ Escalation/ && export LD_LIBRARY_PATH=~/.local/share/Steam/ubuntu12_32/:~/.local/share/Steam/SteamApps/common/Wargame\ European\ Escalation/ SteamAppId=58610 && primusrun ./Wargame

Then i saved it, and did “chmod +x Opti-war

then i ran it just fine with “./Opti-war

Game loaded up just fine, and works great 🙂 It took a bit to figure out what was going on.

 

I hope this helps any other Optimus users having the same problem

-Orkultus-