Spawning vehicles as admin

General discussion of the Project Reality: BF2 modification.
Post Reply
Steean-X
Posts: 22
Joined: 2011-05-22 20:51

Spawning vehicles as admin

Post by Steean-X »

Hi, we are playing pr coop, and my friend claims he played an online game a while ago and the admin spawned an apache for him. He entered some scripts and spawned in vehicles like in BF2:Sandbox, only in PR. Anyone know if this is possible? We are practicing in coop, and would love to be able to just spawn in any vehicle at any time anywhere.
Sti
killonsight95
Posts: 2123
Joined: 2009-03-22 13:06

Re: Spawning vehicles as admin

Post by killonsight95 »

yup it's possible, however test it out in local first as you don't have to "log in" when you're hosting it locally heres the guide.

https://www.realitymod.com/forum/f388-p ... mands.html
Image
ShockUnitBlack
Posts: 2100
Joined: 2010-01-27 20:59

Re: Spawning vehicles as admin

Post by ShockUnitBlack »

*Makes near-incoherent noise that nonetheless sounds vaguely like "commanders should be able to purchase vehicles."
"I Want To Spend The Rest Of My Life With You Tonight."
BoZo_135
Posts: 130
Joined: 2011-04-23 16:40

Re: Spawning vehicles as admin

Post by BoZo_135 »

Killonsight, I tried everything that was said on that thread and nothing worked for me. :(
killonsight95
Posts: 2123
Joined: 2009-03-22 13:06

Re: Spawning vehicles as admin

Post by killonsight95 »

1.start local deployment server

2.type IN CHAT (either all,team or squad) rcon debug

3.make sure that anything you want to spawn is used by 1 of the factions on the map otherwise your game will crash.

4.type eg. on kashan: rcon spawner us jet f16
this will spawn the f16, you can find all vehciles in the PR files by going into objects > vehicles server > land/sea/air/civi etc.
Image
BoZo_135
Posts: 130
Joined: 2011-04-23 16:40

Re: Spawning vehicles as admin

Post by BoZo_135 »

Haha, thx. I figured it out. Kept trying it on Co-op instead of deployment :$
chainsaw.exe
Posts: 58
Joined: 2010-12-09 23:36

Re: Spawning vehicles as admin

Post by chainsaw.exe »

Is there any way to use debug commands on coop?
killonsight95
Posts: 2123
Joined: 2009-03-22 13:06

Re: Spawning vehicles as admin

Post by killonsight95 »

i think you have to make a login as explained in the first part of the tutorial in the link

but i'm not sure if you can or cannot.
Image
newguy2468
Posts: 12
Joined: 2010-11-05 15:52

Re: Spawning vehicles as admin

Post by newguy2468 »

To be able to use RCON commands i CO-OP you have to edit some python files

1:
Go into
C:\Program Files\EA GAMES\Battlefield 2\mods\pr\python\game

2:
Open realityconfig_coop in notebook (NB! Remember to make a backup!!!!!!!)

3:
Go down to the bottom of the text file. you should see something like this
# Defines if all players in a server running the private config have debug powers
# Default is 0 (no)
C['PRDEBUG_ALL'] = 0
4:
Change the
C['PRDEBUG_ALL'] = 0
To
C['PRDEBUG_ALL'] = 1
5:
Save

6:
Profit :D , then do the same in CO-OP as in LOCAL, like typing in rcon debug in chat etc...
Last edited by newguy2468 on 2011-08-07 22:24, edited 2 times in total.
Bringerof D : "no, Hardcoded means:

Analogy: There's something inside the box you want or need. however the box cannot be opened. It is armor plated on all sides welded shut with no seem or any weak point what so ever. In fact even if you could open the box, it is in fact illegal and there are policemen standing right next to the box.
you are however allowed to play with the box and decorate it."
chainsaw.exe
Posts: 58
Joined: 2010-12-09 23:36

Re: Spawning vehicles as admin

Post by chainsaw.exe »

thankyou mate that worked!!
Post Reply

Return to “PR:BF2 General Discussion”