Has anyone been able to successfully change Unit/Hero Traits in the game files?
I'm asking because I want a make an amphibious tank using the "RiverCrossing" trait (I assume this trait would allow a unit to cross both minor and major rivers). Unfortunately, this trait appears to be broken and I cannot get it to work properly. This has forced me to use the "BridgeEngineer" trait, but I don't like using this trait because it allows the amphibious tank to be exploited for unintended purposes. Any help would be greatly appreciated. Thanks - R2 Out
Changing Unit/Hero Traits
Moderator: Panzer Corps 2 Moderators
Re: Changing Unit/Hero Traits
As it stands right now (1.1.14 for me) RiverCrossing is NOT working. This exists in game but it does not do anything. Perhaps in the future the developers will use it.
Altering unit traits does not work programmatically (meaning lua programming). After you change the unit, some kind of function overwrites the change with the "default" settings (meaning the traits from Units.csv) so lua changes are pointless at this time.
We don't know where and how the data about units, heroes etc is stored in memory, we don't know anything about changing that, there is no documentation for proper lua programming and in general the feeling I get is we are not really allowed to change anything via lua.
No idea why but it's how it is.
I think somewhere on the forums there was a discussion about the developers opening access to the game assets/core (but don't quote me on that) but for now .... nope.
Only if you would have that level of access and if you invested time to learn the game software infrastructure (inner workings) would you be able to change the River Crossing to work, and it would be a very difficult task to do so!
Altering unit traits does not work programmatically (meaning lua programming). After you change the unit, some kind of function overwrites the change with the "default" settings (meaning the traits from Units.csv) so lua changes are pointless at this time.
We don't know where and how the data about units, heroes etc is stored in memory, we don't know anything about changing that, there is no documentation for proper lua programming and in general the feeling I get is we are not really allowed to change anything via lua.
No idea why but it's how it is.
I think somewhere on the forums there was a discussion about the developers opening access to the game assets/core (but don't quote me on that) but for now .... nope.
Only if you would have that level of access and if you invested time to learn the game software infrastructure (inner workings) would you be able to change the River Crossing to work, and it would be a very difficult task to do so!
-
Stormchaser
- Staff Sergeant - StuG IIIF

- Posts: 263
- Joined: Mon Sep 07, 2020 1:38 am
Re: Changing Unit/Hero Traits
I've been making do with giving them the River Assault Hero Trait. It doesn't help at all with big rivers and doesn't speed up crossing small rivers, but it negates the penalties of being attacked while on a river which I feel is good enough for now.
Re: Changing Unit/Hero Traits
@ rubycando
That's unfortunate! I hope the Devs will toss us a bone and fix the RiverCrossing trait to waltz across major and minor rivers. This would make for a great Unit/Hero Trait to improve strategic diversity.
@ Stormchaser
I thrive on historical accuracy and can't settle for the RiverAssualt trait in this role. DD Shermans and Tauchpanzers were used to cross major rivers for important offensives. I'll have to accept the BridgeEngineer for now.
Thanks - R2 Out
That's unfortunate! I hope the Devs will toss us a bone and fix the RiverCrossing trait to waltz across major and minor rivers. This would make for a great Unit/Hero Trait to improve strategic diversity.
@ Stormchaser
I thrive on historical accuracy and can't settle for the RiverAssualt trait in this role. DD Shermans and Tauchpanzers were used to cross major rivers for important offensives. I'll have to accept the BridgeEngineer for now.
Thanks - R2 Out
-
Stormchaser
- Staff Sergeant - StuG IIIF

- Posts: 263
- Joined: Mon Sep 07, 2020 1:38 am
Re: Changing Unit/Hero Traits
That's perfectly fair. To each to their own after all. Part of the reason I went with River Assault in the first place was to differentiate amphibious tanks from Bruckenpanzers and other Bridging Tanks, but I can fully understand swinging the other way to better represent what they were capable of and just not use them as bridges.

