I'm in sort of a dilemma, I've made a sort of parody of the 2016 Turkey Coup on Beirut with a simple gpo edit.
Now, there's a rather big problem. I'm relying on a modified meinsurgent packed into the map folder that uses only the dropkit civilian. I've also become aware that any edited version of a faction (_ziptie, _nvg, etc) will cause it to become exempt from the ROE and thus render everything pointless.
I'm looking into solutions, one being the option to disable spawning with all kits that are not the alt medic and use plain old meins. Is that a possibility, or is there an easier way to get around this?
Editing Faction\Civilian Logic
-
rPoXoTauJIo
- PR:BF2 Developer
- Posts: 1979
- Joined: 2011-07-20 10:02
Re: Editing Faction\Civilian Logic
Python. You have to:


assetruler69: I've seen things you smurfs wouldn't believe. Apaches on the Kashan. I watched burned down tank hulls after the launch of the single TOW. All those moments will be lost in time, like tears in rain.
Time to give up and respawn.
-
X-Alt
- Posts: 1073
- Joined: 2013-07-02 22:35
Re: Editing Faction\Civilian Logic
NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
brb hiring groho
brb hiring groho
-
X-Alt
- Posts: 1073
- Joined: 2013-07-02 22:35
Re: Editing Faction\Civilian Logic
I'm curious as to whether the civ logic is controlled by both the name of the faction or only by the names of the kits?
-
rPoXoTauJIo
- PR:BF2 Developer
- Posts: 1979
- Joined: 2011-07-20 10:02
Re: Editing Faction\Civilian Logic
Check in python configs those lines:
mods/pr/game/python/realityconfig_<private|local>.py
Local for local testing but for actual game on passworded event you need private config.
I dont see any solution with using just map files edits.
Code: Select all
# Teams that have civilian logic
# Default is meinsurgent, hamas
C['CIV_TEAMS'] = [ 'meinsurgent', 'hamas' ]
#
#
# Civilian kit name
# Default is civilian, unarmed
C['CIV_KIT_NAME'] = [ 'hamas_unarmed', 'meinsurgent_unarmed', 'meinsurgent_medic_alt' ]Local for local testing but for actual game on passworded event you need private config.
I dont see any solution with using just map files edits.

assetruler69: I've seen things you smurfs wouldn't believe. Apaches on the Kashan. I watched burned down tank hulls after the launch of the single TOW. All those moments will be lost in time, like tears in rain.
Time to give up and respawn.
-
X-Alt
- Posts: 1073
- Joined: 2013-07-02 22:35
Re: Editing Faction\Civilian Logic
Just edit that line in the server files?rPoXoTauJIo wrote:Check in python configs those lines:mods/pr/game/python/realityconfig_<private|local>.pyCode: Select all
# Teams that have civilian logic # Default is meinsurgent, hamas C['CIV_TEAMS'] = [ 'meinsurgent', 'hamas' ] # # # Civilian kit name # Default is civilian, unarmed C['CIV_KIT_NAME'] = [ 'hamas_unarmed', 'meinsurgent_unarmed', 'meinsurgent_medic_alt' ]
Local for local testing but for actual game on passworded event you need private config.
I dont see any solution with using just map files edits.
I have zero knowledge on what the BF2 server files contain.
Is it just a copy of this? I'd assume there wouldn't be a real need to distribute the edited file to the client.
Last edited by X-Alt on 2016-07-24 00:42, edited 1 time in total.
- Mats391
- PR:BF2 Lead Developer
- Posts: 7643
- Joined: 2010-08-06 18:06
Re: Editing Faction\Civilian Logic
Go to pr(_edit)/python/game/realityconfig_private.py
Find the lines groho posted
Add your new created team to CIV_TEAMS, e.g. "coup"
Add the kits you want to be considered civilians to CIV_KIT_NAME, e.g. "coup_unarmed" for drop kit
Remember to keep everything lowercase. There is no other way of doing it through map files, we do not support any level based python files right now. Since any server running this map would have to be passworded anyway, just use the realityconfig_private
Find the lines groho posted
Add your new created team to CIV_TEAMS, e.g. "coup"
Add the kits you want to be considered civilians to CIV_KIT_NAME, e.g. "coup_unarmed" for drop kit
Remember to keep everything lowercase. There is no other way of doing it through map files, we do not support any level based python files right now. Since any server running this map would have to be passworded anyway, just use the realityconfig_private

Mineral: TIL that Wire-guided missiles actually use wire
-
X-Alt
- Posts: 1073
- Joined: 2013-07-02 22:35
Re: Editing Faction\Civilian Logic
That was easy.
Thanks fam
Thanks fam
