This process is the same for all source engine games. Login yourusernameIf you are attempting to login from a remote computer, you will need to verify with the SteamGuard code which will be emailed to you. You will only need to do this once as SteamCMD will cache your credentials:/h1Note: It is not required to login with your Steam account, this is just a reference for those who may intend on setting up future servers that do require a login (i.e. Contagion)You may simply login anonymously to download TF2 Server files.Assuming you have already created your server folder (E:TF2DS) send the following. Forceinstalldir E:TF2DSENTERappupdate 232250 validateENTERNote: Use your server directory!Note: is a list of all Steam Application ID's for reference to installing other server games.This may take some time to download all the necessary files, when complete it will resemble:Note: The appid in the above picture is from a HL2:DM server install, your SteamCMD should read 232250, I didn't want to re-download an entire server just for a screenshot.When the download is complete and the command reads Steam enter the quit command. +ip 1.2.3.4 - Bind to a specific IP.
By default, listens on all network interfaces-port 27015 - Bind to a different port (27015 is the default)-strictportbind - If a server is already running on the specified port, stop the server from running+randommap - Use instead of +map to select a map at random+servercfgfile - Which tfcfg file to execute on map change, defaults to server.cfg+mapcyclefile - Which tfcfg file contains this server's mapcycle, defaults to mapcycle.txt. Will also look in tf-replay - Executes replay.cfg and adds an additonal slot for the replay bot, but removes it from the player count. Smsm versionsm pluginssm plugins listsm plugins reload 1sm plugins refreshsm plugins unload funvotessm plugins load funvotessm exts list/gamedataIf an extension or a plugin is using functionality provided by the game engine, e.g. Respawn a player or equipping a player with a weapon, sourcemod needs to know a few 'facts' (to be precise: offsets and signatures) about the function. These can change after valve releases an update. At this point you don't need to know more about this, because sourcemod has an integrated updater, which automatically fetches the new gamedata files for you./logsThe holy grail of debugging your actions. Everything will be logged here.
If someone asks you what the logfiles are saying or whether you get any errors: reproduce your problem, then take a look at the logfiles and just copy&paste the messages. Don't try to be smart here and post what you think the given errors are saying, just post the lines. Or fix the problem yourself if you understand the error./pluginsAll plugins (.smx files) in this directory will be loaded automatically when sourcemod starts. Plugins will also be reloaded on mapchange if their file has changed./plugins/disabledPlugins in this sub-folder won't be loaded.
Move plugins from the parent directory to this one to disable a plugin and vice-a-versa. You will find some official alliedmods plugins in this directory you might want to install (e.g.
A modern Team Fortress 2 performance and customization config - mastercoms/mastercomfig. You can change the name of your custom listen server config using the listenserverc alias. For example., you can look through the config file on GitHub and add your preferences to your custom.cfg. Graphics config. Chris' maxframes // Extracts all the juices to get the best FPS you possibly can. May look terrible, but performs the best. Chris' highframes (default) // Enhances TF2 performance greatly while keeping the look relatively sharp. Chris' dx9frames // Enables DirectX 9 features, while giving good FPS.
Rockthevote) and some others you want to disable by moving them here (e.g. Funvotes)./scriptingYou can find the sourcecode to plugins in this directory, at least the original alliedmods ones.
![Configs Configs](/uploads/1/2/5/3/125381112/362337729.jpg)
You don't need to place any files here to install a plugin, but it is highly recommended to not only install the smx files, but also their corresponding sp file./translationsNot much to say about this folder, it contains translations for many languages. Plugins are encouraged to provide translation files, so you might need to copy some files in here when installing a plugin.
Some basic console commands. You will more than likely use smadmin (SourceMod) for your admin controls:addip Bans a player by IP address for a specified number of minutes. Entering 0 for minutes is a permanent ban.banid Bans a player by SteamID for a specified number of minutes. Entering 0 for minutes is a permanent ban.banid kick Bans a player by SteamID for a specified number of minutes and kicks them from the server. Entering 0 for minutes is a permanent ban.changelevel Changes the server to the specified map. For a full list of maps, type: maps.
in the console.dropclient Kicks a client by their UserID. To find a full list of UserID’s on the server, type: users in the console.heartbeatManually sends a heartbeat to the master server.info Displays user information about the requested client based on SteamID.kick or Kicks a user by Player name, or UserID. To find a full list of UserID’s on the server, type: users in the console.listidLists all SteamIDs in your server ban list.listipLists all IP addresses in your server ban list.maps Lists all maps containing a partial name, for example: maps de would list all maps with de in their name.
// this is your server name as shown in the server listhostname 'BLA BLA BLA BLA'svpassword '// your server password. A pair of double quotes means it is not set and anyone can join// start rcon settingsrconpassword 'BLA BLA BLA BLA'// your rcon password to log into the dev rcon console or HLSW rcon consolesvrconbanpenalty 5// Number of minutes to ban users who fail rcon authenticationsvrconmaxfailures 10// Max number of times a user can fail rcon authentication before being banned// end rcon settings// start cvars for balancing un-even teamsmpautoteambalance 1// 0 is off and 1 is on. If 1 then should be used in conjunction with the following 3 commandsmpautoteambalancedelay 60// Time (in seconds) after the teams become unbalanced to attempt to switch playersmpautoteambalancewarningdelay 30// Time (in seconds) after the teams become unbalanced to print a balance warningmpteamsunbalancelimit 2// Teams are unbalanced when one team has this many more players than the other (0 disables)// end cvars for balancing un-even teams// start cvars for round and game timesmpenableroundwaittime 1// Enable or disable timers to wait between rounds. Lupis Wrote:thanks for the config muppet, just got a questioncan't get the delay at the start of the round right, it has a 30 second delay but as soon as 2 players joins the game starts, any ideas what command i need to set?Also, with the 20 second restart time, I've found people with fast-loading computers are loading first, then capping some points before everyone is finished loading and in-game. 60 seconds (the default) should be left for this.
The other guy that has admin on the server I run used your config and it was screwing people up. Thanks for the effort though. I also prefer a longer stalemate time, since 120 is a pretty small window, someone can hide pretty well for that long.