Face code

Users who are viewing this thread

killop5

Sergeant Knight
Which of these numbers is the face code in troops.txt (or is that not where you edit it)

Code:
trp_kingdom_1_lord King_Harlaus Kingdom_1_Lord 16 0 0 14 0 0
  119 0 414 0 135 0 145 0 214 0 132 0 292 0 379 0 256 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 
  20 20 15 25 41
 230 248 248 221 247 244 0
912 1610612736 80 87 421888 0 
  65582403845 2601617320843847785 2005041 0 67645760199 7916447985573822463 2031036 0

i need to rrename the lords and for one change the gender, so I dont want a mans face :eek:
 
killop5 said:
Which of these numbers is the face code in troops.txt (or is that not where you edit it)

Code:
trp_kingdom_1_lord King_Harlaus Kingdom_1_Lord 16 0 0 14 0 0
  119 0 414 0 135 0 145 0 214 0 132 0 292 0 379 0 256 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 
  20 20 15 25 41
 230 248 248 221 247 244 0
912 1610612736 80 87 421888 0 
  65582403845 2601617320843847785 2005041 0 67645760199 7916447985573822463 2031036 0

i need to rrename the lords and for one change the gender, so I dont want a mans face :eek:

It is very hard, if not undoable, via text editing. Recommend the modulesystem in combination with jik's tutorial.
 
cough... JIK... cough

The module system is a lot easier to read, and face codes and gender are a snap.
 
killop5 said:
ok So I guess its in Module_Troops

Ok I did it thanks

Step by step:

1. Enable edit mode.
2. Open the face editor ingame.
3. Hit Ctrl-E
4. Create the head you wish
5. Copy the above code (it's the face code)
6. Close MnB


Swadian Peasant (example):

  ["swadian_recruit","Swadian Recruit","Swadian Recruits",tf_guarantee_armor,0,0,fac_neutral,
  [itm_scythe,itm_hatchet,itm_pickaxe,itm_club,itm_stones,itm_tab_shield_heater_a,itm_leather_cap,itm_felt_hat,itm_felt_hat,
    itm_shirt,itm_coarse_tunic,itm_leather_apron,itm_nomad_boots,itm_wrapping_boots],
  def_attrib|level(4),wp(60),knows_common,swadian_face_younger_1, swadian_face_middle_2],

The lower limit of his face codes (lowest slider settings in the editor) is called swadian_face_younger_1, the upper limit ..._2.

7. You can: directly paste the code in the unit code
8. Or: save it as a variable next to the others:



Example:

swadian_face_younger_1 = 0x0000000000000001124000000020000000000000001c00800000000000000000

Pretty obvious, you then don't constantly need to bother yourself with those face codes.
 
ok So this:

(I know the "King part is miss spelt but i'm gonna change it to Queen Boudica (that is if you have to)

Code:
["kingdom_2_lord",  "King Yaroleck",  "Kingdom 2 Lord",  tf_hero, 0,reserved,  fac_kingdom_2,[itm_hunter,    itm_courtly_outfit,      itm_leather_boots,              itm_mail_chausses,              itm_heraldic_mail_with_surcoat, itm_gauntlets,      itm_military_pick,      itm_tab_shield_kite_cav_b,      itm_helmet_with_neckguard],    knight_attrib_5,wp(220),knight_skills_5|knows_trainer_4, 0x0000000193000007371c4c8899662adb00000000001f471e0000000000000000, vaegir_face_old_2],

To this

Code:
["kingdom_2_lord",  "Queen Boudica",  "Kingdom 2 Lord",  tf_hero, 0,reserved,  fac_kingdom_2,[itm_hunter,    itm_courtly_outfit,      itm_leather_boots,              itm_mail_chausses,              itm_heraldic_mail_with_surcoat, itm_gauntlets,      itm_military_pick,      itm_tab_shield_kite_cav_b,      itm_helmet_with_neckguard],    knight_attrib_5,wp(220),knight_skills_5|knows_trainer_4, 0x00000000000020070a2269f919dee11700000000001cc57d0000000000000000, vaegir_face_female_1],


Or this;

Code:
["kingdom_2_lord",  "Queen Boudica",  "Kingdom 2 Lord",  tf_hero, 0,reserved,  fac_kingdom_2,[itm_hunter,    itm_courtly_outfit,      itm_leather_boots,              itm_mail_chausses,              itm_heraldic_mail_with_surcoat, itm_gauntlets,      itm_military_pick,      itm_tab_shield_kite_cav_b,      itm_helmet_with_neckguard],    knight_attrib_5,wp(220),knight_skills_5|knows_trainer_4, 0x00000000000020070a2269f919dee11700000000001cc57d0000000000000000, vaegir_face_old_2],
 
killop5 said:
...

Code:
["kingdom_2_lord",  "Queen Boudica",  "Kingdom 2 Lord",  tf_hero, 0,reserved,  fac_kingdom_2,[itm_hunter,    itm_courtly_outfit,      itm_leather_boots,              itm_mail_chausses,              itm_heraldic_mail_with_surcoat, itm_gauntlets,      itm_military_pick,      itm_tab_shield_kite_cav_b,      itm_helmet_with_neckguard],    knight_attrib_5,wp(220),knight_skills_5|knows_trainer_4, 0x00000000000020070a2269f919dee11700000000001cc57d0000000000000000, vaegir_face_female_1],

..

it's all pretty obvious: first one has:

0x00000000000020070a2269f919dee11700000000001cc57d0000000000000000 <-- must be a female key

as lower limit, and vaegir_face_female_1 as maximum.

The other one works the same.

Oh, one thingy: I suggest to use only one face code for hero npc's to give them the exact face you were creating in the face editor.
 
Ok I used that code, then did the build module thing, loaded up the game, but she looked like this;

000000000000000000.jpg


Anyone know what I did wrong?
 
killop5 said:
Ok I used that code, then did the build module thing, loaded up the game, but she looked like this;

000000000000000000.jpg


Anyone know what I did wrong?

forgot to give her hair?  :roll:
 
I still don't understand. Ive made new faces for the Kings, Companions, and laid out faces for the Khergits to look different in general by giving the system 2 faces to go between. I saved the module_troops.py but when i go start a new game in Native. They still look like the original people. Is there some way I have to export it or something? What am I missing?
 
thick1988 said:
I still don't understand. Ive made new faces for the Kings, Companions, and laid out faces for the Khergits to look different in general by giving the system 2 faces to go between. I saved the module_troops.py but when i go start a new game in Native. They still look like the original people. Is there some way I have to export it or something? What am I missing?

Try running the build_module.bat file first:grin: then run the game and see...
 
Back
Top Bottom