My linux script to get rid of silly CDKey problem


(gonzoboi) #1

Hi,

dunno about windows users, but at least with the linux version something is fscked up in PunkBuster and you often cannot play in PB-protected servers and get a ‘Valid CDKey is not reaching GuidAuth server’. There’s a workaround for this, which i’ve automated by modifying the script that runs ET and i’m offering now for whoever might be interested.

So, here is the script text (remove old /usr/local/bin/et and put this one in)

---------- BEGIN SCRIPT ---------------------
#!/bin/sh

Needed to make symlinks/shortcuts work.

the binaries must run with correct working directory

We want to use ALSA for sound, so we must kill stupid

ESD, otherwise it blocks the soundcard device and ET

will refuse to start.

You don’t need this if you aren’t using GNOME.

killall esd 2&>/dev/null

Remove our old CDKey, and leftover failed downloads

rm -f $HOME/.etwolf/etmain/etkey
rm -f $HOME/.etwolf/etmain/*.tmp

Go!

cd “/usr/local/games/enemy-territory/”
./et.x86 +pb_cdkeyreg $*

Restart ESD

esd &

exit $?
-------------- END SCRIPT ----------------------------

Enjoy!
:beer: