Re-texturing garments is a very popular way to edit the client and can be as easy or hard as you want it to be. This will focus on the NON artist route of simply locating, re-coloring and adding it to the client as a new item.
Find a garment to re-color
If you haven't already, extract any packed client assets (refer to section 1) and if needed, download my model viewer.
For this example we will be using dark wizard.
Step 1: Find the ItemID from itemtype.dat (decrypt it): 181355 DarkWizard
Step 2: Find the Armor.ini entry
Replace the last digit with 0 for garments (they dont have quality). If its a gender specific garment there should be 2 entries, if not there should be 4.
1 = small female
2 = large female
3 = small male
4 = large male
Quote:
[1181350]
Part=1
Mesh0=1137370
Texture0=1137370
MixTex0=0
MixOpt0=0
Asb0=5
Adb0=6
Material0=Default
[2181350]
Part=1
Mesh0=2137370
Texture0=1137370
MixTex0=0
MixOpt0=0
Asb0=5
Adb0=6
Material0=Default
[3181350]
Part=1
Mesh0=3137370
Texture0=3137370
MixTex0=0
MixOpt0=0
Asb0=5
Adb0=6
Material0=Default
[4181350]
Part=1
Mesh0=4137370
Texture0=3137370
MixTex0=0
MixOpt0=0
Asb0=5
Adb0=6
Material0=Default
|
Step 3: Search 3dtexture.ini for the TextureID
Quote:
001137370=c3/texture/001137370.dds
003137370=c3/texture/003137370.dds
|
Step 4: BACK UP THE TEXTURE FILE!!!
You might fuck it up. Save a copy first.
Step 5: Open the texture to edit, make your edits, save.
You can use gimp, phtoshop or any other editor with .dds support. If you cannot find the texture at the path listed, likely you haven't extracted all your client files as mentioned in section 1.
Protip - the color replace tool in phtoshop is AMAZING for quickly changing the color of a garment. Here's a 2 second example of what I did to female darkwizard.
Step 5: Preview your changes
Use the model viewer or load the model in game to see how it looks.
Step 6: Create a new item
Create a new item in itemtype.dat. The ID of the garment must be unique (if the client has multiple dark wizards, just replace one of them)
Create or edit the armor.ini entry to reference a new textureID
Create or edit the 3dtexture.ini entry to reference the new .dds file
Create or edit the ani/ItemMinIcon.ani entry so you have an item icon for it in your inventory
Create or edit the ani/MapItemIcon.ani entry so you have an item icon for it on the ground
Add the new item to your server's ItemType table so that its an actual item
Congratz! You've just re-colored your first garment so that it looks different WITHOUT destroying the one you already have. Pack up all the edited files into a patch and send to your players.
Obviously if you wanted to be fancy you can paint something completely different ontop of the garment but currently there is no way to change the shape of the garment itself. There is no public .c3 export tool that works with garments that I've seen.
Pro tip: Edit the alpha layer to delete parts of the mesh. Does it have wings or a super long piece of cloth? Click the alpha layer in photoshop to set it to transparent and it wont show in game!