Setting up a dedicated server - artvin01/TF2-Zombie-Riot GitHub Wiki
Downloading SteamCMD
(For more information and platforms other than Windows, see the Valve Developer Community wiki)
-
Download SteamCMD (Link also mentioned on the wiki above)
-
Extract to a folder where you would want to host the server
-
Create a script file to run specific commands with SteamCMD, eg. name it
tf2server.txt
@ShutdownOnFailedCommand 1
@NoPromptForPassword 1
force_install_dir ../tfserver
login anonymous
app_update 232250 validate
quit
- Create a shortcut to SteamCMD (right-click
steamcmd.exe
andCreate shortcut
)
- Add
+runscript tf2server.txt
to the target of your shortcut in it's properties to run the script
-
Run this shortcut to start installing files, run this shortcut again when you need to update your server too
-
After downloading the TF2 server, go to the directory where
scrds.exe
is located (usually the folderTeam Fortress 2 Dedicated Server
) -
Create a script file to run specific parameters when starting the server, eg. name it
start.bat
srcds.exe -console -game tf +sv_pure 0 +map zr_evil_pumpkin_farm_v16
- Run your script file to start the server
Installing Metamod:Source
(For more information, see the AlliedModders Wiki
- Download Metamod:Source (As of this writing, version 1.12 or newer, but not 2.0)
- Extract it to your server in your
tf
folder (lines up to be tf/addons/metamod/)
Installing SourceMod
(For more information, see the AlliedModders Wiki
- Download SourceMod (As of this writing, version 1.12 or newer)
- Extract it to your server in your
tf
folder (lines up to be tf/addons/sourcemod/)
Installing Dependencies
.smx files should belong in your addons/sourcemod/plugins folder You can safely ignore .sp and .inc as those are for scripting
- Download TF2Attributes (.smx to plugins, .txt to gamedata)
- Download SM-TFEconData (.smx to plugins, .txt to gamedata)
- Download SM-TFUtils (.smx to plugins, .txt to gamedata)
- Download File Network (.smx to plugins, .txt to gamedata)
- Download Timescale Windows Fix (.smx to plugins, .txt to gamedata)
- Download TF2Items (.dll to extensions, .txt to gamedata)
- Download CollisionHook (.tf2.dll to extensions, .txt to gamedata)
- Download CBaseNPC (.dll to extensions, .txt to gamedata)
- Download SMExt-SourceScramble (.dll to extensions)
- Download Edit Limiter (.txt to gamedata)
Installing TF2: Zombie Riot
-
Download the contents of the GitHub
-
Install them where they would go (models to tf/models, gamedata to tf/addons/sourcemod/gamedata, etc.)
-
Download the Compiled Plugin (the .smx chosen below, if you do not see it, click on "build" first and you may need to log in into GitHub)
- Add entries to your
addons/sourcemod/configs/database.cfg
"zr_local"
{
"driver" "sqlite"
"database" "zr_local_database"
}
"zr_global"
{
"driver" "sqlite"
"database" "zr_global_database"
}
Troubleshooting
Q. I am having trouble installing and using SteamCMD
A. See the Valve Developer Community wiki for insight.
Q. My TF2 server console is blank
A. Use the script file, -console
is needed.
Q. MetaMod:Source is not loading
A. See console for errors, use the command meta
to check if it's running.
Q. SourceMod is not loading
A. See console for errors, use the command sm
to check if it's running.
Q. One of the dependencies is not loading
A. See console for errors, check the plugin on it's error.
Q. Zombie Riot is not loading
A. See console for errors, check the plugin on it's error.
Q. Models and sounds are errors
A. Make sure sv_pure on your server is set to 0, restart your client and server afterwards.
Q. Zombies aren't moving
A. Make sure the map has a nav mesh (.nav for the map), generate one using nav_generate.