Local/Co-op Vehicle Spawning

General discussion of the Project Reality: BF2 modification.
Post Reply
Acecombatzer0
Posts: 554
Joined: 2010-09-26 14:10

Local/Co-op Vehicle Spawning

Post by Acecombatzer0 »

I searched on and on, and this topic hasn't been raised since 0.7. I was wondering if it is possible to spawn vehicles on a local or co-op server using the console commands.

I have tried editing the python, but when I do, the game crashes before it even loads.
Any help would be appreciated. :-)
Outlawz7
Retired PR Developer
Posts: 17261
Joined: 2007-02-17 14:59

Re: Local/Co-op Vehicle Spawning

Post by Outlawz7 »

Yes, enable debug.

\mods\pr\python\game, reality_config_local for LAN; _coop for Co-Op, open with Notepad, search for "PRDEBUG_ALL", enable it by changing value 0 to 1.

Start up a local game, type in console or text chat "rcon debug" to enable/disable, then "rcon spawner kitvehiclename" with the full vehicle or kit name ie. rcon spawner us_trk_logistics to spawn a
US logi truck or us_sniper to spawn the sniper kit.

Look up names in pr/objects/vehicles_server.zip, kits_server.zip

Tip: "rcon prbot" spawns the PR bot. :)


Make sure you spawn only stuff that's loaded onto the map, as unloaded content crashes the game ie. only spawn us_trk_logistics on a US map.
Image
Acecombatzer0
Posts: 554
Joined: 2010-09-26 14:10

Re: Local/Co-op Vehicle Spawning

Post by Acecombatzer0 »

Thanks for the help Outlawz, but when I try to enable dbug, it says "you can only invoke login" or something like that. Do I have to put my name "acecombatzer0" in the python? When I do, the game crashes.
SANGUE-RUIM
Posts: 1390
Joined: 2009-04-26 12:37

Re: Local/Co-op Vehicle Spawning

Post by SANGUE-RUIM »

the same happens to me, wat shoudl we do?
AnimalMother.
Posts: 2476
Joined: 2007-02-25 15:38

Re: Local/Co-op Vehicle Spawning

Post by AnimalMother. »

on a local AAS/ins you can use the chat (j,k,l) to type the rcon commands

https://www.realitymod.com/forum/f10-pr ... mands.html that thread should have you covered for what you need
ex |TG-31st|
AnimalMotherUK - YouTube

vistamaster01: "I just dont get people with girl usernames/pics/sigs lol,
for example I thought AnimalMother was a girl :o ops:"

Arte et Marte
avskum
Posts: 109
Joined: 2009-10-15 21:27

Re: Local/Co-op Vehicle Spawning

Post by avskum »

Tried it too, but when I have debugged and typed in like rcon spawner us_ahe_kiowa and press enter i CTD... Would be really nice if it worked thou, flying some kiowa on archer (or karbala).
AnimalMother.
Posts: 2476
Joined: 2007-02-25 15:38

Re: Local/Co-op Vehicle Spawning

Post by AnimalMother. »

avskum wrote:Tried it too, but when I have debugged and typed in like rcon spawner us_ahe_kiowa and press enter i CTD... Would be really nice if it worked thou, flying some kiowa on archer (or karbala).
you can only spawn vehicles that feature in the currently running map layer without crashing the server, for local that is CTD

so you can't just spawn a kiowa on archer without editing the GPO
ex |TG-31st|
AnimalMotherUK - YouTube

vistamaster01: "I just dont get people with girl usernames/pics/sigs lol,
for example I thought AnimalMother was a girl :o ops:"

Arte et Marte
avskum
Posts: 109
Joined: 2009-10-15 21:27

Re: Local/Co-op Vehicle Spawning

Post by avskum »

What is GPO and is it hard to edit it? (I have a separate folder of PRSP just so I still can edit it and be able to play online).
AnimalMother.
Posts: 2476
Joined: 2007-02-25 15:38

Re: Local/Co-op Vehicle Spawning

Post by AnimalMother. »

gameplayobjects file

found in every levels server.zip folder

to do basic edits of it all you need is notepad, a quick google should find you a easy enough to follow guide
ex |TG-31st|
AnimalMotherUK - YouTube

vistamaster01: "I just dont get people with girl usernames/pics/sigs lol,
for example I thought AnimalMother was a girl :o ops:"

Arte et Marte
Outlawz7
Retired PR Developer
Posts: 17261
Joined: 2007-02-17 14:59

Re: Local/Co-op Vehicle Spawning

Post by Outlawz7 »

Acecombatzer0 wrote:Thanks for the help Outlawz, but when I try to enable dbug, it says "you can only invoke login" or something like that. Do I have to put my name "acecombatzer0" in the python? When I do, the game crashes.
That doesn't matter, what you're looking for is 'debug enabled' line appearing in the server messages line.

It works just fine.

Image

Image
avskum wrote:Tried it too, but when I have debugged and typed in like rcon spawner us_ahe_kiowa and press enter i CTD... Would be really nice if it worked thou, flying some kiowa on archer (or karbala).
[R-DEV]Outlawz wrote: Make sure you spawn only stuff that's loaded onto the map, as unloaded content crashes the game ie. only spawn us_trk_logistics on a US map.
Image
SANGUE-RUIM
Posts: 1390
Joined: 2009-04-26 12:37

Re: Local/Co-op Vehicle Spawning

Post by SANGUE-RUIM »

Animal.Mother wrote:on a local AAS/ins you can use the chat (j,k,l) to type the rcon commands

https://www.realitymod.com/forum/f10-pr ... mands.html that thread should have you covered for what you need
it worked, thx
Post Reply

Return to “PR:BF2 General Discussion”