View RSS Feed

FlintLock

Homefront Dedicated server setup

Rate this Entry
   
Ffound this on the web, a nice and tidy setup of a Homfront server.

================================================== ================================================== ==========================
Server names are clamped to 23 characters (max “W” character length in the browser), the only character to avoid in server names is the double quote.
Also see Admin Commands

Contents

1 PC Dedicated Server Tool
2 Configuring a Server
3 Command Line Parameters
4 DedicatedPlaylist Config
5 Known Issues (/wish list)

PC Dedicated Server Tool

The PC Dedicated Server is a Windows Only executable and can be downloaded via Steam Tools and/or hldsupdatetool once it is made publicly available. Once installed it does NOT require Steam to be running. The dedicated server tool provides functionality for setting up the dedicated server, launching the dedicated server, RCON'ing to the dedicated server to manage it at runtime. Some of it's RCON features include:

Autobalancing via various metrics
Player kicking/killing/banning/unbanning
Setting a player to spectator mode
Player team switching
Map transitioning
Console commands

The data set up by the dedicated server tool for the dedicated server to use consists of the command line and GCGame\Config\DedicatedProfile_PROFILENAME\Dedicat edPlaylist

Example command line:
HFDedicated.exe SERVER ?maxplayers=32 -queryport=27015 -authport=8766 -rconport1=27010 -rconport2=27011 -configsubdir=DedicatedProfile_ASD -nohomedir -multihome=127.0.0.1
The configsubdir parameter indicates that the dedicated server should load the remainder of the data it requires from the directory
GCGame\Config\DedicatedProfile_ASD
Example Commandline Package

Command line usage:
The best way to get up and running quickly is to configure your dedicated server using the dedicated server tool, then copy and paste the command line that it logs to start up hfdedicated.exe to a batch file or management tool. If not specified on the command line, the dedicated server will set the following Ports -RCONPort1=13503 -RCONPort2=13504 -QueryPort=27015 -AuthPort=8766.

Multihoming: If you would like to assign a specific IP address to your server, simply add this to the end of your startup line. -multihome=xxx.xxx.xxx.xxx

Launching via the Dedicated Server Tool:
Locate DedicatedServer.exe inside the Binaries Folder and launch. Note it has three tabs, Setup Details, Maplist and Main. Start a new profile, edit settings, passwords and maplist to your liking and save the profile. Now click Start and your server process will launch. At this point the Server Tool Console will also open, displaying server status messages and also the startup line that was passed to the server. You can open and close this console from the Dedicated Server Tool Main Tab. The Dedicated Server Tool can also connect remotely to your server, as long as you have specified the correct IP and password.

Configsubdir files:

DefaultEngine.ini:
Default engine settings, should only ever be edited by admins (you shouldn’t really need to edit this at all).
DefaultInput.ini:
Vestigial ini, doesn’t apply to the dedicated server (we’ll be cleaning this up soon)
DedicatedPlaylist:
This contains the server settings read by the dedicated server tool (if one is using the dedicated server tool), as well as the server settings used by the game when it is run (map rotation, game modes, score limits, etc). This is a file that one should provide customers renting the server access to.

Please note:

We do not provide any NAT punching on the dedicated server side, so NAT table setup may be necessary in certain situations.


Screenshots

Attachment 52Attachment 53Attachment 54Attachment 55Attachment 56Attachment 57Attachment 58

Note: Steam is NOT required to be running to use the Dedicated Server. In the Server Console you will see a message about Failed to Load SteamServiceStart. That is quite normal and is a result of the server being able to run independently of Steam.
Configuring a Server

There are two places that the server gets its configuration from:

The command line
The [CustomPlaylist] and [MotD] section of the DedicatedPlaylist file

Parameters that must be passed on the command line are things that server providers are able to lock admins out of using. Everything an admin would want to configure is inside of DedicatedPlaylist.
Command Line Parameters

A typical command line (you can generate one yourself by checking the dedicated server tool's log) currently looks something like

SERVER ?lan=true?maxplayers=20 -queryport=27015 -authport=8770 -rconport1=10468 -rconport2=10469 -configsubdir=DedicatedProfile_TestServer

?lan=<bool>
true for a LAN, false for Internet
?maxplayers=<amt>
This caps the maximum players allowed. The admin can set max players to a value greater than <amt>, but it will get clamped to <amt> when the server launches
-queryport=<port>
This is the Steam query port, and it is a little specific. For LAN servers, it must be in the range 27015-27020, and for Internet servers it must be greater than or equal to 27015
-authport=<port>
This is the Steam authorization port used to authenticate Steam accounts.
-rconport1=<port> -rconport2=<port>
The RCON ports for remote admin connections. See the Known Issues section for why there are two.
-configsubdir=<PathToServerConfig>
Path to the config subdirectory for this server. The root for this directory is GCGame\Config, so a typical directory created by the dedicated server tool is Homefront\GCGame\Config\DedicatedProfile_<configna me>

Note: The starting map for a server is determined by the maplist in DedicatedPlaylist.
DedicatedPlaylist Config

DedicatedPlaylist needs to be exposed to admins for all typical server configuration tasks. The following are the sections of interest in this file commented with what they do.
Code:
;; configsubdir\DedicatedPlaylist

[MOTD]
;; Displayed on the left side of the screen when a player joins the server
Message=Welcome to my server.

;; ....

[CustomPlaylist]
;; The following three items ARE REQUIRED, but cannot be changed.
PlaylistId=1
bRandomRotation=false
iMinPlayers=0


;; Name and passwords
ServerName=TestServer
AdminPassword=1234ismyluggagecombo
GamePassword=onlyfriends_can_login

;; When enabled, nobody can purchase vehicles
bNoVehicles=False

;; When enabled, in-game demos are recorded
bDemoRec=False

;; Turn on to disallow any VAC banned players from joining
bVAC=True

;; FF True = Team Damage ON, False = Team Damage OFF
bFriendlyFire=True

;; Time limit in minutes
iTimeLimit=10

;; Ground control (GC) score limit
iFLScoreLimit=350

;; TDM score limit
iTDMScoreLimit=1000

;; Ground control battle commander (GCBC) score limit
iFL_BCScoreLimit=350

;; TDM battle commander (TDMBC) score limit
iTDM_BCScoreLimit=1000

;; List of maps in the queue followed by their game mode
;; FL == GC
Map=fl-farm?GameMode=FL

;; TDM == TDM
Map=fl-harbor?GameMode=TDM

;; FL,BC == GCBC
Map=fl-borderlands?GameMode=FL,BC

;; TDM,BC == TDMBC
Map=fl-harbor?GameMode=TDM,BC

;; ... The map list continues on for as many maps as the admin would like to queue
Known Issues (/wish list)

Having two TCP RCON ports is less desirable than a single multi-user UDP port. This is simply due to the existing design and time constraints of switching it.
[Server] section at the bottom of DedicatedPlaylist repeats a lot of data from the [CustomPlaylist] section and is only used for the dedicated server tool. Hopefully at some point this will be moved to a separate file.
It would be nice to remove PlaylistId, random map rotation and minplayers from DedicatedPlaylist, but for the time being they are required although they cannot be changed.

source

Submit "Homefront Dedicated server setup" to Digg Submit "Homefront Dedicated server setup" to del.icio.us Submit "Homefront Dedicated server setup" to StumbleUpon Submit "Homefront Dedicated server setup" to Google Submit "Homefront Dedicated server setup" to Twitter

Categories
Uncategorized

Comments