Modding player_traits

A new story begins...
The sequel to a real classic: Panzer Corps is back!

Moderator: Panzer Corps 2 Moderators

Post Reply
spotlight2001
Corporal - 5 cm Pak 38
Corporal - 5 cm Pak 38
Posts: 44
Joined: Thu Oct 15, 2020 8:53 pm

Modding player_traits

Post by spotlight2001 »

Hi,

I want to add/modify player_traits
f.e.: ArtilleryGeneral -25% core cost
or change values of InfantryGeneral
how can i do that?

in ...\Panzer Corps 2\PanzerCorps2\Content\DataRules.json
I have found:

Code: Select all

	"player_traits_costs" : {
		"AntiAirVeteran" : 2,
		"AuxiliaryForce" : 1,
		"BadLuck" : -1,
		"BattleAcademy" : 2,
		"ChaoticFire" : -1,
		"CombinedArms" : 1,
		"DeadlyGrasp" : 1,
		"DeepRecon" : 1,
		"DelayedReinforcements" : -2,
		"FearOfUnknown" : -1,
		"FlexibleCommand" : 1,
		"Forgetfulness" : -1,
		"GreenArmy" : -3,
		"IndustryConnections" : 1,
		"InefficientSupply" : -1,
		"IneptLogistics" : -2,
		"InfantryGeneral" : 2,
		"KillerTeam" : 2,
		"Liberator" : 2,
		"MasterOfBlitzkrieg" : 1,
		"NoAirForce" : -3,
		"NoArtillery" : -3,
		"NoOverstrength" : -2,
		"Notorious" : -1,
		"OperationalInitiative" : 1,
		"PanzerGeneral" : 2,
		"PerimeterControl" : 1,
		"PoorGroundControl" : -3,
		"PoorMaintenance" : -2,
		"Reckless" : -1,
		"Retrograde" : -2,
		"SlowModernization" : -2,
		"TrenchSlog" : -2,
		"TrophiesOfWar" : 2,
		"MeticulousPlanning" : 2,
		"ForceConcentration" : 1,
		"TerrainExpert" : 1,
		"AggressiveDeployment" : 2,
		"Arrogant" : -1,
		"ForceDispersion" : -2,
		"Ruthless" : -1,
		"SlowReaction" : -2,
		"OldGuard": 1
	},
When I make a full text search over pc2 dir I only find ocurrences of player traits in non csv/json files like *PanzerCorps.pdb which is some binary format

Any hints?
Grondel
Brigadier-General - 15 cm Nblwf 41
Brigadier-General - 15 cm Nblwf 41
Posts: 1919
Joined: Mon Aug 04, 2014 10:07 pm

Re: Modding player_traits

Post by Grondel »

spotlight2001 wrote: Thu Jan 04, 2024 1:31 pm Hi,

I want to add/modify player_traits
Any hints?
To change/modify/create player traits we would need the unreal tables to acces the Uassets where those things are hardcoded. I doubt we will get those anytime soon. Maybe when a mod-kit is released.

The only thing u can change/mod about the traits is the points needed or gained from choosing them.

sers,
Thomas
Post Reply

Return to “Panzer Corps 2”