FireDaemon Forums
Go Back   FireDaemon Forums > Support > HOWTOs: Application Tutorials > Game Servers

Game Servers HOWTOs and Tutorials regarding integrating FireDaemon with various game servers.


 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  Jordan's time 18th March 2009, 05:47 PM    #1  
Old 18th March 2009, 10:47 PM
Jordan's Avatar
Jordan Jordan is offline
Member
 
Join Date: Jun 2007
Posts: 90
Default Battlefield 2142 Dedicated Server (BF2142 DS)



How To Run Battlefield 2142 (BF2142 DS) as a Windows Service with FireDaemon


Battlefield 2142 is a first person futuristic military action game. Battlefield 2142 cannot be run in Ranked mode if you host it yourself. Only authorized server host companies can offer ranked servers. The dedicated server component can be run as a Windows Service using FireDaemon. FireDaemon will allow you to have the dedicated server start automatically at boot prior to login, allow you to start multiple instances of the dedicated server and so forth. This HOWTO will show you how set it up. You can also use Trinity or PanelDaemon to manage FireDaemon and other Windows services via a web browser.

BF2142 Dedicated Server Setup Under FireDaemon
  1. First download and install the latest Battlefield 2142 Windows Server Setup file. It can be downloaded from here. The download is large (> 100 MB).
  2. Install BF2142 DS into the directory of your choice (typically C:\Program Files\Electronic Arts\Battlefield 2142 Server). Make sure you install PunkBuster if it is a public server.


  3. Install FireDaemon Pro into the directory of your choice (typically C:\Program Files\FireDaemon). FireDaemon can be downloaded from here.
  4. bf2142 uses 2 configuration files to store it’s settings.
  5. Next start the FireDaemon GUI from the desktop shortcut. Click on the "Create a new service definition" button in the toolbar (or type Ctrl+N) and enter the information into the fields as you see below. Obviously adjust paths to suite your installation. You need to edit the parameters in the parameter list to point to the configs you generate with "BF2142ServerLauncher.exe".


The most important field on the tab is the Parameters. The Parameters define the initial setup of your server.

Here’s the full parameter list you should have:
+config "C:\Users\YOURUSERNAME\Documents\Battlefield 2142\ServerConfigs\_serverSettings.con" +maplist "C:\Users\YOURUSERNAME\Documents\Battlefield 2142\ServerConfigs\_mapList.con"
(+config and +maplist go on the same line)
  • "+config” Loads the server config that you generated in "BF2142ServerLauncher.exe". Replace "YOURUSERNAME" with the user you are running the server as.
  • "+maplist” Loads the map config that you generated in "BF2142ServerLauncher.exe". Replace "YOURUSERNAME" with the user you are running the server as.

  • Now click on the Settings tab. If you DON'T want to see your dedicated server running, uncheck the Interact with Desktop check box & select “Hidden” from the “Show Window” dropdown. You must run BF2142 as the user you installed it as. In the Logon Account field type your username (eg. Administrator) and then enter the user's password twice in the Password and Confirm fields.


  • Now click on the Advanced tab. You can change the Process Priority to allocate more CPU time to the dedicated server or specify which CPU or core the dedicated server will run on (in the case of multi-processor, hyperthreaded or multi-core CPUs).


  • Now click on the Dependencies tab. Make sure the service depends on the lanmanworkstation (Workstation) service to ensure the TCP/IP and CIFS stacks are both up prior to starting SRCDS.
  • Now click on the Install button to install and start bf2142!





You can easily generate your own configurations from "BF2142ServerLauncher.exe" in the directory you installed the server to. Do not launch the server with the server launcher though, just use it to generate configs.

Important: If you want your server to be viewed online, you must have the Internet box checked (or sv.internet 1).



When creating configs with the "BF2142ServerLauncher.exe", you need to create a new config to edit settings. Edited configs can be found in the follow directory: "C:\Users\YOURUSERNAME\Documents\Battlefield 2142\ServerConfigs"
(where YOURUSERNAME is the username of the user running the server)

Below is an example ServerSettings.con file:

Code:
sv.serverName "Battlefield 2142 Unranked Server"
sv.password ""
sv.internet 1
sv.bandwidthChoke 0
sv.serverIP ""
sv.serverPort 17567
sv.welcomeMessage ""
sv.punkBuster 0
sv.allowFreeCam 0
sv.allowExternalViews 1
sv.allowNoseCam 1
sv.hitIndicator 1
sv.maxPlayers 64
sv.numPlayersNeededToStart 1
sv.notEnoughPlayersRestartDelay 15
sv.startDelay 15
sv.endDelay 15
sv.spawnTime 15
sv.manDownTime 15
sv.endOfRoundDelay 3
sv.ticketRatio 100
sv.roundsPerMap 3
sv.timeLimit 0
sv.scoreLimit 0
sv.soldierFriendlyFire 100
sv.vehicleFriendlyFire 100
sv.soldierSplashFriendlyFire 100
sv.vehicleSplashFriendlyFire 100
sv.tkPunishEnabled 1
sv.tkNumPunishToKick 3
sv.tkPunishByDefault 0
sv.votingEnabled 1
sv.voteTime 90
sv.minPlayersForVoting 2
sv.gameSpyPort 29900
sv.allowNATNegotiation 0
sv.interfaceIP ""
sv.autoRecord 0
sv.demoIndexURL http://
sv.demoDownloadURL http://
sv.autoDemoHook "adminutils/demo/rotate_demo.exe"
sv.demoQuality 1
sv.adminScript "default"
sv.timeBeforeRestartMap 30
sv.autoBalanceTeam 0
sv.teamRatioPercent 100
sv.voipEnabled 1
sv.voipQuality 3
sv.voipServerRemote 0
sv.voipServerRemoteIP ""
sv.voipServerPort 55125
sv.voipBFClientPort 55123
sv.voipBFServerPort 55124
sv.voipSharedPassword ""
sv.useGlobalRank 1
sv.useGlobalUnlocks 1
sv.minUnlockLevel 0
sv.maxUnlockLevel -1
sv.sponsorText ""
sv.sponsorLogoURL ""
sv.communityLogoURL ""
sv.customMapURL ""
sv.radioSpamInterval 6
sv.radioMaxSpamFlagCount 6
sv.radioBlockedDurationTime 30
sv.maxRank 0
sv.botSkill 0.5
sv.allowSpectators 0
sv.allowTitanMovement 1
Below is an example maplist.con

Code:
MapList.append bridge_at_remagen gpm_sl
MapList.append verdun gpm_cq
MapList.append tunis_harbor gpm_cq
MapList.append suez_canal gpm_cq
MapList.append sidi_power_plant gpm_cq
MapList.append shuhia_taiba gpm_cq
MapList.append minsk gpm_cq
MapList.append fall_of_berlin gpm_cq
MapList.append cerbere_landing gpm_cq
MapList.append camp_gibraltar gpm_cq

Last edited by Jordan; 6th June 2010 at 10:25 PM.
Reply With Quote
 

Bookmarks

Tags
2142, battlefield, bf2142, dedicated, server

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

 
Free 30 Day Trial

Join our Newsletter
Once a month we poke the right people on product releases and promos.



Connect with us



Latest HOWTOs



All times are GMT. The time now is 11:19 PM.


Powered by vBulletin® Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Template-Modifications by TMS
Copyright © 2009 FireDaemon Technologies Limited

[Close]