Difference between revisions of "Talk:ArmorAddon"

From Creation Kit
Jump to: navigation, search
m
(Reverse-engineering: figured out how skin texture swap lists are indexed)
 
(One intermediate revision by the same user not shown)
Line 34: Line 34:
  
 
[[User:Darkconsole|Darkconsole]] ([[User talk:Darkconsole|talk]]) 2018-05-18T02:11:05 (EDT)
 
[[User:Darkconsole|Darkconsole]] ([[User talk:Darkconsole|talk]]) 2018-05-18T02:11:05 (EDT)
 +
 +
== Reverse-engineering ==
 +
 +
Don't take anything in here as 100% confirmed yet so much as areas for further research.
 +
 +
Disassembly indicates that the "skin texture swap lists" might not be used if they are initially empty. There are function calls in armor-addon code that only check its initial size, and not the total size (i.e. including script-added forms). One such call is made at 0x004A1C50. [[User:DavidJCobb|DavidJCobb]] ([[User talk:DavidJCobb|talk]]) 2019-12-01T16:41:04 (EST)
 +
 +
:The skin texture swap lists are divided by their entries. The game accesses the ''n''th entry where ''n = ((actor weight / 101) * c) & 255'' and ''c'' is the number of non-script-added forms in the FormList. So if the list has five forms, then the game will swap texturesets roughly at each 20% weight increment. [[User:DavidJCobb|DavidJCobb]] ([[User talk:DavidJCobb|talk]]) 2019-12-01T16:46:51 (EST)

Latest revision as of 2019-12-01T16:46:51

Clarification

So, what exactly does it do? I'm still kind of confused about it. Think it needs clarification on what exactly it does and what purpose it really servers. Anybody already looking into it? --Drmccoy 06:17, 8 February 2012 (EST)

Notes about Skin Texture

Skin Texture seems to deal exclusively with overriding the nif textures with another texture. No humanoid race actually needs this set to anything because they use the same base texture but with tints applied to set skintone. Beast races are the only ones that require Skin Texture because they use completely different textures, as opposed to just tints. Setting this to anything overrides the body texture displayed in any circumstance, nude as well as exposed skin when wearing armor and clothing.

most folks may know this but I wanted to make a note of it for those who may be wondering.

Texture Sets on First Person Models

So you know how you can set texture set replacements for each nif you select for each shape? This is working fine for the third person model I can replace this dress shape textures with various texture sets to change its colour, but for some reason these changes do not seem to be saved for the /first/ person models. This case I can change it, and I see the texture swap in the nif preview, and if I close the dialog and re-open it I still see the texture swap. But when I save the ESP, close CK, and reopen it, the texture swap for that model is gone, while the third person model retained it. --Darkconsole (talk) 2016-03-28T17:58:57 (EDT)

i can confirm that it does save the texture set. but it seems it does not /load/ it back. i can confirm by inspecting the esp with tesvedit. i want to say the game is not loading it either, but i need to re-confirm that.

ck not loading texset tesvedit showing texset exists. --Darkconsole (talk) 2016-03-28T19:06:41 (EDT)

Priority Field

I had an ArmorAddon that only had a NIF in the Female field, and the priorities did not seem to work. After putting the number in the male field (but still leaving the path to the NIF blank) the priorities started having an effect. This is not the first time I have had to do this, so my observation is that priorities only work when you fill the number in the male field.

  • Example Helmet + Circlet: Male Model Empty, Male Priority Default 0 | Female Model NIF, Female Priority 5
  • Example Circlet: Male Model Empty, Male Priority 0 | Female Model NIF, Female Priority 10

Result, The helmet always wins, even though testing upon a female actor.

  • Example Helmet + Circlet: Male Model Empty, Male Priority Default 5 | Female Model NIF, Female Priority 5
  • Example Circlet: Male Model Empty, Male Priority 10 | Female Model NIF, Female Priority 10

Result, The circlet replaces the default one on the helmet for both sexes.

Darkconsole (talk) 2018-05-18T02:11:05 (EDT)

Reverse-engineering

Don't take anything in here as 100% confirmed yet so much as areas for further research.

Disassembly indicates that the "skin texture swap lists" might not be used if they are initially empty. There are function calls in armor-addon code that only check its initial size, and not the total size (i.e. including script-added forms). One such call is made at 0x004A1C50. DavidJCobb (talk) 2019-12-01T16:41:04 (EST)

The skin texture swap lists are divided by their entries. The game accesses the nth entry where n = ((actor weight / 101) * c) & 255 and c is the number of non-script-added forms in the FormList. So if the list has five forms, then the game will swap texturesets roughly at each 20% weight increment. DavidJCobb (talk) 2019-12-01T16:46:51 (EST)