###

#### Server version The server version of SGTC 2 uses Linux to be more stable and performant. The installation file can be downloaded in one of the news preceding the release by a couple of days. To run a dedicated Source server on Linux, download hldsupdatetool from the VALVe server. Make a folder named srcds_l, save hldsupdatetool in this folder and then run it. (Have a look at this if you have a Uncompress error.) Commands:
    mkdir srcds_l
    cd srcds_l
    wget http://www.steampowered.com/download/hldsupdatetool.bin
    chmod +x hldsupdatetool.bin
    ./hldsupdatetool.bin
    ./steam
The new version of HLDSUpdateTool is downloaded. Once the download completed, the console shows up. Let's move on to the download of the files themselves. This could take several hours depending on your server connection. Command:
    ./steam -command update -game "Counter-Strike Source" -dir .
Edit (or create) srcds_l/cstrike/cfg/server.cfg as you want. Now we are ready to launch the srcds. Example of launch of srcds with sg2_temple for the map:
    ./srcds_run -console -game stargatetc2 +map sg2_temple -maxplayers 16
and press Enter. Your srcds is now operational. Extra: Run srcds in the background (re-attachable) Here is a script running srcds in the background in a "screen". screen must be installed to do this. Make a file named server.sh and write the following in this file:
    #!/bin/sh
    echo "Starting SGTC2 Server"
    sleep 1
    screen -AmdS sgtc2-server ./srcds_run -console -game stargatetc2 +map sg2_temple +maxplayers 16
Save the file and type chmod to run it:
    chmod +x server.sh
If you want to run your server, just run server.sh . Your srcd server is now run in the background. To open it, type:
    screen -x sgtc2-server
If you want to close it, press ctrl+a+d . It detaches in the screen and keeps on running in the background. Notice that creating a Windows server is possible with the client version of the mod. To do this, click on Create Server in the main menu of the mod. After having launched your game, check in the console that the parameter sv_lan is set to 0 ("sv_lan 0") in order to make your game available outside of your local network. Another possibility is the use of the Source Dedicated Server tool to get more performances. Important note: It is adviced to create servers with a maximum of 16 slots as the maps are not fit for more players.

Forums | Steam | Source | F.A.Q | Horizontal Game Studios | Contact
Copyright © 2007 - 2042 | StargateTC2.
Any reproduction of this site is illegal without the authors consentment.