Warhammer 40,000: Gladius - Relics of War

Warhammer 40,000: Gladius - Relics of War

Create and Share Custom Mods
The best mods for Warhammer 40,000: Gladius live here. Mods are made by players, for players and are not officially licensed by Games Workshop. Click 'Learn More' below to read our Modder’s Guide.
Learn More
Trappist 3 May, 2023 @ 7:58pm
How to assign icons to units
If you link me that damned guide I will teach your parrot to cuss your mother.

I'm trying to make a new unit. Everything is working brilliantly except the icon. I am not making a new custom icon, just copying an existing one - the "upgrades.dds" icon in buildings > AstraMilitarum, to be exact.

No matter how much googling I do or how many files I read, I cannot figure out how to actually assign the damn icon to the unit, so it just uses the default "?" icon instead. Matching the name of the icon to the name of the unit does nothing. That damned guide that keeps coming up only tells me how to make a new icon.

What the hell am I missing here? My mod is 99.5% done and this is driving me crazy.
< >
Showing 1-8 of 8 comments
Trappist 4 May, 2023 @ 1:16am 
Nevermind, figured it out. Now I just gotta figure out how to set how much XP a neutral is worth...
Jey 14 4 May, 2023 @ 3:16am 
Originally posted by Trappist:
I just gotta figure out how to set how much XP a neutral is worth...
You "can't".

XP is systematically a function of the unit tier and its level.
In turns, an unit tier is controlled by its base production cost.

If the unit is purely neutral (i.e cannot be produced by a faction), you can thus alter the production cost.


18 cost is 0.75 XP (corresponding to 15 resource cost/0.75 upkeep)
24 cost is 1 XP (corresponding to 20 resource cost/1 upkeep)
30 cost is 1.5 XP (corresponding to 30 resource cost/1.5 upkeep)
36 cost is 2 XP (corresponding to 40 resource cost/2 upkeep)
42 cost is 3 XP (corresponding to 60 resource cost/3 upkeep)
48 cost is 4 XP (corresponding to 80 resource cost/4 upkeep)
54 cost is 6 XP (corresponding to 120 resource cost/6 upkeep)
60 cost is 8 XP (corresponding to 160 resource cost/8 upkeep)
66 cost is 12 XP (corresponding to 240 resource cost/12 upkeep)
72 cost is 16 XP (corresponding to 320 resource cost/16 upkeep)

Under 18 and above 72, the formula goes on, but I don't know the values as they are not present in vanilla.

Additionally, an unit level increases its XP value by 10% per level above 1.

A 24 cost lvl 2 unit is thus worth 1.1 XP.
A 72 cost lvl 6 unit is thus worth 24 XP.


I believe there is a trait that modifies XP given on death (e.g the Suicider trait, or the one on Celestine when she dies).
Those sets it to 0, but it might be possible to use it to alter the XP on an individual basis.
Last edited by Jey; 4 May, 2023 @ 3:17am
Rok  [developer] 4 May, 2023 @ 10:29am 
I believe you can also use strengthModifier="X" as used on Enslaver.xml. It divides the experience value, i.e. strengthModifier="2" halves the xp value.
Trappist 4 May, 2023 @ 10:56am 
Aha! Thanks guys. I'll put this into use immediately.
Jey 14 4 May, 2023 @ 12:23pm 
Originally posted by Rok:
I believe you can also use strengthModifier="X" as used on Enslaver.xml. It divides the experience value, i.e. strengthModifier="2" halves the xp value.
Why did you hide that from me?
Trappist 4 May, 2023 @ 12:41pm 
Originally posted by Jey:
Why did you hide that from me?

I tried that and it didn't work :/

Your method worked fine, though.
Trappist 17 Sep, 2023 @ 7:59am 
Nothing like finding your own discussion after forgetting how to do something, then seeing that you figured it out on your own and didn't specify how to ♥♥♥♥♥♥ do it,

♥♥♥♥ you, past me.
Erik Taurus 27 Sep, 2023 @ 2:54am 
You actually need two icons.
<yourMod>\Data\Video\Textures\Icons\Overlay\Units\<faction>\<nameofunit-xml>.dds
<yourMod>\Data\Video\Textures\Icons\Units\<faction>\<nameofunit-xml>.dds
< >
Showing 1-8 of 8 comments
Per page: 1530 50