All images are linked to conserve size. Click on them to expand.
Open Up Corsix. You will see this:
Click on New Mod. A box will pop up like this.
You can call it whatever you want, and in any particular mod (after WA), but due to the latest codes, I chose Soulstorm. I called it Sandbox, but the default is My Mod. Click Create to progress.
This will now bring up the locale dialogue. Choose whichever language you wish (English is Default), and then check the box, so it will autoload.
The locale is there so it will load up a particular UCS file, those being the text which shows up in game, in the form of a string. Those aren't needed now, but it's background Info.
You will then see the above screen - this is roughly the Front End of your mod info. Expand the Data folder, until you reach it looking like this -
Double click on space_marine_barracks.rgd.
You can see all the units that can be spawned in here. This is where our imported unit needs to go. Now, we need to find the name of the squad we are producing. What we originally opened up was an EBPs file - this details each particular entity, and how good they are - deciding whether it's infantry, flyer, vehicle or building, what they can build, whether they can fight, all of that is decided in an EBPs file. E is for Entity and BPs is for BluePrints. Now, I assume that you can put 2 and 2 together, considering we are looking as Squads, and know where we need to look now.
Yes - SBPs.
Collapse, the EBP's folder, and expand SBPs. It's all alphabetical, so you can't really get lost when looking for files.
Carry on following the image so it looks like so -
Now, we need to find the name of the guardsmen squad. Simpe as that, it's quite handily named, but occasionally, you may find odd ones here and there. Just check these.
The highlighted entry is the one we want.
Now, however, if you look at the spawner squad_table, it's different from the just the short file name we have.
So, we need to do a bit of typing.
If you follow the existing entries, you'll see that all you need to do is add the file name onto the end of this template;
Simples. However, there is one difference - although the file itself is an .rgd file, all other entries are .lua. Continue the trend, and change the file name extension to .lua.
The Space Marine barracks should now look like this -
Save it, and then load up Soulstorm. (NB - Bear in mind that my Front End is slightly different, as I've edited the Engine.ucs for a personal mod, but otherwise is only different in appearance).
I assume you know how to change from mod to mod, but if not, here's the gist.
Click on Game Manager (Highlighted)
This will bring up the list of mods dialogue - Each one is different, according to their own downloaded mods, but at the least, there should be Dawn of War: Soulstorm, and Sandbox (or whatever you called your mod) in there.
Select Sandbox, and then load it up. You'll be asked to restart - it's required, so you'd be achieving nothing by saying no.
Start up a skirmish, using Space Marines as your first race. Nothing fancy, really. Just make Player 1 (That's you) is a Space Marine, and click your way through.
Once loaded, have your Servitor build a Barracks.
Once done, you'll see that you are able to build a Guardsman Squad.
Voila. Said Guardsmen Squad will now appear in all it's Paper-Armoured, Flashlight-Wielding Glory.
However, you will notice there are somethings that are greyed out -
How do we allow our guardsmen to upgrade from flashlights? How can we get a sergeant? How can we get more than 9 men in a squad?
I'll leave it up to you to find out.
However - I will give you a hint - Weapon folder and Research folder, and the Guard HQ File. Good luck! Remember, fiddle around, play around, break and destroy your mod! Have fun with it, that's what we set Sandbox up for! It's not too hard to restart it.