Bad Company 2 - Admin Resources

General Support & Discussion related to the Battlefield Series including Hardline, BF4, BF3 BF2142 Ranked & Unranked, BF2 Ranked & unranked, BF1942 & BF:Vietnam.
Post Reply
Desy10140
No Longer a Newb
Posts: 20
Joined: Tue Mar 02, 2010 12:38 am

Bad Company 2 - Admin Resources

Post by Desy10140 » Tue Mar 02, 2010 1:42 am

Rcon Apps:

BFBC2 Admin
http://www.bfbc2admin.com/

BC2CC
http://www.bc2cc.com/downloads.html

BC2 Map List:
user23_pic7_1267298898.jpg
user23_pic7_1267298898.jpg (76.4 KiB) Viewed 59742 times
BC2 Maplist.txt:
Thanks to Centrias for the link.
www.myinternetservices.com wrote:Through our control panel you have access to the maplist file. In there you can set the maps you want in rotation.
A couple points:
1. At this point you are only able to be running one game mode at a time.
2. You must restart your server after making changes to the maplist for it to apply.

Here are the game modes:
Conquest = CONQUEST
Rush = RUSH
Squad Rush = SQRUSH
Squad Team Deathmatch = SQDM

Here are the map names:
Panama Canal = mp_001
Valparaíso = mp_002
Laguna Alta= mp_003
Isla Inocentes = mp_004
Atacama Desert = mp_005
Arica Harbor = mp_006
White Pass = mp_007
Nelson Bay = mp_008
Laguna Presa = mp_009
Port Valdez = mp_012

So your maplist.txt file would look something like this if you wanted to set the server on Conquest maps:
CONQUEST
levels/mp_001
levels/mp_003
levels/mp_005
levels/mp_007
levels/mp_009cq

Here is a list of all modes and thier respective maps:
CONQUEST
levels/mp_001
levels/mp_003
levels/mp_005
levels/mp_007
levels/mp_009cq

RUSH
levels/mp_002
levels/mp_004
levels/mp_006
levels/mp_008
levels/mp_012gr

SQRUSH
levels/mp_001sr
levels/mp_002sr
levels/mp_005sr
levels/mp_012sr

SQDM
levels/mp_004sdm
levels/mp_006sdm
levels/mp_007sdm
levels/mp_009sdm
BC2 Server Image:
Dimensions: 512x64
Format: .png
Size: 127Kb (or smaller)
URL must be less than 64 Characters long.
Example Image:
Image

Rcon Commands:
www.i3D.net wrote: Demo Commands:

demo.recordDemo [demoname] - Starts recording current gameplay and saves the file as demoname.bf2demo in your \Program Files\EA Games\Battlefield 2 Demo\mods\bf2\Demos\
demo.stopRecording - Stops current demo recording
demo.ShutdownDemo -



Game Commands:

game.sayAll [string] - Says the specified text in global chat
game.sayTeam [number] [string] - Says the specified text in team chat
game.lockFps [framerate] - Caps the game's maximum framerate to specified number
game.allowToggleFullscreen [0,1] - If set to 1 allows toggling of fullscreen/windowed mode
game.toggleFullscreen - Toggles between fullscreen and windowed mode


Localprofile Commands:

localProfile.setName [name] - Sets the name for your current account
localProfile.setNick [nick] - Sets the nickname for your current account
localProfile.setGamespyNick [GameSpyNick] - Sets the GameSpy login name for your account
localProfile.setEmail [email account] - Sets the email account for the current account
localProfile.setPassword [password] - Sets the password for the current account
localProfile.setNumTimesLoggedIn [number] - Sets the number of times the player has logged in with the current account
localProfile.setTotalPlayedTime [seconds] - Sets the time the game has been played using the current account
localProfile.save -
localProfile.addDemoBookmark [ ] -



Globalsettings Commands:

globalSettings.setDefaultUser [number] - Sets the profile to use, the first one being 0001, then 0002 etc.


Renderer Commands:

renderer.drawHud [0,1] - Turns the Heads Up Display (HUD) on or off.
renderer.drawConsole [0,1] - Turns off access to the in-game console if set to 0.
renderer.drawFps [0,1] - Displays the current and average frames per second (FPS) in the top left corner.


Sv Commands:

sv.allowNATNegotiation [0,1] -
sv.interface -
sv.timeBeforeRestarting [0,1] -
sv.autoBalanceTeam [0,1] -
sv.teamRatioPercent [0,1] -
sv.autoRecord [0,1] -
sv.demoIndexURL [address] -
sv.demoDownloadURL [address] -
sv.autoDemoHook -
sv.demoQuality -
sv.adminScript -
sv.sponsorText -
sv.sponsorLogoURL [address] -
sv.communityLogoURL [address] -
sv.radioSpamInterval -
sv.radioMaxSpamFlagCount -
sv.radioBlockedDurationTime [seconds] -
sv.useGlobalRank [0,1] -
sv.useGlobalUnlocks [0,1] -



Gamelogic Commands:

gameLogic.togglePause - Toggles pausing the game.


Settingsmanager Commands:

SettingsManager.stringSet -
SettingsManager.boolSet -
SettingsManager.IntSet -
SettingsManager.floatSet -
SettingsManager.u32Set -
SettingsManager.stringGet -
SettingsManager.boolGet -
SettingsManager.intGet -
SettingsManager.foatGet -
SettingsManager.U32Get -



Controlmap Commands:

These settings should be used in the Controls.con file under your \Documents and Settings\[username]\My Documents\Battlefield 2 Demo\Profiles\[profile]\ directory.
controlMap.deleteControlMap -
controlMap.dump -
controlMap.setButtonRiseTime -
controlMap.SetButtonFallTime -
controlMap.SetDoubleTapTime -
controlMap.addAxisToAxisMapping [string] -
controlMap.addButtonsToAxisMapping [string] -
controlMap.addKeyAndButtonToAxisMapping [string] -
controlMap.addKeysToAxisMapping [string] -
controlMap.addButtonToTriggerMapping [string] -
controlMap.AddKeyToTriggerMapping [string] -
controlMap.setAxisScale -
controlMap.setYawFactor -
controlMap.setPitchFactor -
controlMap.addAxisToTriggerMapping -
controlMap.InvertMouse [0,1] - Set to 1 for inverted mouse, 0 for default mouse
controlMap.mouseSensitivity [number] - Determines the sensitivity of the mouse
controlMap.keyboardSensitivity [number] - Deterimes the sensitivity of the keyboard


Maplist Commands:

These commands are used to manage lists of maps by server administrators.
mapList.list - Lists map ID numbers, map name, game mode and the number of players if specified.
mapList.configFile [new location for file] - Used to specify the location of the _mapList.con file. Default is \My Documents\Battlefield 2 Demo\ServerConfigs\
mapList.load - Makes the server reload _mapList.con
mapList.save - Saves the current map list on the server to the file _mapList.con
mapList.mapCount - Shows the total number of maps in the current map list
mapList.currentMap - Shows the map list ID number of the current map being played
mapList.clear - Clears the current map list
mapList.remove [map ID number] - Removes the specified map from the map list
mapList.append [map name] [game mode] [number of players] - Add a new map to the end of the map list. You must specify the map name and game mode.
mapList.insert [map ID number] [map name] [game mode] [number of players] - Same as mapList.append command, but with this command you can specify at what map ID number to insert the new map into the list.


Inputdevices Commands:

InputDevices.setInvertAxis -
InputDevices.setAxisScale -


Admin Commands:

These commands are used by server administrators.
admin.listPlayers - Lists the players connected to the server, showing their name, ID number and IP number.
admin.runNextLevel - Forces the server to end the round and start the next map in the map list.
admin.currentLevel - Shows the map list ID number for the current map being played.
admin.nextLevel - Shows the map list ID number for the next map to be played.
admin.restartMap - Restarts the current map.
admin.banPlayer [player ID number] [timeout] - Enter the player ID number you want to ban. Bans the player from the server by using their IP address. The timeout value controls the length of the ban e.g. perm for permanent ban, round to ban them for the rest of the round, and 180 is 180 seconds (3 minutes).
admin.banPlayerKey [player ID number] [timeout] - Enter the player ID you want to ban. Bans the player from the server by using their CD key hash.
admin.addAddressToBanList [IP address] [timeout] - Enter the IP number you want to ban.
admin.addKeyToBanList [CD key hash] [timeout] - Enter the CD key hash you want to ban.
admin.removeAddressFromBanList [IP address] - Enter the IP address to remove from the ban list.
admin.removeKeyFromBanList [CD key hash] - Enter the CD key hash you want to remove from the ban list.
admin.clearBanList - Clears all ban lists.
admin.listBannedAddresses - Displays a list of the currently banned IP addresses.
admin.listBannedKeys - Displays a list of the currently banned CD keys.
admin.kickPlayer [player ID number] - Enter the ID number of the player you want to kick.


Remote Console:

These commands are used by server administrators.
To setup remote console access to the server, onthe server create a new plain text document in \admin\ called default.cfg and enter the following text into the new file:
port=4711
password=YourPassword
Save the file, and start the server. Now you can access the server remotely by using the following commands from a client:
rcon login [YourPassword] - Use this command to login to the server.
rcon users - This command lists all the users connected to the server. Very similar to admin.listPlayers
rcon exec [command name] - Replace with a console command you would like to execute on the server. For example: rcon exec admin.kickPlayer 3
Exit - Quits the game to desktop.
Another set that might be a bit more accurate.
www.badcompanytwo.com wrote: * admin.banIP
* admin.banPlayer
* admin.clearIPBanList
* admin.clearPlayerBanList
* admin.currentLevel
* admin.getPlaylist
* admin.getPlaylists
* admin.kickPlayer
* admin.listIPBans
* admin.listPlayerBans
* admin.listPlayers
* admin.nextLevel
* admin.restartMap
* admin.runNextLevel
* admin.runScript
* admin.setPlaylist
* admin.supportedMaps
* admin.unbanIP
* admin.unbanPlayer
* admin.yell
* help
* login
* logout
* mapList.append
* mapList.clear
* mapList.list
* mapList.load
* mapList.remove
* mapList.save
* punkBuster.pb_sv_command
* quit
* reservedSlots.addPlayer
* reservedSlots.clear
* reservedSlots.list
* reservedSlots.load
* reservedSlots.removePlayer
* reservedSlots.save
* serverInfo
* vars.3dSpotting
* vars.adminPassword
* vars.bannerUrl
* vars.crossHair
* vars.friendlyFire
* vars.gamePassword
* vars.hardCore
* vars.killCam
* vars.miniMap
* vars.miniMapSpotting
* vars.playerLimit
* vars.punkBuster
* vars.rankLimit
* vars.ranked
* vars.serverDescription
* vars.teamBalance
* vars.thirdPersonVehicleCameras
* version
Last edited by Desy10140 on Tue Mar 02, 2010 2:33 am, edited 1 time in total.
Ah, the digital domain... home at last!
Image
http://www.Animosity-Guild.net
BC2 Admin Resources

Desy10140
No Longer a Newb
Posts: 20
Joined: Tue Mar 02, 2010 12:38 am

Re: BC2 Admin Resources - Not Official

Post by Desy10140 » Tue Mar 02, 2010 1:52 am

Updated with a second set of possible commands and an example maplist.txt
Ah, the digital domain... home at last!
Image
http://www.Animosity-Guild.net
BC2 Admin Resources

Robocop
Click my affiliate link
Posts: 531
Joined: Tue Mar 25, 2008 8:50 pm
Location: Toronto
Contact:

Re: BC2 Admin Resources - Not Official

Post by Robocop » Tue Mar 02, 2010 2:24 am

Reserve Slots?? How does that work

Desy10140
No Longer a Newb
Posts: 20
Joined: Tue Mar 02, 2010 12:38 am

Re: BC2 Admin Resources - Not Official

Post by Desy10140 » Tue Mar 02, 2010 2:38 am

Updated with server image specs.
Robocop wrote:Reserve Slots?? How does that work
The only thing I know are the commands so far:

Code: Select all

* reservedSlots.addPlayer
* reservedSlots.clear
* reservedSlots.list
* reservedSlots.load
* reservedSlots.removePlayer
* reservedSlots.save
I haven't been able to find any information on how to format the reservedslots.txt file :S Still looking...
Ah, the digital domain... home at last!
Image
http://www.Animosity-Guild.net
BC2 Admin Resources

kRoOkEd
GameServers.com Forum Newb
Posts: 2
Joined: Tue Mar 02, 2010 2:40 am

Re: BC2 Admin Resources - Not Official

Post by kRoOkEd » Tue Mar 02, 2010 2:41 am

how do u enable hardcore mode?

Desy10140
No Longer a Newb
Posts: 20
Joined: Tue Mar 02, 2010 12:38 am

Re: BC2 Admin Resources - Not Official

Post by Desy10140 » Tue Mar 02, 2010 2:47 am

Now I believe you have to run this via Rcon or the startup cmd line. I don't know if you can implement it into the maplist.txt

Code: Select all

vars.hardCore true
Ah, the digital domain... home at last!
Image
http://www.Animosity-Guild.net
BC2 Admin Resources

Bluecewe
Click my affiliate link
Posts: 458
Joined: Mon Mar 01, 2010 9:27 am

Re: BC2 Admin Resources - Not Official

Post by Bluecewe » Tue Mar 02, 2010 2:48 am

Thanks for all these resources, Desy10140. Good job! :)
EFG is recruting mature gamers who are happy to have a laugh while enjoying their game. Visit our website for more informaiton.
Clan YouTube
My Twitter

Robocop
Click my affiliate link
Posts: 531
Joined: Tue Mar 25, 2008 8:50 pm
Location: Toronto
Contact:

Re: BC2 Admin Resources - Not Official

Post by Robocop » Tue Mar 02, 2010 2:56 am

Robocop wrote:Reserve Slots?? How does that work
ReservedSlot_SoldierName1
ReservedSlot_SoldierName2
ReservedSlot_SoldierName3

its under reservedslot.txt

Desy10140
No Longer a Newb
Posts: 20
Joined: Tue Mar 02, 2010 12:38 am

Re: BC2 Admin Resources - Not Official

Post by Desy10140 » Tue Mar 02, 2010 3:07 am

I don't have anything listed there under my CP and I am not sure whether the proper syntax is an "_" or a space...
Ah, the digital domain... home at last!
Image
http://www.Animosity-Guild.net
BC2 Admin Resources

Fluffytuff
No Longer a Newb
Posts: 83
Joined: Fri Nov 10, 2006 5:17 pm

Re: BC2 Admin Resources - Not Official

Post by Fluffytuff » Tue Mar 02, 2010 3:16 am

How do I access the console from in-game?
Image

kRoOkEd
GameServers.com Forum Newb
Posts: 2
Joined: Tue Mar 02, 2010 2:40 am

Re: BC2 Admin Resources - Not Official

Post by kRoOkEd » Tue Mar 02, 2010 3:30 am

ok thanx for the help.. one more queestion.... how can i stop each map from playing twice?

MrBigs
No Longer a Newb
Posts: 24
Joined: Sat Feb 02, 2008 9:12 am

Re: BC2 Admin Resources - Not Official

Post by MrBigs » Tue Mar 02, 2010 3:50 am

I really hope at some point you can mix up gameplay modes. I'm in quite dismay at how servers have turned out. The whole limiting access to server control and commands is really turning the online PC gaming environment from the hardcore and handing it to the casual. I am disappoint. :(

Docility
No Longer a Newb
Posts: 13
Joined: Tue Mar 02, 2010 4:45 am

Re: BC2 Admin Resources - Not Official

Post by Docility » Tue Mar 02, 2010 4:47 am

Desy10140 wrote:I don't have anything listed there under my CP and I am not sure whether the proper syntax is an "_" or a space...
any news on the syntax?

I asked GS, but the one rep didnt know, and gave the case to someone else.

User avatar
GrossKopf
I answer every post
Posts: 699
Joined: Wed Jun 24, 2009 6:23 pm
Location: 4.9 miles from GameServers.com HQ
Contact:

Re: BC2 Admin Resources - Not Official

Post by GrossKopf » Tue Mar 02, 2010 7:18 am

How do we edit our rcon PW? I want to be able to use BC2CC but don't see an option for the rcon PW.
GrossKopf's Gaming Community: NoSmacktards.net
Recruiting for Medal of Honor: Warfighter! Visit us today!

dodgeboy90501
No Longer a Newb
Posts: 74
Joined: Tue Mar 02, 2010 12:45 am

Re: BC2 Admin Resources - Not Official

Post by dodgeboy90501 » Tue Mar 02, 2010 7:46 am

When you start BC2CC, you see an icon to add server. click on that, a box will pop up, enter your server name, your game ip address, in the command port put in this number 48888, the password is your GS game subscription ID. Your server will be added, double click your server name, if everything is correct, you will connect to your server, under tab of Server Options, you can change your password-Admin Password. I hope this is what you where asking for. When you log back in, you will have to enter the new password in the box, if you don't you will get invalid password message.
Image

Post Reply