lesnolover.blogg.se

How to update gmod server
How to update gmod server










srcds_run +maxplayers 20 +gamemode terrortown +map cs_office -authkey YOURKEYGOESHERE +host_workshop_collection 157384458 Paste the Steam API key and Workshop Collection ID into your startup script. It is located at the end of the url, denoted by the ‘X’s here: This is optional, but below is a sane starting point.Ĭreate a collection of addons you want to install on your server at The default server.cfg file is blank, and any configuration options you want to specify for the server must be added.

how to update gmod server how to update gmod server

To exit vim, press Esc, then type :x and hit Enter. home/steam/Steam/gmod/srcds_run -game garrysmod +maxplayers 20 +map gm_flatgrass Be sure that the binary flags are the same as in your startup script. Open Crontab (this will open in vim): crontab -eĮnter the startup command. This will automatically restart Garry’s Mod when your server reboots. The Garry’s Mod wiki has instructions to use a script to update Gmod rather than manually through SteamCMD. Make the script executable: chmod +x ~/startgmod.sh The srcds_run binary can take many more arguments which you can see at When run, the script will change directories to ~/Steam/gmod and execute Garry’s Mod in a srcds_run -game garrysmod +maxplayers 20 +map gm_flatgrass Once the download is complete, you should see this output: Success! App '4020' fully installed. If the download looks as if it has frozen, be patient. Install Gmod to the Steam user’s home directory: force_install_dir. Or log in with your Steam username: login example_user steamcmd.shįrom the SteamCMD prompt, login anonymously: login anonymous Install an additional 32-bit package: sudo yum install ncurses-libs.i686īe sure you are in the directory ~/Steam, then access the Steam> prompt. sudo firewall-cmd -zone=public -add-port=27000 27030/udp -permanent This inserts a rule for port 10999 after the pre-existing rules for SteamCMD. This command assumes that you have only the firewalld rules in place from the SteamCMD guide. Prerequisites for Garry’s Modįrom the SteamCMD guide, two additional steps are needed specifically for Gmod.Īdd a firewall rule. If you’re not familiar with the sudo command, you can check our

how to update gmod server

Commands that require elevated privileges are prefixed with sudo.

how to update gmod server

This guide is written for a non-root user.












How to update gmod server