Can't spawn on captured flags in co-op
-
- Posts: 2
- Joined: 2012-08-14 14:50
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/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?
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?
-
- PR:BF2 Developer
- Posts: 2991
- Joined: 2009-08-10 18:58
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.
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.
-
- Posts: 2
- Joined: 2012-08-14 14:50
Re: Can't spawn on captured flags in co-op
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
-
- PR:BF2 Contributor
- Posts: 176
- Joined: 2020-10-11 03:15
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.
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.
-
- Posts: 114
- Joined: 2021-03-25 20:40
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 ?![M1helmet :m1helmet:](./images/smilies/imported_m1helmet.gif)
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 ?
![M1helmet :m1helmet:](./images/smilies/imported_m1helmet.gif)
-
- Posts: 530
- Joined: 2011-01-16 21:49
- Contact:
Re: Can't spawn on captured flags in co-op
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: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 ?![]()
- 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.
![Image](https://i.imgur.com/7alqrUD.png)
![Image](https://i.imgur.com/Xn8wKuw.png)
-
- Posts: 1
- Joined: 2021-05-17 01:03
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.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
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
Last edited by PhongDaFarmer on 2021-05-17 01:36, edited 3 times in total.
-
- PR:BF2 Developer
- Posts: 2991
- Joined: 2009-08-10 18:58
Re: Can't spawn on captured flags in co-op
I'm moving this to modding
-
- PR:BF2 Contributor
- Posts: 176
- Joined: 2020-10-11 03:15
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.
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.
![Image](https://i.imgur.com/sx27EoA.png)
-
- Posts: 114
- Joined: 2021-03-25 20:40
Re: Can't spawn on captured flags in co-op
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"
-
- PR:BF2 Developer
- Posts: 2991
- Joined: 2009-08-10 18:58
Re: Can't spawn on captured flags in co-op
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.
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.
-
- Posts: 530
- Joined: 2011-01-16 21:49
- Contact:
Re: Can't spawn on captured flags in co-op
Get a better .zip editor then...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"
SemlerPDX wrote:...
Open this with a .zip editor, pictured is WinRAR.
Also shown, Notepad++ https://notepad-plus-plus.org/downloads/
-
- Posts: 114
- Joined: 2021-03-25 20:40
Re: how to spawn in other flags
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 ?
-
- PR:BF2 Contributor
- Posts: 176
- Joined: 2020-10-11 03:15
Re: Can't spawn on captured flags in co-op
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.
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.
Last edited by LangMaster on 2021-07-17 11:44, edited 1 time in total.
![Image](https://i.imgur.com/sx27EoA.png)
-
- Posts: 114
- Joined: 2021-03-25 20:40
Re: Can't spawn on captured flags in co-op
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
-
- PR:BF2 Contributor
- Posts: 176
- Joined: 2020-10-11 03:15
Re: Can't spawn on captured flags in co-op
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.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
![Image](https://i.imgur.com/sx27EoA.png)
-
- Posts: 114
- Joined: 2021-03-25 20:40
Re: Can't spawn on captured flags in co-op
alright thanks for the info
also have a nice day man
also have a nice day man
-
- Posts: 240
- Joined: 2009-03-27 18:45
Re: Can't spawn on captured flags in co-op
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.
![Image](https://files.michaelzfreeman.org/pr_mzf.png)