Page 1 of 1
Editing Faction\Civilian Logic
Posted: 2016-07-22 17:25
by X-Alt
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?
Re: Editing Faction\Civilian Logic
Posted: 2016-07-22 21:31
by rPoXoTauJIo
Python. You have to:

Re: Editing Faction\Civilian Logic
Posted: 2016-07-23 02:47
by X-Alt
NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
brb hiring groho
Re: Editing Faction\Civilian Logic
Posted: 2016-07-23 22:01
by X-Alt
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?
Re: Editing Faction\Civilian Logic
Posted: 2016-07-23 23:03
by rPoXoTauJIo
Check in python configs those lines:
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' ]
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.
Re: Editing Faction\Civilian Logic
Posted: 2016-07-24 00:36
by X-Alt
rPoXoTauJIo wrote:Check in python configs those lines:
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' ]
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.
Just edit that line in the server files?
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.
Re: Editing Faction\Civilian Logic
Posted: 2016-07-24 09:24
by Mats391
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
Re: Editing Faction\Civilian Logic
Posted: 2016-07-24 15:27
by X-Alt
That was easy.
Thanks fam