[DiscordArchive] Failing to add a new hairstyle to the game. Wil...
[DiscordArchive] Failing to add a new hairstyle to the game. Wil...
Archived author: Aristotel • Posted: 2025-07-06T06:39:26.415000+00:00
Original source
Managed to finally do it! Turns out I was mistakenly adding my new hairstyle to the CharFacialHairstyles.dbc, linking the hairstyle geoset id there.
What I learned:
1. Create a mesh for your hairstyle >rig to your armature > assign the same material as existing hairstyles > Weight Paint it to the correct bone (usually head) > Delete extra bones from vertex groups > in Object Properties assign a unique Geoset ID (unique to other existing hairstyles).
2. Modify CharHairGeosets.dbc: check which VariationIndex the race/sex you want to add the hair to has already and create a new one. In the GeosetID column choose the GeosetID from Object Properties of your .m2 model.
3.Modify CharSections.dbc: you will need to add multiple new lines here, each for every existing hair color of your character. The textures you use here can be the same as existing ones, so just copy them from relevant existing lines. Assign proper VariationIndex (from CharHairGeosets.dbc). As for flags, I used 17 and 5, the same as existing hairstyles.
3.You can also modify the BarberShopStyle.dbc for the hairstyle to appear there, but I don't think it's mandatory for the hairstyle to appear in the character creation screen
Archived author: Kaev • Posted: 2025-07-06T07:46:06.007000+00:00
Original source
Thanks for sharing the solution
Archived author: Aristotel • Posted: 2025-07-06T16:15:35.232000+00:00
Original source
Aaaand I came across another problem. The hairstyle is there, it's all good.
But when trying to create a character, it says: Error creating a character.
According to AI, it's because my client has the new hairstyle in .dbcs, but the server doesn't.
Is that correct? If yes, can someone plz guide me towards adding it to the server?
Archived author: Kaev • Posted: 2025-07-06T16:16:50.200000+00:00
Original source
You need to replace the DBC file in your server files DBC folder. There's probably a dbc folder in your server directory
Archived author: Aristotel • Posted: 2025-07-06T16:19:31.923000+00:00
Original source
I am using TsWoW, any idea where it can be?
Archived author: Kaev • Posted: 2025-07-06T16:21:37.872000+00:00
Original source
With TSWoW you usually don't modify DBCs directly. You write datascripts that will generate the needed DBC stuff for the client and server for you. Maybe the documentation is already what you need: https://tswow.github.io/tswow-wiki/docum...ripts.html
Archived author: Kaev • Posted: 2025-07-06T16:25:13.804000+00:00
Original source
If you don't wanna write a datascript (e.g. if you're an artist and you don't really care about the technical side and/or "proper" TSWoW way), you can take a look at the migration guide and check out the DBC part: https://tswow.github.io/tswow-wiki/migrating/
This way you can continue with doing it the current way you're doing (the non-TSWoW way of modding)
Archived author: Aristotel • Posted: 2025-07-06T16:29:15.150000+00:00
Original source
Thank you, will try doing it that way