Warhammer 40,000: Gladius - Relics of War Wiki
Advertisement

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

Procedure[ | ]

Step One: Opening the Diffuse Texture[ | ]

First you want to open the GuardsmanDiffuse.dds file in Paint.net


GuardsmanDiffuse

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.

ConscriptDiffuse

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

GuardsmanSIC

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.

GuardsmanSICOverlay


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.

ConscriptSIC

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:

<?xml version="1.0" encoding="utf-8"?>
<material>
	<textures>
		<texture name="Units/AstraMilitarum/GuardsmanDiffuse"/>
		<texture name="Units/AstraMilitarum/GuardsmanNormal"/>
		<texture name="Units/AstraMilitarum/GuardsmanSIC"/>
		<texture name="ShadowMapColor"/>
	</textures>
</material>

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

<?xml version="1.0" encoding="utf-8"?>
<material>
	<textures>
		<texture name="Units/AstraMilitarum/ConscriptDiffuse"/>
		<texture name="Units/AstraMilitarum/GuardsmanNormal"/>
		<texture name="Units/AstraMilitarum/ConscriptSIC"/>
		<texture name="ShadowMapColor"/>
	</textures>
</material>

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:

<model>
		<unit mesh="Units/AstraMilitarum/Guardsman"
				material="Units/AstraMilitarum/Guardsman"
				idleAnimation="Units/AstraMilitarum/GuardsmanIdle"
				idleAnimationCount="3"
				idleContinuously="1"
				normalWeight="0.1"
				scale="1 1 1"
				bloodBone="ChestBone"
				walker="1"/>
	</model>

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

It should look like this:

	<model>
		<unit mesh="Units/AstraMilitarum/Guardsman"
				material="Units/AstraMilitarum/Conscript"
				idleAnimation="Units/AstraMilitarum/GuardsmanIdle"
				idleAnimationCount="3"
				idleContinuously="1"
				normalWeight="0.1"
				scale="1 1 1"
				bloodBone="ChestBone"
				walker="1"/>
	</model>


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.

Conscripts Textures

Advertisement