Help me assign clothing archive numbers to the race

Discuss modding questions and implementation details.
User avatar
King of Worms
Posts: 3055
Joined: Mon Oct 17, 2016 11:18 pm
Location: Scourg Barrow (CZ)
Contact:

Help me assign clothing archive numbers to the race

Post by King of Worms » Mon Mar 02, 2020 4:24 pm

Come on guys, show your skills! Please :)

It appears there are only 8 variants, which is good. Same for the armors. I was affraid it will be 16
Note to self: Same color mean same offsets, only minor changes in the masking

EDIT: Thanks BadLuckBurt!

Female
235 - Argonian
236 - Elf
237 - Human

238 - Khajiit

Male - all different offsets :cry: Why? :o
239 - Argonian
240 - Elf
241 - Human
242 - Khajiit


What a f mess this whole system is :X And its absolutely unnecessary. Those human bodies have just so slightly different heights, and the armors look the same, same as clothing.

In a normal world, there would be
1 set for all males
1 set for all females
1 set for all argonian and khajiit male
1 set for all argonian and khajiit female

Who in their right mind created this in 1996? Why?
Last edited by King of Worms on Mon Mar 02, 2020 7:16 pm, edited 4 times in total.

BadLuckBurt
Posts: 433
Joined: Sun Nov 05, 2017 8:30 pm

Re: Help me assign clothing archive numbers to the race

Post by BadLuckBurt » Mon Mar 02, 2020 6:06 pm

They probably created that system because the intent was to give different sets of clothes based on race but as with way too many things in Daggerfall, they never got around to it. The framework is there though so if anyone is ever brave enough to make new clothing sprites, we can have race-based fashion.

Anyway, to answer your question, these are the offsets that are used when clothing is created in the ItemBuilder.cs:

Code: Select all

BodyMorphology.Argonian = 0
BodyMorphology.Elf = 1
BodyMorphology.Human = 2
BodyMorphology.Khajiit = 3
This matches the archives you listed, the first one with tail space is Argonian, the second set is Elf, third set is Human and lastly, fourth is the Khajiits. It holds true for both male and female sets.

User avatar
King of Worms
Posts: 3055
Joined: Mon Oct 17, 2016 11:18 pm
Location: Scourg Barrow (CZ)
Contact:

Re: Help me assign clothing archive numbers to the race

Post by King of Worms » Mon Mar 02, 2020 6:10 pm

BadLuckBurt wrote:
Mon Mar 02, 2020 6:06 pm
They probably created that system because the intent was to give different sets of clothes based on race but as with way too many things in Daggerfall, they never got around to it. The framework is there though so if anyone is ever brave enough to make new clothing sprites, we can have race-based fashion.

Anyway, to answer your question, these are the offsets that are used when clothing is created in the ItemBuilder.cs:

Code: Select all

BodyMorphology.Argonian = 0
BodyMorphology.Elf = 1
BodyMorphology.Human = 2
BodyMorphology.Khajiit = 3
This matches the archives you listed, the first one with tail space is Argonian, the second set is Elf, third set is Human and lastly, fourth is the Khajiits. It holds true for both male and female sets.
Thanks this saved me some time, impressive :)

Yes u are most likely right!

BadLuckBurt
Posts: 433
Joined: Sun Nov 05, 2017 8:30 pm

Re: Help me assign clothing archive numbers to the race

Post by BadLuckBurt » Mon Mar 02, 2020 6:18 pm

King of Worms wrote:
Mon Mar 02, 2020 6:10 pm
Thanks this saved me some time, impressive :)

Yes u are most likely right!
You're welcome, in the Assets/Resources folder, you can also find ItemTemplates.txt. It's a big file but it will show you exactly what texture archive is assigned to each item, including clothing. I used it to doublecheck the theory :D

User avatar
King of Worms
Posts: 3055
Joined: Mon Oct 17, 2016 11:18 pm
Location: Scourg Barrow (CZ)
Contact:

Re: Help me assign clothing archive numbers to the race

Post by King of Worms » Mon Mar 02, 2020 6:35 pm

Interesting, thanks for info 😊

User avatar
King of Worms
Posts: 3055
Joined: Mon Oct 17, 2016 11:18 pm
Location: Scourg Barrow (CZ)
Contact:

Re: Help me assign clothing archive numbers to the race

Post by King of Worms » Sun Mar 22, 2020 5:42 pm

Ha mate :)

Could u pls take a look if there are any notes on the body types somewhere in the Unity?

I need the same type of info like with the clothing, so:

Body 10 - Female nord
Body 16 - Male breton

And if theres the same for faces, like
Face 05 - Female argo
Face 15 - ...

Would help me a lot! Thanks :)

BadLuckBurt
Posts: 433
Joined: Sun Nov 05, 2017 8:30 pm

Re: Help me assign clothing archive numbers to the race

Post by BadLuckBurt » Sun Mar 22, 2020 6:14 pm

King of Worms wrote:
Sun Mar 22, 2020 5:42 pm
Ha mate :)

Could u pls take a look if there are any notes on the body types somewhere in the Unity?

I need the same type of info like with the clothing, so:

Body 10 - Female nord
Body 16 - Male breton

And if theres the same for faces, like
Face 05 - Female argo
Face 15 - ...

Would help me a lot! Thanks :)
About to head off to dinner but check out Assets/Scripts/Game/Entities/RaceTemplate.cs for the bodies, not sure about faces although they might be in there too. If not, I'll have a look later.

User avatar
Hazelnut
Posts: 2138
Joined: Sat Aug 26, 2017 2:46 pm
Contact:

Re: Help me assign clothing archive numbers to the race

Post by Hazelnut » Sun Mar 22, 2020 6:30 pm

So each body type adds a number to the archive used:

Argonian = 0,
Elf = 1,
Human = 2,
Khajiit = 3,

Female clothes start with archive 235 and male clothing with archive 239.

For the body and head images used, as Burt said all detailed in RaceTemplate.cs - https://github.com/Interkarma/daggerfal ... emplate.cs
See my mod code for examples of how to change various aspects of DFU: https://github.com/ajrb/dfunity-mods

User avatar
King of Worms
Posts: 3055
Joined: Mon Oct 17, 2016 11:18 pm
Location: Scourg Barrow (CZ)
Contact:

Re: Help me assign clothing archive numbers to the race

Post by King of Worms » Sun Mar 22, 2020 7:38 pm

Thank you, found the answer in the template link :)

User avatar
King of Worms
Posts: 3055
Joined: Mon Oct 17, 2016 11:18 pm
Location: Scourg Barrow (CZ)
Contact:

Re: Help me assign clothing archive numbers to the race

Post by King of Worms » Sun Mar 22, 2020 7:53 pm

One more thing..,

so there are archive for a weapons 233 and 234

We agreed that only 234 is actually being used by DFU
I removed 233 and everything works but:

Female left hand (where bow is equipped) is at different position than male left hand. It seems to be the same in vanilla. The weapons do not fit perfectly in that hand.

So maybe the archive 233 is actually for females? And should not be discarted but implemented instead?


Or maybe Im completely wrong,dunno :)

Post Reply