Page 1 of 1
Can't spawn on captured flags in co-op
Posted: 2021-04-17 20:03
by 3bwii
It seems like flags for Co-op are set to AI only, this thread describes my exact problem:
https://www.realitymod.com/forum/showth ... p?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?
Re: Can't spawn on captured flags in co-op
Posted: 2021-04-17 20:38
by AlonTavor
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.
Re: Can't spawn on captured flags in co-op
Posted: 2021-04-17 21:54
by 3bwii
AlonTavor wrote: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
Re: Can't spawn on captured flags in co-op
Posted: 2021-04-21 06:37
by LangMaster
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.
Re: Can't spawn on captured flags in co-op
Posted: 2021-05-10 20:51
by Operator_Max1993
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 ?

Re: Can't spawn on captured flags in co-op
Posted: 2021-05-11 18:34
by SemlerPDX
Operator_Max1993 wrote: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.

Re: Can't spawn on captured flags in co-op
Posted: 2021-05-17 01:12
by PhongDaFarmer
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.21673 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
Re: Can't spawn on captured flags in co-op
Posted: 2021-05-17 09:06
by AlonTavor
I'm moving this to modding
Re: Can't spawn on captured flags in co-op
Posted: 2021-05-17 14:34
by LangMaster
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.
Re: Can't spawn on captured flags in co-op
Posted: 2021-05-24 12:08
by Operator_Max1993
SemlerPDX wrote: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"
Re: Can't spawn on captured flags in co-op
Posted: 2021-05-24 12:48
by AlonTavor
Because its in a zip, and windows does not support editing files in a zip.
I have answered you in another thread. Don't waste your time modding if you don't want to do modding. Use the debug functions.
Re: Can't spawn on captured flags in co-op
Posted: 2021-05-24 17:29
by SemlerPDX
Operator_Max1993 wrote: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"
Get a better .zip editor then...
SemlerPDX wrote:...
Open this with a .zip editor, pictured is
WinRAR.
Also shown, Notepad++
https://notepad-plus-plus.org/downloads/
Re: how to spawn in other flags
Posted: 2021-05-24 20:32
by Operator_Max1993
SemlerPDX wrote:The post I linked you to in my previous reply contains steps and pics on how you can find this file in a level folder and edit the game to spawn on captured flags, but then you will no longer be able to play online with these modified files, of course.
You change a value relating to a particular spawn point inside the level files, shown in my reply in that linked thread.
@Mods - Apologies, I see that this is in general discussion, was not my intent to answer a modding question in an area of the forums not dedicated to modding - I had not noticed the forum category, my bad - was just trying to point OP in the right direct to find the info he requested, and turns out that he was the person I originally responded to with the step-by-step instructions. "You can lead a horse to water..." they say
i have found out that i can use 7Zip to edit the files
so Assault On Grozny and i'm on gpm_coop
uhm
which numbers 16, 32 or 64
what do these mean and which file do i edit ?
Re: Can't spawn on captured flags in co-op
Posted: 2021-05-26 18:13
by LangMaster
Every map has it's own files.
The ones you are looking for is server.zip > gamemodes > (now it depends on what gamemode you play, i suppose you play with bots as you said offline earlier, so open coop) > (you will now see folder with number 16 32 64 128, it is a layer number 16 is infantry, 32 alternative, 64 standart, 128 large, you pick your layer what do you like to play some maps may not or have those layers) > gameplayobjects.con (can be opened with basic notepad)
Now i do recommend clicking in the upper left corner on EDIT and then FIND and paste this >
rem ********** Spawn Points **********
Into the search bar, it should put you into where the spawn points are located in the file.
As you can see there is plenty of spawnpoints, you can see their names and sometimes you can read from where the spawn point is located from the name it self.
We usually keep main bases to be spawnable so they don't contain the line that limits not being able to spawn in on other flags, if you scroll further i am sure you will find spawn points that contain this line.
ObjectTemplate.setOnlyForAI 1
It means that the spawn point is there, every flag has usually a spawn point it is just tagged as only for bots, if you remove this line the spawn point will be spawnable once you have the flag captured.
IF YOU SAVE THE FILE THESE CHANGES WILL BE ABLE TO ONLY BE PLAYED WHILE BEING OFFLINE- IF YOU PLAY ONLINE AS WELL I RECOMMEND BACKING UP THE ORIGINAL MAP FILES BEFORE EDITING SINCE THE GAME WONT LET YOU PLAY ONLINE WITH EDITED FILES.
Re: Can't spawn on captured flags in co-op
Posted: 2021-07-05 00:22
by Operator_Max1993
LangMaster wrote:Every map has it's own files.
The ones you are looking for is server.zip > gamemodes > (now it depends on what gamemode you play, i suppose you play with bots as you said offline earlier, so open coop) > (you will now see folder with number 16 32 64 128, it is a layer number 16 is infantry, 32 alternative, 64 standart, 128 large, you pick your layer what do you like to play some maps may not or have those layers) > gameplayobjects.con (can be opened with basic notepad)
Now i do recommend clicking in the upper left corner on EDIT and then FIND and paste this >
rem ********** Spawn Points **********
Into the search bar, it should put you into where the spawn points are located in the file.
As you can see there is plenty of spawnpoints, you can see their names and sometimes you can read from where the spawn point is located from the name it self.
We usually keep main bases to be spawnable so they don't contain the line that limits not being able to spawn in on other flags, if you scroll further i am sure you will find spawn points that contain this line.
ObjectTemplate.setOnlyForAI 1
It means that the spawn point is there, every flag has usually a spawn point it is just tagged as only for bots, if you remove this line the spawn point will be spawnable once you have the flag captured.
IF YOU SAVE THE FILE THESE CHANGED WILL BE ABLE TO ONLY BE PLAYED WHILE BEING OFFLINE- IF YOU PLAY ONLINE AS WELL I RECOMMEND BACKING UP THE ORIGINAL MAP FILES BEFORE EDITING SINCE THE GAME WONT LET YOU PLAY ONLINE WITH EDITED FILES.
thank you i was really confused
and sorry for not responding, i was on a really long hiatus and also had to uninstall due to very low data
Re: Can't spawn on captured flags in co-op
Posted: 2021-07-10 22:49
by LangMaster
Operator_Max1993 wrote:thank you i was really confused
and sorry for not responding, i was on a really long hiatus and also had to uninstall due to very low data
No worries, though i do recommend first to work with the editor it self, but sometimes it is way quicker to do stuff in notepad for small bugs or issues since it loads quicker.
Re: Can't spawn on captured flags in co-op
Posted: 2021-07-15 23:39
by Operator_Max1993
alright thanks for the info
also have a nice day man
Re: Can't spawn on captured flags in co-op
Posted: 2021-09-19 17:09
by Michael Z Freeman
Or just play in a squad but not as squad leader if you want to stay in the action by using the squad leader spawn point.