Counter Strike 1.6 Install
From 2047Servers Support
| Line 4: | Line 4: | ||
[[File:cs16.png|thumb|350px]] | [[File:cs16.png|thumb|350px]] | ||
| − | |||
| − | |||
== Making a folder for the server == | == Making a folder for the server == | ||
| Line 60: | Line 58: | ||
== Downloading CS 1.6 == | == Downloading CS 1.6 == | ||
| + | Once you have done the tasks above you can now install a Steam Game Server, To install CS1.6 to the current folder you command | ||
| + | <pre>./steam -command update -game "cstrike" -dir .</pre> | ||
| + | This will check the current folder & download any / all missing files for a Counter Strike 1.6 Server (you can use this command to redownload files that you may have deleted | ||
| + | Counter Strike 1.6 Will now download (Should go very fast with our network speeds on our servers) | ||
== Running CS1.6 via Screen == | == Running CS1.6 via Screen == | ||
| + | When you go to run the game server you want it to run in the background even when you disconnect from Putty, you will find if you just leave it running & close Putty you will kill the server (kills any processes you left running) | ||
| + | The way you keep a process running while you disconnect, is by making a session (using screen) Note to change the "CS_Server" to the servers name or folder name | ||
| + | <pre>screen -S CS_Server</pre> | ||
| + | |||
| + | Now you will notice you are on a new session with a clean view of Putty | ||
| + | |||
| + | Now you can run your CS Server Note to change the values in this line e.g. max players, port etc... | ||
| + | |||
| + | Max Players - up to 32, Port (Best to use unused ones e.g. 25XXX-27XXX | ||
| + | |||
| + | <pre>./hlds_run -game cstrike -autoupdate +maxplayers 12 -port 25100</pre> | ||
| + | |||
| + | If all done right your server should start up fine & the last thing it should say is "VAC Secure" or something very simular, If not try downloading the files again, just incase it missed a few (highly unlikly) | ||
| + | |||
| + | Now you can Disconnect from the session | ||
| + | |||
| + | Using Keys "Ctrl + A + D" at the same time | ||
== Reconnecting to the process / session == | == Reconnecting to the process / session == | ||
| + | |||
| + | Once you have a session running you may want to recconnect to it as the server may crash, or you may want to turn it off or restart etc... | ||
| + | |||
| + | First you will need to find what sessions are running & their process id | ||
| + | |||
| + | <pre>screen -ls</pre> | ||
| + | |||
| + | [[File:puttyscreen.png|350px]] | ||
| + | |||
| + | As you see in my screenshot, i have 2 Screen Sessions running, if i want to connect to 2047Servers session i would use the numbers on the left | ||
| + | |||
| + | <pre>screen -r 7354</pre> | ||
| + | |||
| + | Note Change the ID numbers to what your ones are | ||