project reality header
Go Back   Project Reality Forums > PR:BF2 Mod Forums > PR:BF2 Community Modding > Modding Tutorials
25 Oct 2014, 00:00:00 (PRT)
Register Forum RulesDeveloper Blogs Project Reality Members List Search Today's Posts Mark Forums Read
Modding Tutorials Information and tutorials related to modding BF2.

Contact Support Team Frequently Asked Questions Register today!

Reply
 
LinkBack Thread Tools Display Modes
Old 03-01-2011, 02:59 AM   #1
[R-DEV]VapoMan
PR:BF2 Developer

[R-DEV]VapoMan's Avatar
Send a message via MSN to [R-DEV]VapoMan
Post Local RCON Commands

RCON commands on local servers are very useful for testing maps, vehicles and weapons ingame.

1. In the launcher, click 'Options' and select the 'Global' tab. Check the 'Enable Local RCON Commands' option, click 'Apply' and then 'Close'.

2. Start a local or Co-op server.

3. Once spawned in ingame bring up chat ( default j,k,l keys).

4. Type in:
Code:
rcon debug
A message should appear saying '*Debug Enabled*'
Enabling debug mode is important as most commands cant be done unless debug is enabled.



Ingame Commands:

Ingame commands must be entered in chat by using the j,k or l keys, NOT in console.

Now that you're logged in and in debug mode you can use the spawner commands.
Its important that you DO NOT spawn anything that isnt in the map you are currently playing as it will crash the game. Example spawning a PLA tank on kashan will crash the game.

The spawner command is:
Code:
rcon spawner thing_you_are_spawning
For example if I wanted to spawn a US logistics truck on kashan desert the command would be:
Code:
rcon spawner us_trk_logistics
There are single player versions of some vehicles, for example tanks that allow the gunner to drive. They have _bf2 on the end of the name. As long as you have the vehcile in the map, you can spawn in the SP varient.

If I wanted to spawn the MEC marksman kit the command would be:
Code:
rcon spawner mec_marksman
If you want to alternate version of the kit put _alt on the end of the code like this:
Code:
rcon spawner mec_marksman_alt
To spawn a deployable firebase the command would be:
Code:
rcon spawner deployable_firebase
If you want to spawn a pre built deployable just put _sp on the end of the name. You can only spawn deployables for the teams on the map.


You can spawn any vehicle or kit on any team as long as it is on the map you are playing on.

Useful for testing and taking screenshots is the flying prbot. The command for that it:
Code:
rcon prbot
To remove the minimap and hud when in the prbot press the switch weapon key (default F).
There is another prbot with different controls, more sutable for smooth video recording. The command for that it:
Code:
rcon prbot2
Also useful for taking screenshots and filming is the camera kit. Its command is:
Code:
rcon camera
The kit will probably be invisible so just walk a few meters infront of you and press G. The kit has a UN helmet, so it can be useful in community events.

For instant respawn type in:
Code:
rcon ready playername
Replace 'playername' with the name of the person you want to instantly respawn.
So If I wanted to do it to myself I would type in:
Code:
rcon ready vapoman
You can also use just the first letter or first few letters of the players name. For example
Code:
rcon ready v
To allow all kits used in vehicles plus no need for driver in tanks etc type in:
Code:
rcon oneman
To disable Vehicle warm up times type in:
Code:
rcon start
To disable Team Kit restrictions so you can use enemy kits, type in:
Code:
rcon onefaction
To spawn every kit for the faction you are currently playing as type:
Code:
rcon kits
It will spawn all the kits and varients for the faction in a long line.

To find out your current health value type:
Code:
rcon health
Fully healed is 100.0, dead is 0

To run a map in the your map rotation type:
Code:
rcon map nn
Replace nn with the map number. To find out the map number type the follow into the console (by pressing ~):
Code:
maplist.list
To teleport to loctation X amount of meters away in the direction you're facing type (this one only works in the console ~):
Code:
rcon teleport X
If you teleport to a location that is lower in height than you're current you will fall and die, so be careful.

Vehicle and Kit Names:

To find the names of all the vehicles and kits locate the following directory:
Program Files/EA GAMES/Battlefield 2/mods/pr/content

The kits_server.zip will have all the names of the kits for all the different factions.
The vehicles_server.zip will have all the vehicles names for all the diffents factions.
The common_server.zip has names for deployables, such as firebases, tows ect.

For reference here are the team names so you can identify which kits and vehicles belong to which armies and maps:
Code:
cf = Canadian Forces
ch= PLA
chinsurgent = Militia
GB= British Forces
ger = German Forces
hamas= Hamas
idf = Israeli defence force
Mec = MEC
MEInsurgent = Insurgents
pickup = Random pickup kits (some of the insurgent and taliban kits are in here)
ru = Russian Forces
taliban = Taliban
us = USMC
usa = US Army


To view links or images in signatures your post count must be 1 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 1 or greater. You currently have 0 posts.
"Eight glorious sides and eight stunning angles!"
To view links or images in signatures your post count must be 1 or greater. You currently have 0 posts.
[R-DEV]VapoMan is offline
Last edited by [R-DEV]piepieonline; 01-22-2014 at 12:22 AM.. Reason: Updated for the launcher
Reply With Quote
Old 03-01-2011, 06:32 AM   #2
PatrickLA_CA

PatrickLA_CA's Avatar
Default Re: [Tutorial] Local RCON Commands

That's very useful, thanks Vapo!

Cobra-PR-

The rotor is just a big fan on top of the helicopter designed to keep the pilot cool.
When it stops, you can actually watch the pilot start sweating.
PatrickLA_CA is offline Reply With Quote
Old 03-01-2011, 06:58 AM   #3
[R-DEV]AncientMan
PR:BF2 Project Manager
Supporting Member
PR Server License Administrator

[R-DEV]AncientMan's Avatar
Default Re: [Tutorial] Local RCON Commands

You don't need to login for it to work, just "rcon debug". And you can just use "rcon camera" for the camera kit.

For listen servers, you need to type the commands into chat (j, k, or l), for dedicated, you type it into console (~). For dedicated, you need to enable debug at the bottom of the relevant realityconfig_*.py file.


To view links or images in signatures your post count must be 1 or greater. You currently have 0 posts.
[R-DEV]AncientMan is online now Reply With Quote
Old 03-01-2011, 07:28 AM   #4
[R-DEV]VapoMan
PR:BF2 Developer

[R-DEV]VapoMan's Avatar
Send a message via MSN to [R-DEV]VapoMan
Default Re: [Tutorial] Local RCON Commands

Quote:
Originally Posted by [R-DEV]AncientMan View Post
For listen servers, you need to type the commands into chat (j, k, or l), for dedicated, you type it into console (~).
Palmface I forgot that lol. Will quickly edit....


To view links or images in signatures your post count must be 1 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 1 or greater. You currently have 0 posts.
"Eight glorious sides and eight stunning angles!"
To view links or images in signatures your post count must be 1 or greater. You currently have 0 posts.
[R-DEV]VapoMan is offline Reply With Quote
Old 03-01-2011, 09:38 AM   #5
Elektro

Elektro's Avatar
Default Re: [Tutorial] Local RCON Commands

Will spawning a jet on Kashan crash the server?


To view links or images in signatures your post count must be 1 or greater. You currently have 0 posts.
Elektro is offline Reply With Quote
Old 03-01-2011, 09:48 AM   #6
[R-DEV]VapoMan
PR:BF2 Developer

[R-DEV]VapoMan's Avatar
Send a message via MSN to [R-DEV]VapoMan
Default Re: [Tutorial] Local RCON Commands

Quote:
Originally Posted by Elektro View Post
Will spawning a jet on Kashan crash the server?
It will not crash as long as the vehicle is in the map.
So if you spawn it in the 64p jet layer it is fine, but if you spawn it in the 32p chopper layer it will crash.


To view links or images in signatures your post count must be 1 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 1 or greater. You currently have 0 posts.
"Eight glorious sides and eight stunning angles!"
To view links or images in signatures your post count must be 1 or greater. You currently have 0 posts.
[R-DEV]VapoMan is offline Reply With Quote
Old 03-01-2011, 12:44 PM   #7
AnimalMother.

AnimalMother.'s Avatar
Default Re: [Tutorial] Local RCON Commands

might want to add rcon ready playername to instant respawn

rcon oneman to allow all kits used in vehicles plus no need for driver in tanks etc and rcon start (i think) to have no turrent warm ups etc

rcon map nn - where nn is a number from the maplist to switch to that map


To view links or images in signatures your post count must be 1 or greater. You currently have 0 posts.
|TG-31st|

vistamaster01: "I just dont get people with girl usernames/pics/sigs lol,
for example I thought AnimalMother was a girl
To view links or images in signatures your post count must be 1 or greater. You currently have 0 posts.
"

Arte et Marte
AnimalMother. is offline Reply With Quote
Old 03-01-2011, 11:48 PM   #8
[R-DEV]VapoMan
PR:BF2 Developer

[R-DEV]VapoMan's Avatar
Send a message via MSN to [R-DEV]VapoMan
Default Re: [Tutorial] Local RCON Commands

Thanks Animal.Mother for the extra commands, added those in


To view links or images in signatures your post count must be 1 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 1 or greater. You currently have 0 posts.
"Eight glorious sides and eight stunning angles!"
To view links or images in signatures your post count must be 1 or greater. You currently have 0 posts.
[R-DEV]VapoMan is offline Reply With Quote
Old 03-02-2011, 12:00 AM   #9
splatters

splatters's Avatar
Default Re: [Tutorial] Local RCON Commands

You can also spawn firebases etc. Static objects can be spawn too, but afaic only the host can see those. Networkable static objects can bee seen by everyone.
splatters is offline Reply With Quote
Old 10-15-2011, 12:57 AM   #10
[R-DEV]VapoMan
PR:BF2 Developer

[R-DEV]VapoMan's Avatar
Send a message via MSN to [R-DEV]VapoMan
Default Re: [Tutorial] Local RCON Commands

Updated OP with more commands and removed the login process since it isn't needed.


To view links or images in signatures your post count must be 1 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 1 or greater. You currently have 0 posts.
"Eight glorious sides and eight stunning angles!"
To view links or images in signatures your post count must be 1 or greater. You currently have 0 posts.
[R-DEV]VapoMan is offline Reply With Quote
Reply


Tags
commands, local, rcon, tutorial
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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 01:28 AM.


Powered by: vBulletin. ©vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.1
All Content Copyright ©2004 - 2014, Project Reality.