BF3 PC Server Administration
BF3 PC Server Administration
Contents
Game server operation ........................................................................................................................... 2 Files which may be accessible to the server admin ................................................................................ 2 Remote administration interface ............................................................................................................ 3 Commands........................................................................................................................................... 3 Events .................................................................................................................................................. 3 GUI tools .............................................................................................................................................. 3 Startup script ....................................................................................................................................... 3 Password ............................................................................................................................................. 3 Accounts, soldier names, and GUIDs....................................................................................................... 3 Player slots .............................................................................................................................................. 4 How many players does a server support? ......................................................................................... 4 Ban system .............................................................................................................................................. 4 banlist.txt format................................................................................................................................. 4 Map handling........................................................................................................................................... 5 Overview.............................................................................................................................................. 5 Controlling map switching ................................................................................................................... 5 Admin/MapList.txt format .................................................................................................................. 5 Idle timeout ............................................................................................................................................. 6 Ranked and unranked servers ................................................................................................................ 7 Reconfiguring the game modes .............................................................................................................. 7 Server settings and Battlelog............................................................................................................... 8 Server region ......................................................................................................................................... 10
In addition, the server admin may have limited access to a few lines in ServerOptions.cfg and the values of some commandline arguments.
Commands
Theres a Python script, called CommandConsole.py, that can be used to connect to the remote administration interface. Once connected, there is an assortment of commands available that can be sent. See "BF3 PC Remote Administration Protocol.pdf" for the full list.
Events
The game server can also send events when specific things happen in-game. For instance, when a player joins or leaves the server, when a round ends, or when anyone says anything through the chat. The Python script called EventConsole.py can be used to listen to these events.
GUI tools
There are several GUI tools constructed, which make it easier to control the game server. Wed recommend that you use them rather than relying on CommandConsole.py / EventConsole.py for everyday use.
Startup script
The game server will process the file named Admin/Startup.txt during bootup. Each line in that file will be executed as a remote administration command.
Password
Anyone who knows the IP address and port of the remote administration interface of a server can connect to it and retrieve some basic information, including a player list. Most commands require the user to specify a password. This password can be changed by issuing the admin.password command. Usually the admin.password command is put into the servers static configuration.
The PB GUID is used with all PB-services, while the EA GUID is used with any non-PB-related functions in the game server. PunkBuster GUIDs are 32-digit hexstrings. EA GUIDs are the prefix EA_ followed by a 32-digit hexstring.
Player slots
How many players does a server support?
This is determined by two factors: The RSP has a max-cap which they can set per server The admin also has a max cap that can be set (vars.maxPlayers)
Ban system
The game server has an internal ban system. This system is independent from PunkBusters banlist. At startup, ban entries are read from the file named banlist.txt. During runtime, the banList.* commands can be used to manipulate the banlist. Players can be banned either on their soldier name, or on their EA GUID. Banning someone on their soldier name is not particularly effective if its a determined griefer then he/she will just create a new soldier and return . Banning someone on their EA GUID is much more effective. To find out someones EA GUID, perform admin.serverInfo while that person is playing on your server. Or inspect the AdminLog. People can be banned either for a few seconds, until the end of the current round, or permanently. The banlist can contain up to 10.000 entries.
banlist.txt format
Each entry in the banlist occupies 5 lines. The first line specifies what the ban is on: guid ban on EA GUID name ban on soldier name ip ban on game client IP address The second line specifies the GUID/name/IP that the ban applies to The third line specifies the duration of the ban:
perm permanent round until the end of the current round seconds until the given time is reached The fourth line contains the timestamp for a seconds-type ban; otherwise it is unused. The fifth line contains the reason for being banned. Max length 80 characters.
Map handling
Overview
BF3 PC game servers are designed to rotate through a sequence of maps. The exact configuration is specified in the servers internal map list. Different maps in the map list can use different game modes. (Note however, that some game modes will not work properly if there are more players on the server than the game mode is designed for.) Upon startup, the Admin/MapList.txt file is read. During runtime, the mapList.* commands can be used to edit the set of maps. When the same map is played for several rounds, all 2-team gamemodes stipulate that the teams will switch sides after a run. This way, a 2-round session of Rush will have players play both attackers and defenders.
Admin/MapList.txt format
Each line in the file has three entries: the map name, the game mode, and the number of rounds to be played on the map until proceeding to the next map in the list. Example MapList.txt: MP_007 RushLarge0 2 MP_018 ConquestSmall0 2 MP_Subway RushLarge0 4
Idle timeout
If a player doesnt give any input within a specific period of time, he/she will be kicked due to idling. You can change the time interval / disable the idle timeout through vars.idleTimeout. In addition, vars.idleBanRounds can be used to apply a ban for a number of rounds for someone that gets kicked due to idle timeout.
Pre-round
Currently, pre-round is active on all game servers. This is a pre-match state where players cannot move. You can change the number of players requires to go between pre-round and in-match using vars.roundStartPlayerCount and vars.roundRestartPlayerCount; however, see the section Server settings and Battlelog to see what implications it has for players using Quickmatch.
vars.soldierHealth sets maximum soldier health, specified in percent (0-100%; 100% = normal). vars.playerRespawnTime controls player respawn delay; specified in percent (100% = normal). vars.playerManDownTime - controls player man-down time; specified in percent (100% = normal). vars.bulletDamage controls bullet damage; specified in percent (0-100%; 100% = normal). vars.onlySquadLeaderSpawn when set, players can only spawn on the squad leader. vars.roundStartPlayerCount when the server is in pre-round, it waits for this many players to be present until it proceeds to start the real round. vars.roundRestartPlayerCount when a round is going, if the number of players drops under this number, the round will be aborted and the server moves back to pre-round.
Setting
Value for Quickmatch vars.autoBalance true vars.roundStartPlayerCount 8 vars.roundRestartPlayerCount 4 vars.friendlyFire false vars.regenerateHealth true vars.killCam true vars.miniMap true vars.hud true vars.crossHair true vars.3dSpotting true
vars.miniMapSpotting vars.nameTag vars.3pCam vars.regenerateHealth vars.vehicleSpawnAllowed vars.vehicleSpawnDelay vars.soldierHealth vars.playerRespawnTime vars.playerManDownTime vars.bulletDamage vars.onlySquadLeaderSpawn
true true true true true 100 100 100 100 100 false
true true true true true 100 100 100 100 false
true true false true false 100 100 100 100 false
Server region
A server is listed under one of the seven continents in the server browser. The default continent is Antarctica. This setting is controlled by your RSP. If you are in Antarctica but want to get moved to the proper continent, contact your RSP.