Team Fortress 2: Gold Rush

Team Fortress 2: Gold Rush

评价数不足
(Linux) Dedicated Server Guide
由 The Traitor 制作
This guide explains how to set up a TF2GR dedicated server on Linux (including installing SourceMod).
   
奖励
收藏
已收藏
取消收藏
1. Downloading via SteamCMD
I'm assuming you already know how to setup SteamCMD, there are plenty of more detailed guides covering that. For this section, I'll just tell you what you need to download.

In SteamCMD, login as anonymous by entering:
login anonymous
...then download the TF2 dedicated server with:
app_update 232250

Afterwards, download the TF2GR dedicated server with:
app_update 4007540

NOTE! THE 2 APPS NEED TO BE IN THE SAME INSTALL DIRECTORY! It won't work otherwise

If everything went well, you should have "Team Fortress 2 Dedicated Server" and "Team Fortress 2 Gold Rush Dedicated Server" in the install directory (by default <steamcmd>/steamapps/common/)
2. Running the Server
You run the server as you would any other Source dedicated server, by using the srcds_run script in the game's root directory like this:
./srcds_run_64 -game tf_goldrush +map <mapname> <parameters>
If you get an error regarding surfaceproperties, it means you messed up the directory structure and the game couldn't mount TF2 content. Most of the time this occurs because you renamed the TF2 dedicated server. Modify gameinfo.txt to reflect the new name or rename it back to "Team Fortress 2 Dedicated Server".

You need to forward port 27015 (UDP) to make your server publicly accessible, or if you don't want to/can't do that you can make use of Steam Datagram Relay functionality just like you would in a TF2 dedicated server, via the -enablefakeip parameter.
3. Installing SourceMod
SourceMod requires Metamod: Source, which can be downloaded here.[www.sourcemm.net] Extract to the tf_goldrush folder inside the dedicated server app's root.

You can verify whether you installed Metamod correctly by running the server and typing "meta" in the SRCDS console.

You can download SourceMod here.[www.sourcemod.net]
Note that extra gamedata is required for full functionality (such as VGUI menus). This can be downloaded here.[github.com]

Both of these archives should be extracted to the same tf_goldrush folder.

If you did all of this properly, you should have both "metamod" and "sourcemod" folders in tf_goldrush/addons/, and the "sm" command should work in-game.

n.b. The Rock the Vote plugin is disabled by default, and can be enabled by moving mapchooser.smx and rockthevote.smx from tf_goldrush/addons/sourcemod/plugins/disabled to tf_goldrush/addons/sourcemod/plugins .
9 条留言
linguisticspaceship 12 月 3 日 上午 8:30 
OK thanks. Hope there will be better support for it in the future
The Traitor  [作者] 12 月 3 日 上午 8:29 
any plugin that uses <tf2> or <tf2_stocks> as includes generally wont work
The Traitor  [作者] 12 月 3 日 上午 8:29 
those plugins are incompatible with GR, since SourceMod doesn't support TF2 SDK mods that well yet
linguisticspaceship 12 月 3 日 上午 7:53 
Having an issue with sourcemod were a few plugins will say "Required extension "TF2 Tools" file("game.tf2.ext") not running". Not sure how to fit?
Matto Za Kyatto 11 月 29 日 上午 5:45 
Is this also possible with WIndows as well?
corbin 11 月 25 日 下午 2:34 
thanks for the guide
DOES IT HURT? 11 月 24 日 上午 12:51 
"response":{"success":true,"servers":[{"addr":"185.253.101.224:27015","gmsindex":-1,"steamid":"90277427554391068","appid":3826520,"gamedir":"tf_goldrush","region":255,"secure":true,"lan":false,"gameport":27015,"specport":0}]}}

but it still doesn't pop up :csgo_despair:
cs_deathmatch 11 月 23 日 下午 8:52 
assuming you can connect to it manually with the console, try checking this: https://forums.alliedmods.net/showthread.php?t=192367
DOES IT HURT? 11 月 23 日 下午 2:26 
thanks for guide!!!!
but how to get into "Internet" servers list?