aboutsummaryrefslogtreecommitdiff
path: root/doc/gmodserver.txt
blob: 8d457108d9dc2d399723f4b0ecc799061baf23f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
There's lots of stuff that is modified on this server, I will briefly explain the gist of the changes

My test server, Alec's Otherwise, is running on a Debian Linux server. Instructions for installing gmod dedicated server on linux can be found here:
http://wiki.garrysmod.com/page/Linux_Dedicated_Server_Hosting
There is a saved version of the webpage (saved 1/1/2016) in
wintersurvival2/to-do/notes-resource/Linux Dedicated Server Hosting - Garry's Mod.htm

using the fallowing starting script:
located at /home/steam/server_1/run_server.sh
---------------------------run_server.sh----------------------------------------

#update the server with the code from queue branch
cd garrysmod/gamemodes/wintersurvival2/
sudo git checkout master
sudo git merge queue
cd ../../../

#run the gmod server
./srcds_run -game garrysmod -disableluarefresh +maxplayers 28 +map ws_abandon_night +gamemode wintersurvival2

-----------------------end run_server.sh----------------------------------------

As the script might suggest, gamemodes/wintersurvival2 is a git directory that is symlinked to another user's directory that I use to manage all the git directories.

Additionally, this server will not automatically refresh lua code (doing so breaks the gamemode slightly) so that I can checkout and merge code while the server is running. (this can be reset by remove the -disableluarefresh flag)

as an additional note, I usually run the script from a tmux session, so that I can log in remotely later and still attach to the tmux session