Author Topic: Pheno files  (Read 359 times)

Legacy_TheButterflyEffect

  • Newbie
  • *
  • Posts: 47
  • Karma: +0/-0
Pheno files
« on: July 15, 2012, 10:32:38 am »


               I am trying to make my own hak with some body part models in it to override CEP's. I'm trying to override a female human torso piece, which is numbered 24 in the toolset but I honestly cannot figure out which file to replace.

CEP's pheno files are a massive jumble mess, and several sets of files appear to be duplicates. Which files are for which armor parts? The numbers on the files do not correspond to the ones displayed in the toolset for some reason.
               
               

               
            

Legacy_Zwerkules

  • Hero Member
  • *****
  • Posts: 1997
  • Karma: +0/-0
Pheno files
« Reply #1 on: July 15, 2012, 10:58:56 am »


               The body parts are sorted by armour class, so the numbers in the filename have nothing to do with the order in which those parts appear in the toolset.
You can use the NWNExplorer to go through the body parts and find the one you wish to replace, then rename the file you want to replace that body part with to the same filename.
You'll also have to rename all the occurances of that filename in the file by the other filename.

People like the Spirted Lass or Calvin could help you more with this. Unfortunately they haven't been here lately.
               
               

               
            

Legacy_TheButterflyEffect

  • Newbie
  • *
  • Posts: 47
  • Karma: +0/-0
Pheno files
« Reply #2 on: July 15, 2012, 11:01:59 am »


               That's what I tried doing was going through the files in NWNExplorer, however for some reason all the armor parts after 099 are all textureless pure white so I can't tell them apart.
               
               

               
            

Legacy_Pstemarie

  • Hero Member
  • *****
  • Posts: 4368
  • Karma: +0/-0
Pheno files
« Reply #3 on: July 15, 2012, 11:24:17 am »


               First let's make sure you are reading the models correctly. For example, in the model number pma0_head001:

p = part model
m = sex (in this case male, f = female)
a = race (in this case halfling)
0 = phenotype (in this case Normal, the corresponding line in phenotype.2da)
head = body part
001 = bodypart number

The other race identifiers are:

a = halfling
d= dwarf
e = elf
g = gnome
h = human / half-elf
o = orc

I know CEP has several additional races but I'm not sure what they are (they will be listed in CEP's appearance.2da along with the prefix they use).

There shouldn't be any duplicates for CEP parts unless they have patched certain models, in which case these will be in whatever hak is closer to the top of the hak-list.

To replace a model all you have to do is match up the model numbers, put them into your tophak, and then add that ABOVE the CEP haks.

The toolset display of parts can be quite confusing as it sorts them by armor class based on the values assigned in whatever parts 2da that model part references. The lowest line in the parts 2da at that armor value will be the lowest number displayed in the toolset, then it will works its way through the 2da, incrementing lines as it goes. You can somewhat control this by adding decimal values to the ACBONUS column in the 2da. For example, say your 2da has four parts with the same ACBONUS value of 2.0, listed on lines 4-7 in the parts 2da. The display them in order starting with line 4, since they all have the same ACBONUS value. However, you want line 7 to display first, so you need to add a decimal value to each other line like so:

             COSTMODIFIER          ACBONUS
4           0                                     2.01
5           0                                     2.02
6           0                                     2.03
7           0                                     2.00
               
               

               


                     Modifié par Pstemarie, 15 juillet 2012 - 10:34 .