• Please note that we've updated the Mount & Blade II: Bannerlord save file system which requires you to take certain steps in order for your save files to be compatible with e1.7.1 and any later updates. You can find the instructions here.

BL Coding How does Troop face generation work in the Encyclopedia?

Users who are viewing this thread

Bluko88

Regular
An odd pet peeve of mine has been how Troops appear in the Encyclopedia. For the longest time I assumed there was a fixed troop model hiding somewhere.

However in the process of messing with spnpccharacters.xml I learned that's not quite the case. Obviously all their equipment, etc. comes from spnpccharacters and that changed as expected. I know the models for troops on the battlefield are also randomly generate based on conditions in sandboxcore_bodyproperties.xml

i.e. all Vlandian Troop appearance is governed by fighter_vlandia

Code:
<BodyProperty id="fighter_vlandia">
    <BodyPropertiesMin version="4"
      age="24.29"
      weight="0.162"
      build="0.3657"
      key="00000007800000800160000000114151100471100000100021111101800101000055200305111101000000000000000000000000000000000000000000A00000" />
    <BodyPropertiesMax version="4"
      age="39.62"
      weight="0.733"
      build="0.5651"
      key="0013C80E40003406EF8FFFFFEEEEFEFDEFFE8EEFEEE6EEEDEDFFEEEE8EFEFFFE07BAB0780BEFEEEF000000000000000000000000000000000000000067789105" />
  </BodyProperty>

But what exactly determines how the Troop Model Face appears in the Encyclopedia? Just wondering in case I should ever create my own Troop line and I wanted to tailor their appearance. Truthfully I haven't the faintest clue what the face key is and how I would manipulate the value of it. I'd be interested to know if there was a way to create a key range that say excluded beards entirely or just the opposite - i.e. every single troop has facial hair of some kind.

I tried pasting these in the Character Creator, but doesn't seem to like it.

Thanks!
 
Maybe you should open the talesworld.Campaign.dlls and search for "Bodyproperties" , "StaticBodyProperties" and "FaceGen" since this key will be split in 8 Parts and than it will be converted from hexadecimal into an integer or ulong. Sry but cant put the effort in it to sort these 8 keyparts out in what is what.
 
Upvote 0
Top Bottom