Warhammer 40,000: Gladius - Relics of War

Warhammer 40,000: Gladius - Relics of War

Doc's Scrapyard - Custom Units
Doc  [developer] 5 Jun, 2024 @ 10:35am
If you want to build a unit with another faction, or don't want it there at all...
This will create a local mod which will alter my mod to give you more flexibility. You don't have to post it to use it; if you do, you can choose to make it private if you only need it for a friend group.

Let's use the Custodes as an example

if you want to create a mod to move the Custodian Guard to any other faction, you'll need to do the following (only do the second step if you're using a faction that doesn't use food and ore):

Create a mod folder with the following tree C:\Users...Documents\Proxy Studios\Gladius\Mods\YourModName\Data\World\Units\SpaceMarines

In the same World Folder, create a folder called Buildings\SpaceMarines

Making it compatible with factions which don't use food
Copy my CustodianGuard file into the Units\SpaceMarines.
Open the file in Notepad. In this file, change any food cost to Influence cost (this will make it compatible with all factions).
Done!


Choosing a building to produce the unit from
Copy my Vehicles.xml.ext file into Buildings\SpaceMarines and rename it to Infantry.xml.ext.
Open the file, and change SpaceMarines/Cerberus to SpaceMarines/CustodianGuard, and delete the upgrade requirement (or change it to a Space Marine technology of your choice.
Done!

Getting rid of a unit you don't want
The easiest path here is to overwrite my building file with one that won't allow the unit to be built.
For example, copy the Infantry.xml.ext file and paste it into your mod folder (as above). Within the file, require an upgrade belonging to another faction. The unit will now be unbuildable.

Note that you need to have your mod in the bottom of the load order to make sure it overwrites any of my stuff.
Last edited by Doc; 5 Jun, 2024 @ 10:39am