Warhammer 40,000: Gladius - Relics of War

Warhammer 40,000: Gladius - Relics of War

Trenches
82 Comments
this is one of the greatest things to happen to IG
Imp0815  [author] 7 Jan @ 11:56am 
I haven't played Gladius recently or bought the latest DLC, so balancing and giving DLC units the trench ability is beyond me. Feel free to mod this to suit your game.

Copy the mod to Documents\Proxy Studio\Gladius\Mods, then edit Trenches.xml in Data\World\Traits to adjust buffs like <cityDamageReduction add="0.15"/>. To add the trench trait to other units, duplicate and rename the Guardsmen file in Data\World\Units\faction, replacing "Guardsmen" with the target unit name in the file.

Rename the main mod folder and delete any Steam ID info to ensure it shows up in-game.
curufaukor 7 Jan @ 9:57am 
Could this be updated to include the Tempestus Scions as capable of creating trenchworks? The definitive canon Tempestus Scions would be the Cadian Kasrkin who are by their very names the creators of entrenchment fortifications.
ToGG 2 Jan @ 2:36pm 
Still up to date? Caused a crash for me :(

Love the mod btw!
Lampros 19 Dec, 2024 @ 10:22am 
Would you consider increasing the bonus from 15 percent to 17 percent to follow the vanilla convention for damage reductions? It's not a big deal, but it's confusing otherwise (beside, I'd take any percentage increase I can get! ;)) I assume the devs chose 17 to 33 to 50 to mimick six sided die rolls as closely as possible, and it is intuitively makes more sense for us tabletop players, too.
Imp0815  [author] 12 Dec, 2024 @ 10:09am 
No Problem. If something does not work just write here and ill try to fix it.
Lampros 12 Dec, 2024 @ 4:19am 
Thanks for the response!
Imp0815  [author] 12 Dec, 2024 @ 2:41am 
Yes
Lampros 11 Dec, 2024 @ 3:19pm 
Is this up-to-date?
The_real_nemo 7 Nov, 2024 @ 12:01pm 
THANK YOU!!!!!! The lack of an option to "Dig in" has been driving me NUTS
Imp0815  [author] 4 Jul, 2024 @ 4:51pm 
@lurido outposts take up the same slot on a tile? - Outpost already have the same modfier as Trenches
tucker753 4 Jul, 2024 @ 5:57am 
why can't i entrench units on outposts?
Imp0815  [author] 28 May, 2024 @ 1:21am 
@VoidFish Why?
VoidFish 23 May, 2024 @ 10:04pm 
Needs update
Imp0815  [author] 3 Apr, 2024 @ 3:07am 
@Orionox:
i made the Mod Compatible with everything that changes the Guardsmen so this can be used as an addon for everything.
Orionox 3 Apr, 2024 @ 12:03am 
compatible with overhaul mods?
Imp0815  [author] 28 Feb, 2024 @ 3:17am 
@jeff.s.wiggins I dont know, it should be compatible with all things as i do not overwrite any gamefiles.
jeff.s.wiggins 27 Feb, 2024 @ 2:29pm 
Is this compatible with unit rescaling mods and Gladius Plus?
md_pixel 26 Dec, 2023 @ 2:25am 
thanks for german translation!!
Imp0815  [author] 6 Nov, 2023 @ 1:39am 
@DireWolf it could be, should i fix that?
DireWolf 5 Nov, 2023 @ 7:27pm 
trenches give its defence bonus to flying units?
Arthurius Christufus 2 Nov, 2023 @ 1:21pm 
wouldn't the Tempestus Scions also do trenches?
Flackzer 21 Jun, 2023 @ 3:28pm 
now would Orks make trenches ?
OcN.Helbrecht 14 Jun, 2023 @ 2:42pm 
I'm definitely using it, facing 2 tyranids on +140 loyalty per tyranid ai, and they are terrifying
Imp0815  [author] 14 Jun, 2023 @ 1:03pm 
Well i guess that's a feature now. But i can't change how the game works if a Bastion is considerd a Unit well then.
Use it wisely you Tactical Genius! :LordCommissar:
OcN.Helbrecht 14 Jun, 2023 @ 9:30am 
Just tested it and it does get affected by trenches, you can build a bastion inside of the trenches
Imp0815  [author] 14 Jun, 2023 @ 3:35am 
@OcN.Helbrecht I did not test this. I think if bastions are handeld as units this effect can stack but i dont know if this is possible.
OcN.Helbrecht 13 Jun, 2023 @ 9:01pm 
Does this affect bastions if you were to build one on top of a trench?
Kurziel 5 Feb, 2023 @ 12:09pm 
Kurziel 4 Feb, 2023 @ 6:08am 
Very interesting results, I'll have to take a look at how you did that. I intend to make my patch anyway because I think it fits thematically to have my abilities clear the trenches too. :)
Imp0815  [author] 4 Feb, 2023 @ 4:57am 
I updated the mod and the page here. Let me know if something is off or does not work. And thanks for your support!
Imp0815  [author] 4 Feb, 2023 @ 4:34am 
I fixt it by adding the trenches to the imperial ruin category as this is a viable category for tile removal and "none" is not ^^

I tested it very shallow so i dont know if this broke something else so please report any strange behavior with the trenches.
Imp0815  [author] 4 Feb, 2023 @ 3:25am 
If you send me your code i could try to make an extra trench clear ability for the techpriest.
Imp0815  [author] 4 Feb, 2023 @ 3:23am 
@Kurziel, sure! Go ahead!
Kurziel 3 Feb, 2023 @ 6:17pm 
Would you be ok with me publishing a patch that gives units from my mods the ability to clear the trenches from your mods?
Tilith 2 Feb, 2023 @ 1:39pm 
Oh, thank you very much for confirming this.

I have discovered Kurziel's work, he makes interactive ruins when destroying cities or (ship)wrecks when destroying a big unit, and he created a "Salvage" skill for that, I figured I'd integrate the cleaning of trenches into this skill. It still adds a skill on the interface, but since it does so much it seems acceptable.
Imp0815  [author] 2 Feb, 2023 @ 8:37am 
Hi @Tilith,

i took a look into the Clear tile thing.
I suspect i had drop this cause this ability inside the Techpriest unit:

<clearTileUnitAbility cooldown="1"
icon="Actions/ClearTile"
name="ClearTile">
<model>
<action animation="Units/AstraMilitarum/TechpriestEnginseerBuild"/>
</model>
<beginTargets>
<target rangeMax="1">
<conditions/>
<areas/>
</target>
</beginTargets>
<modifiers>
<modifier visible="0">
<effects>
<influenceCost base="5"/>
<oreCost base="5"/>
</effects>
</modifier>
</modifiers>
</clearTileUnitAbility>

Is hardcoded and not accessable for modders.
Tilith 1 Feb, 2023 @ 6:24pm 
I give up. :D

I searched everywhere for the "Clearing Tile" action, but to no avail.
In the localisation it's in the >Actions folder, but no such thing exists in World> subfolders, it's not in Features> nor Traits> (it could be hidden there but I doubt it) it's also not tied to the tile's characteristic nor the cleaning unit's abilities,

I know you''re not interested in this feature to begging with, but if you have an idea to help me find it that'lll be cool, otherwise I guess it ends there. ^^
Tilith 1 Feb, 2023 @ 3:35pm 
Hi, thank you for your work, I made a french localisation for your mod:

You can find it here


I also love the idea of incorparating the removal of trenches to the "Clearing Tile" feature, and after I'm done with all the translations I'll give this a try, even if I notice that it conflicts with other mods and end up not even using it haha.
General Gears 1 Jan, 2023 @ 12:59pm 
Thank you I will try that and see how it turns out.
Imp0815  [author] 1 Jan, 2023 @ 6:06am 
To be specific you need to add a Renegade Guardsmen file to the mod folder:
Data\World\Units make a the explizit faction folder here and set up a Renegade_Guardsman.xml.ext file here. You can copy paste the Guardsman.xml.ext file for this and rename it,
I think you need to change this line to the right something:
<model>
<action animation="Units/AstraMilitarum/GuardsmanIdle"
sound="Actions/Construct"/>
</model>

But that should do it.
Imp0815  [author] 1 Jan, 2023 @ 5:54am 
@General Gears I think you can change my mod in that way that other units can use my ability.
General Gears 31 Dec, 2022 @ 7:01pm 
Is there a way that I can make the Renegade Guardsmen deploy trenches as well?
Picklld 20 Dec, 2022 @ 10:20am 
Fair, fair. Was just a thought as I found after running a protracted game and being pushed hard that the cover I once used was now being used against me and back-filling a trench (like in reality) would have been a nice option to negate their advantage when they moved up.
Imp0815  [author] 20 Dec, 2022 @ 9:33am 
This would entail modification to either the "Clearing Tile" ability which makes this mod not so compatible anymore or an addition of an extra ability just to clear trenches which feels awkward. I dont think both ideas are not very good.
Picklld 20 Dec, 2022 @ 8:57am 
Any way of adding functionality to remove trenches once placed? Perhaps using the same function as "Clearing Tile" such as wire weed or imperial ruins?
Noble Poptart 5 Jun, 2022 @ 6:52pm 
LOOK AT THIS DERANGED TRENCHER, HE CAN'T STOP TREEEEEENCHING
Imp0815  [author] 2 Jun, 2022 @ 2:29pm 
PSA: For unknown reasons my screenshots for the workshop page got removed and i can't currently reupload them. I'll try again later...
Luzilyo 1 Dec, 2021 @ 1:27pm 
oh ok. guess i'll just have to try it out then. thanks for the info.
Imp0815  [author] 1 Dec, 2021 @ 1:02pm 
I dont know. i did not made any Ai scripts for this mod so if they need one to use them they wont use them.