{"_id":"5a1db098b15d1b001ebc5f06","category":{"_id":"5a1db098b15d1b001ebc5ef4","version":"5a1db098b15d1b001ebc5ef2","project":"54e7fca9e6e77d1900ed11f0","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-04-25T01:54:38.235Z","from_sync":false,"order":1,"slug":"tutorials","title":"Tutorials"},"parentDoc":null,"project":"54e7fca9e6e77d1900ed11f0","user":"54e78c71523b1b2f00e6f321","version":{"_id":"5a1db098b15d1b001ebc5ef2","project":"54e7fca9e6e77d1900ed11f0","__v":1,"createdAt":"2017-11-28T18:53:12.270Z","releaseDate":"2017-11-28T18:53:12.270Z","categories":["5a1db098b15d1b001ebc5ef3","5a1db098b15d1b001ebc5ef4","5a1db098b15d1b001ebc5ef5","5a1db098b15d1b001ebc5ef6"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"","version_clean":"1.2.0","version":"1.2"},"githubsync":"","__v":0,"updates":["59ef8c3833df6e00247e32b2"],"next":{"pages":[],"description":""},"createdAt":"2015-10-20T20:40:03.785Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"settings":"","results":{"codes":[]},"auth":"required","params":[],"url":""},"isReference":false,"order":6,"body":"Setting up your Source Server (such as Team Fortress 2) to auto-update is a simple task within PufferPanel.\n\nThe first step is to add some additional startup parameters for the server, shown below (replacing SERVER with the UUID for your server). To do so, edit the [Server].json File and add the line to the arguments section. Verify that the \"-norestart\" argument is the last argument, otherwise the Server keeps restarting when pressing \"Stop\" in the PufferPanel.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"-autoupdate -steam_dir steamcmd -steamcmd_script /var/lib/pufferd/servers/[SERVER]/steamcmd/autoupdate.txt\",\n      \"language\": \"text\"\n    }\n  ]\n}\n[/block]\nIn the `/var/lib/pufferd/servers/[SERVER]/steamcmd/autoupdate.txt` file we need to add the following code, replacing `<APP_ID>` with the application ID for the game.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"login anonymous\\nforce_install_dir ..\\napp_update <APP_ID>\\nquit\",\n      \"language\": \"text\",\n      \"name\": \"\"\n    }\n  ]\n}\n[/block]\nAfter this, simply restart your server and it should begin checking for updates whenever you start the server.\n[block:callout]\n{\n  \"type\": \"warning\",\n  \"body\": \"Some games may require additional parameters in the `autoupdate.txt` file.\"\n}\n[/block]","excerpt":"","slug":"autoupdating-source-dedicated-server-game","type":"basic","title":"Autoupdating Source Dedicated Servers"}

Autoupdating Source Dedicated Servers


Setting up your Source Server (such as Team Fortress 2) to auto-update is a simple task within PufferPanel. The first step is to add some additional startup parameters for the server, shown below (replacing SERVER with the UUID for your server). To do so, edit the [Server].json File and add the line to the arguments section. Verify that the "-norestart" argument is the last argument, otherwise the Server keeps restarting when pressing "Stop" in the PufferPanel. [block:code] { "codes": [ { "code": "-autoupdate -steam_dir steamcmd -steamcmd_script /var/lib/pufferd/servers/[SERVER]/steamcmd/autoupdate.txt", "language": "text" } ] } [/block] In the `/var/lib/pufferd/servers/[SERVER]/steamcmd/autoupdate.txt` file we need to add the following code, replacing `<APP_ID>` with the application ID for the game. [block:code] { "codes": [ { "code": "login anonymous\nforce_install_dir ..\napp_update <APP_ID>\nquit", "language": "text", "name": "" } ] } [/block] After this, simply restart your server and it should begin checking for updates whenever you start the server. [block:callout] { "type": "warning", "body": "Some games may require additional parameters in the `autoupdate.txt` file." } [/block]