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)

  1. Download SteamCMD (Link also mentioned on the wiki above)

  2. Extract to a folder where you would want to host the server

  3. 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
  1. Create a shortcut to SteamCMD (right-click steamcmd.exe and Create shortcut)

image

  1. Add +runscript tf2server.txt to the target of your shortcut in it's properties to run the script

image

  1. Run this shortcut to start installing files, run this shortcut again when you need to update your server too

  2. After downloading the TF2 server, go to the directory where scrds.exe is located (usually the folder Team Fortress 2 Dedicated Server)

  3. 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
  1. Run your script file to start the server

Installing Metamod:Source

(For more information, see the AlliedModders Wiki

  1. Download Metamod:Source (As of this writing, version 1.12 or newer, but not 2.0)
  2. 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

  1. Download SourceMod (As of this writing, version 1.12 or newer)
  2. 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

  1. Download TF2Attributes (.smx to plugins, .txt to gamedata)
  2. Download SM-TFEconData (.smx to plugins, .txt to gamedata)
  3. Download SM-TFUtils (.smx to plugins, .txt to gamedata)
  4. Download File Network (.smx to plugins, .txt to gamedata)
  5. Download Timescale Windows Fix (.smx to plugins, .txt to gamedata)
  6. Download TF2Items (.dll to extensions, .txt to gamedata)
  7. Download CollisionHook (.tf2.dll to extensions, .txt to gamedata)
  8. Download CBaseNPC (.dll to extensions, .txt to gamedata)
  9. Download SMExt-SourceScramble (.dll to extensions)
  10. Download Edit Limiter (.txt to gamedata)

Installing TF2: Zombie Riot

  1. Download the contents of the GitHub

  2. Install them where they would go (models to tf/models, gamedata to tf/addons/sourcemod/gamedata, etc.)

  3. 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)

image image

  1. 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.