(06-07-2021, 05:43 AM)zaxhutchinson Wrote: Thanks for the reply! That's helpful and cleared up a potential bug in my code.
Yeah, I'm assuming there's a hardcoded link between nationality and side which differs per PzC title. Although it really isn't nationality. It's more like army command structure (e.g. SS being separate from Wehrmacht)
I would be surprised if the engine walks through the oob every time it needs a parent name. It's probably stored with the data during runtime. Seems a coding decision to avoid having to put in the parent for each record.
The term "nationality" in PzC is a little unusual. I do know there is a hardcoded "set" of nationalities in the PzC (and maybe Modern Campaigns?) series. That's why some games use strange nationality designations. Like in France '40, the handful of Luxembourg units are designated as West-German in the .oob and the Units folder. Non-fragile French troops are "South-Korean". Even though German-SS and Luftwaffe are not "nationalities" per se, I think they have to be designated that way to allow for having the different style counters. Same with the non-fragile morale French units; although there's no visible difference between the counters, fragile morale is an attribute assigned to a "nationality". So the term "nationality" encompasses a number of different characteristics.