Page 1 of 4

Help me assign clothing archive numbers to the race

Posted: Mon Mar 02, 2020 4:24 pm
by King of Worms
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?

Re: Help me assign clothing archive numbers to the race

Posted: Mon Mar 02, 2020 6:06 pm
by BadLuckBurt
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.

Re: Help me assign clothing archive numbers to the race

Posted: Mon Mar 02, 2020 6:10 pm
by King of Worms
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!

Re: Help me assign clothing archive numbers to the race

Posted: Mon Mar 02, 2020 6:18 pm
by BadLuckBurt
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

Re: Help me assign clothing archive numbers to the race

Posted: Mon Mar 02, 2020 6:35 pm
by King of Worms
Interesting, thanks for info 😊

Re: Help me assign clothing archive numbers to the race

Posted: Sun Mar 22, 2020 5:42 pm
by King of Worms
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 :)

Re: Help me assign clothing archive numbers to the race

Posted: Sun Mar 22, 2020 6:14 pm
by BadLuckBurt
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.

Re: Help me assign clothing archive numbers to the race

Posted: Sun Mar 22, 2020 6:30 pm
by Hazelnut
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

Re: Help me assign clothing archive numbers to the race

Posted: Sun Mar 22, 2020 7:38 pm
by King of Worms
Thank you, found the answer in the template link :)

Re: Help me assign clothing archive numbers to the race

Posted: Sun Mar 22, 2020 7:53 pm
by King of Worms
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 :)