project reality header
Go Back   Project Reality Forums > PR:BF2 Mod Forums > PR:BF2 Community Modding
18 Jun 2021, 00:00:00 (PRT)
Register Developer Blogs Project Reality Members List Search Today's Posts Mark Forums Read
PR:BF2 Community Modding Making or wanting help making your own asset? Check in here

Reply
 
Thread Tools Display Modes
Old 2021-04-17, 20:03   #1
3bwii
Angry Can't spawn on captured flags in co-op

It seems like flags for Co-op are set to AI only, this thread describes my exact problem:
https://www.realitymod.com/forum/sho...d.php?t=148579

However
1) it would be extremely tedious to manually change this setting for each and every individual map
2) the setting cannot be edited because of file permissions
3) trying to replace the zip folder with a corrected zip results in the game refusing to launch detecting modified files

Any solutions?
3bwii is offline Reply With Quote
Old 2021-04-17, 20:38   #2
[R-DEV]​AlonTavor
PR:BF2 Developer
PR Server License Administrator
Default Re: Can't spawn on captured flags in co-op

Is this a modding question?

1. You can make a copy of the map, you'll probably have to rename some stuff
2. You can launch offline profile with modified files.
AlonTavor is offline Reply With Quote
Old 2021-04-17, 21:54   #3
3bwii
Default Re: Can't spawn on captured flags in co-op

Quote:
Originally Posted by AlonTavor View Post
Is this a modding question?

1. You can make a copy of the map, you'll probably have to rename some stuff
2. You can launch offline profile with modified files.

My question is whether or not I can change 1 file to spawn on capped flags in sp without having to manually overwrite every single map file
3bwii is offline Reply With Quote
Old 2021-04-21, 06:37   #4
LangMaster

LangMaster's Avatar
Default Re: Can't spawn on captured flags in co-op

Not sure exactly what you are looking for, but these decisions are made by the map editor and i like to keep my self the spawns for Ai only since it forces coop to be a bit more serious using logistics and building fobs, there is a line for every spawn in gamemodes > gpm_coop > gameplayobjects.con you gotta look for spawn points
ObjectTemplate.setOnlyForAI 1 this makes the spawn only for ai, if you remove the line or put there 0 then you can spawn on it once it is capped, in map editor it is a bit easier to change but i think something like a simple notepad should be able to do it as well with it's tools to make it quick.
LangMaster is offline Reply With Quote
Old 2021-05-10, 20:51   #5
Operator_Max1993
Default Re: Can't spawn on captured flags in co-op

i can't spawn at any other captured flags in CO-OP neither

what do i have to do ?

it would be nice if someone told me what am i supposed to do
(by that i mean

which gpm_coop

gpm_coop.py or gpm_coop.pyc ?

also what gameplayobjects ? where do i find it ?
Operator_Max1993 is offline Reply With Quote
Old 2021-05-11, 18:34   #6
SemlerPDX
PR Server License Administrator

SemlerPDX's Avatar
Default Re: Can't spawn on captured flags in co-op

Quote:
Originally Posted by Operator_Max1993 View Post
i can't spawn at any other captured flags in CO-OP neither

what do i have to do ?

it would be nice if someone told me what am i supposed to do
(by that i mean

which gpm_coop

gpm_coop.py or gpm_coop.pyc ?

also what gameplayobjects ? where do i find it ?
Okay - so, this method DOES involve changing a map file - therefore, if you do, you will be unable to join online... unless you first make a copy of the map and give it a new name. I do not have instructions prepared for that, but I can help with your question quoted above:
  • Find the mission you want to play in singleplayer with special 'spawn on flag' rules. Open it and navigate to the 'server.zip' file. Open this with a .zip editor, pictured is WinRAR.
  • Dive down in this file to the 'gameplayobjects.con' file - depending on the layer, the final folder will be a number specific to that map/level - in the example below, I'm using LangMaster's created map for upcoming COOP version: "server.zip\gamemodes\gpm_coop\128\gameplayobjects .con"
  • Open the 'gameplayobjects.con' file (preferably with a good editor like Notepad++, shown in pics). Search for the line noted by LangMaster: "ObjectTemplate.setOnlyForAI" (*pro tip: CTRL+F and 'find all in current document')
  • Note that each one is under a section of that file pertaining to a single point. Change the ones you want, as noted by LangMaster, 1 is AI only - change this to a 0, and save. When the zip archive asks if you want to update the volume, select, YES.




SemlerPDX is offline Reply With Quote
Old 2021-05-17, 01:12   #7
PhongDaFarmer
Default Re: Can't spawn on captured flags in co-op

Hey bro, after i save all the change, it said : "Cannot rename D:\Project Reality BF2\mods\pr\levels\battle_of_ia_drang\__rzi_2968.2 1673 to D:\Project Reality BF2\mods\pr\levels\battle_of_ia_drang\server.zip"

Edit : i run the server file with winrar, and the gameplayobject.con with notepad
Edit2: Ok i figure it out, just allow the permission to modify the server file
PhongDaFarmer is offline
Last edited by PhongDaFarmer; 2021-05-17 at 01:36..
Reply With Quote
Old 2021-05-17, 09:06   #8
[R-DEV]​AlonTavor
PR:BF2 Developer
PR Server License Administrator
Default Re: Can't spawn on captured flags in co-op

I'm moving this to modding
AlonTavor is offline Reply With Quote
Old 2021-05-17, 14:34   #9
LangMaster

LangMaster's Avatar
Default Re: Can't spawn on captured flags in co-op

Anyways once these changes are done, you can run them only in local server or locked server, since it requires the server to have the changed map version with the spawn points.
But as i said earlier this would require to map go live by R - Dev team into core game for it to be playble by everyone on a public server.
Map makers keep those spawn points for AI Only since it makes the game much more easier, even though there are some map layers usually and infantry layers have spawns enabled even for humans.

LangMaster is offline Reply With Quote
Old 2021-05-24, 12:08   #10
Operator_Max1993
Default Re: Can't spawn on captured flags in co-op

Quote:
Originally Posted by SemlerPDX View Post
Okay - so, this method DOES involve changing a map file - therefore, if you do, you will be unable to join online... unless you first make a copy of the map and give it a new name. I do not have instructions prepared for that, but I can help with your question quoted above:
  • Find the mission you want to play in singleplayer with special 'spawn on flag' rules. Open it and navigate to the 'server.zip' file. Open this with a .zip editor, pictured is WinRAR.
  • Dive down in this file to the 'gameplayobjects.con' file - depending on the layer, the final folder will be a number specific to that map/level - in the example below, I'm using LangMaster's created map for upcoming COOP version: "server.zip\gamemodes\gpm_coop\128\gameplayobjects .con"
  • Open the 'gameplayobjects.con' file (preferably with a good editor like Notepad++, shown in pics). Search for the line noted by LangMaster: "ObjectTemplate.setOnlyForAI" (*pro tip: CTRL+F and 'find all in current document')
  • Note that each one is under a section of that file pertaining to a single point. Change the ones you want, as noted by LangMaster, 1 is AI only - change this to a 0, and save. When the zip archive asks if you want to update the volume, select, YES.





ok FINALLY found it (sorry i was so impatient)
so i'm editing the objecttemplate for Assault On Grozny

and for some reason i can't edit the numbers on the files

"cannot replace text, the current document is read only"
Operator_Max1993 is offline Reply With Quote
Reply

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



All times are GMT. The time now is 05:58.