Modding:Textures

First you are going to need a unit to edit. In this example we will use the Guardsman.

Required Software
1. XML editing program. Notepad++ was used to create this guide.

2. DDS editing program. Paint.net was used to create this guide.

Required Files
\Warhammer 40000 Gladius - Relics of War\Data\World\Units\AstraMilitarum\Guardsman.xml \Warhammer 40000 Gladius - Relics of War\Data\Video\Materials\Units\AstraMilitarum\Guardsman.xml \Warhammer 40000 Gladius - Relics of War\Data\Video\Textures\Units\AstraMilitarum\GuardsmanDiffuse.dds \Warhammer 40000 Gladius - Relics of War\Data\Video\Textures\Units\AstraMilitarum\GuardsmanSIC.dds

Step One: Opening the Diffuse Texture
First you want to open the GuardsmanDiffuse.dds file in Paint.net



Step Two: Editing the Diffuse Texture
Make the changes you want to the file. In this example we want to add a white stripe to the helmet of the Guardsman to make them look like conscripts.



The file will be saved as ConscriptDiffuse.dds in the \Warhammer 40000 Gladius - Relics of War\Data\Video\Textures\Units\AstraMilitarum\ Directory.

Make sure to save the file with these settings:

- DXT3 (Explicit Alpha) - Cluster fit (Slow/HQ) - Perceptual - Generate Mip Maps - Fant

Step Three: Open the SIC Texture
Open the GuardsmanSIC.dds file in Paint.net



Step Four: Layering
Now you want to open the Conscript.dds file as a layer on top of the GuardsmanSIC file, and set it's transparency to something low.

It should look something like this.



Step Five: Editing the SIC Texture
Carefully trace out the changes you made in the Conscript.dd file onto the with the shading colour desired. There is some trial and error here, but using darker colours on the SIC file will make the colours on the Diffuse texture show up in-game with less shading applied. In this example we traced our changes using the the colour:290000, black:000000 should also work.



The file will be saved as ConscriptSIC.dds in the \Warhammer 40000 Gladius - Relics of War\Data\Video\Textures\Units\AstraMilitarum\ Directory.

Make sure to save the file with these settings and delete the extra layer you put:

- DXT3 (Explicit Alpha) - Cluster fit (Slow/HQ) - Perceptual - Generate Mip Maps - Fant

Step Six: Editing the Material File
Open the file: \Warhammer 40000 Gladius - Relics of War\Data\Video\Materials\Units\AstraMilitarum\Guardsman.xml in Notepad++

You should see this:

    

Change GuardsmanDiffuse and GuardsmanSIC to ConscriptDiffuse and ConscriptSIC respectively. The file should look like this:

    

Save this file as Conscript.xml in the \Warhammer 40000 Gladius - Relics of War\Data\Video\Materials\Units\AstraMilitarum\ Directory.

Step Seven: Editing the Unit File
Open the file \Warhammer 40000 Gladius - Relics of War\Data\World\Units\AstraMilitarum\Guardsman.xml in Notepad++

Locate the lines:



Change the reference material="Units/AstraMilitarum/Guardsman" to material="Units/AstraMilitarum/Conscript"

It should look like this:



Step 8: Testing and Troubleshooting
You should now be able to see the unit changes in game!

Please note in this example, an entirely new unit was created previously, however the method of texture editing will apply to modifying or creating any unit.