SRCDS Linux auto-update fix
The Problem
For some reason the Linux version of the dedicated server does not auto-update properly. It will simply fail to find the srcds bin file and have you do it manually for every update which gets very frustrating.
The problem originates from the introduction of a new subdirectory for all “new” source engine games. Luckily, this can be fixed with just two new “cd” lines in the script file!
The Fix
- Find and open the file
srcds_runfor editing (It will be a script file). It can be found in the game directory like/orangeboxor/l4d - search for the line
update(). It can be found around line number 295. - Make it look like this:
update() {
PWD=pwd
cd ..
updatesingle
cd $PWD
}
This should update any “new” srcds server by going back one directory, running srcds, and returning to the previous directory.
Notes
I suggest saving this new copy of srcds_run as something else like “srcds_run_tf2″. This will prevent the file from ever being overwritten by an update and will keep the original file if ever needed again.
Updated: Nov 26th
- Made this how-to more generic for any game like l4d
Recent Comments