I'm an IT student, in my last year (at last!!!) My favourite videogames are first person shooters like Battlefield series and good old Quake series. Also strategy games as Starcraft or World in Conflict. I know C++, Java, Python, PHP, basic HTML and CSS.

Report RSS Installing a Battlefield 2142 dedicated server on linux (Part 2)

Posted by on

Now it's time to check the options files:

Server options

In first part, we checked that configuration file was at "mods/bf2142/settings/serversettings.con".
Now we'll take a look at this file:

sv.serverName "Battlefield 2142"

The name that will be displayed at the list of the servers.

sv.password ""

If you wan't to be your server password protected, change this line to your password

sv.internet 0

If this setting is set to 1, the server will be broadcasted to EA server list, so it will appear to other people when selecting the online option at multiplayer.

sv.bandwidthChoke 0

Seems to be a leftover from 1942 and BFV. So forget this line.

sv.serverIP ""

The interface IP address were will listen for game client conections. Only usefull when having more than one netwoek adapter running at the same time. Keep at "" to listen in all interfaces.
Note: Regardless the option you set here, gamespy query port and Rcon will listen in ALL interfaces.

sv.serverPort 17567

The port were the server will listen. Can be changed to any listening port, but it isn't recommended.

sv.welcomeMessage ""

Welcome message. This will be shown to the users when connecting to the server. Use the "|" character to separate lines.

sv.punkBuster 0

PunkBuster is an anticheat tool. Set to 1 to enable it. Make sure it keeps upgraded or your clients will be disconected upon joininjg the server.

sv.allowFreeCam 0

Allows that spectators and not spawned people can fly the camera like a ghost.

sv.allowExternalViews 1

Allows the external camera views (F10, F11 and F12 camera modes)

sv.allowNoseCam 1

Allows the no cocpit camera (F9)

sv.hitIndicator 1

Enables the damage direction arrow.

sv.maxPlayers 64

The maximun players that can be conected to your server at the same time. As more people, more CPU will you need. See the requirements at the first part.

sv.numPlayersNeededToStart 1

The minimun players that will be needed to start the round. Ranked servers override this option.

sv.notEnoughPlayersRestartDelay 15

The time that the round continues to be playerd when there are less people than the minimun.

sv.startDelay 15

Number of seconds to wait when starting a new round.

sv.endDelay 15

Number of seconds needed to wait before server loads a new level.

sv.spawnTime 15

Seconds needed to wait when a soldier dies. Recomended to be equals or higher than the next value.

sv.manDownTime 15

Seconds while a soldier is still revivable.

sv.endOfRoundDelay 3

Seconds before the end of round results is displayed.

sv.ticketRatio 100

The % of tickets of each team

sv.roundsPerMap 3

How many rounds will be played for each map.

sv.timeLimit 0

Time before round ends. Set to 0 to remove time limitation.

sv.scoreLimit 0

Looks that the option doesn't works.

sv.soldierFriendlyFire 100

The % of direct damage that you can do to soldier teammates.

sv.vehicleFriendlyFire 100

The % of direct damage that you can do to vehicle teammates.

sv.soldierSplashFriendlyFire 100

The % of splash damage (explosions) that you can do to soldier teammates.

sv.vehicleSplashFriendlyFire 100

The % of splash damage (explosions) that you can do to vehicle teammates.

sv.tkPunishEnabled 1

Sets if Teamkiller punish is enabled

sv.tkNumPunishToKick 3

Number of teamkills at wich the player will be kicked.

sv.tkPunishByDefault 0

Sets if punish will be automatic or the killed has the option to forgive.

sv.votingEnabled 1

Enables the voting system.

sv.voteTime 90

Time before a votation expires.

sv.minPlayersForVoting 2

The minimun of players needed to make a succesfull vote.

sv.gameSpyPort 29900

The query port. If changed, it's recommended to be at the 29900-29950 range.

sv.allowNATNegotiation 0

Set to 1 if having problems when people tries to join at your server throug a router.

sv.interfaceIP ""

The ip of the remote VOIP server.

sv.autoRecord 0

Enables Battlerecorder.

sv.demoIndexURL http://

The website where the Battlerecorder files can be downloaded.

sv.demoDownloadURL http://

Same as the previous. Recommended to be the same.

sv.autoDemoHook "adminutils/demo/rotate_demo.exe"

The executable called when needed to rotate the scripts. In linux, this can be a bash, python, perl, etc executable.

sv.demoQuality 1

Demo quality. As more quality, more CPU will be needed

sv.adminScript "default"

When using another administation script than default, change this line to enable it.

sv.timeBeforeRestartMap 30

Unknown.

sv.autoBalanceTeam 0

Enables team balance switching players to the least players team.

sv.teamRatioPercent 100

To make assymetrical teams. The % ratio of players at PAC side against players at EU side.

sv.voipEnabled 1

Enables VOIP support on this server.

sv.voipQuality 3

Quality of VOIP records. More quality requires more bandwith.

sv.voipServerRemote 0

Tells if VOIP is done at local or in a remote server.

sv.voipServerRemoteIP ""

If the server is in a remote computer, the ip address of the VOIP server.

sv.voipServerPort 55125

The administration port of the VOIP server.

sv.voipBFClientPort 55123

The port used to clients to conenct to the VOIP server.

sv.voipBFServerPort 55124

The port that the VOIP server uses to resend the communications

sv.voipSharedPassword ""

The VOIP server password

sv.useGlobalRank 1

Shows the rank of the soldiers. Aways enabled at ranked servers.

sv.useGlobalUnlocks 1

Enables the unlocked weapons. Always enabled at ranked servers.

sv.minUnlockLevel 0

Allows the clients to use the tier 1 of unlocks, even if they didn't unlocked the items.

sv.maxUnlockLevel -1

Allows to set the maximun unlock Tier that will be available to players.

sv.sponsorText ""

Sponsor message.

sv.sponsorLogoURL ""

Sponsor logo. Showed at he server list.

sv.communityLogoURL ""

Server logo. Showed when loading level.

sv.customMapURL ""

Don't modify. Looks to be an experimental level autodownloader.

sv.radioSpamInterval 6

Unknown. Looks to be realted to max messages to prevent spam.

sv.radioMaxSpamFlagCount 6

sv.radioBlockedDurationTime 30

Radio spammers blocket time.

sv.maxRank 0

If activated, only player at least rank 11 (Sergeant) will be able to join the server.

sv.botSkill 0.5

Accuracy of boots at cooperative mode.

sv.allowSpectators 0

Allows people to join as spectators.

sv.allowTitanMovement 1

Allows the titan to be moved when shields are up.

Map list

Map rotation is contained in the file "mods/bf2/settings/maplist.con". This file follows the next format:

mapList.append [level name] [gamemode] [map size]

Level names are the folder names of the level. So "Suez Canal" map must be called "Suez_Canal".
Availabel gamemodes are:

  • Conquest - gpm_cq
  • Cooperative - gpm_coop
  • Supply lines - gpm_sl
  • Titan - gpm_ti
  • Conquest & Assault- gpm_ca

Map sizes are available at 16 and 32 players. Some maps have support for 32 players and Titan always must be set to 48 players.
If some entry does not match available gamemode, map size or level name, when server switchs to this level, it will crash.

Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: