Creating your own mod files
I put together a little tool that I think makes packing up mods much simpler and intuitive. Everything I've tested it with has worked well, but if you have any issues, let me know here. The .sga extraction process below still applies, so if that's what you're having trouble with, skip ahead.
Instead of a small program with a UI, this tool is just a set of 4 files that you can place in a folder, double-click one of them, and then you're done. This will be a quick explanation on how it should be set up, and how you can modify it to suit your needs.
The first thing to do is download the above DataPacker.rar and AttribPacker.rar files and place them in the proper folders. Within your Dawn of War ii Retribution installation folder, go to the GameAssets/Mods folder and create two additional folders within the Mods folder: "Data" and "DataAttrib". They don't have to have those names, but it does make it more obvious what types of files you're working with. Now, unpack the DataPacker files within the Data folder, and unpack the AttribPacker files within the DataAttrib folder. It should look like this:
The DataPacker is used to create the Data .sga Archive type; the AttribPacker is used to create the DataAttrib .sga Archive type. So then, all you have to do is place the files you want to pack into one of those two folders. If you're creating a Data Archive, it would look something like this:
DataAttrib would just have a simulation folder:
Then you just run the AttribPacker.bat or DataPacker.bat, and the .sga file will be output in the GameAssets/Mods/Archives folder. The default file name for a Data archive will be Elite_config.sga and for DataAttrib it will be Elite_attrib_test.sga. These can be changed in the append_bot.txt file by changing the following line (identical location in files for Data and DataAttrib):
Finally, if you want to change the file types added into the .sga file, you'll have to open up the AttribPacker.bat or DataPacker.bat and edit the 5th line in this format:
Simply add another file type in the format: *.filetype before the ">". You'll also have to change the append_top.txt file and add a new, identical line with the highlighted part changed to the new file type:
I'm planning on automating this last part soon. edit: I made a version that automates the creation of the append_top.txt, but it takes longer to run because it has to interact with every file path and determine its file type before it starts packing. Probably not going to post it here, but if you're interested in it for some reason, let me know. It can be useful for smaller mods, but mods with a large number of files can take more time.
I think all of the necessary file types should be there by default, but it's always possible I missed something. That should be all there is to know, and if you find any issues, please let me know.
*This used to be a guide on how to edit the army scheme colors for Elite, but hakon came up with an easier way to do it, wizard that he is.
First, you'll need to download these two applications:
SGA Reader 2: http://www.mediafire.com/download/6l6g3 ... 150209.rar
DK SGA Archive GUI: http://www.mediafire.com/download/y42ic ... .4.1.0.rar
Install them wherever you want. All you have to do to install is extract the files.
Next, check the files in your Dawn of War II - Retribution\Elite\ installation folder. Within the Elite folder, you'll find an Archives folder, and within that are the game files packed as .sga files. The file you want to edit is called Elite_config.sga.
Go back to the folder in which you installed the SGA Reader 2 and open the application.
From the top left corner of the application, File > Open, navigate to your Elite\Archives\ folder and open the Elite_config.sga file. You'll see a drop down tree to the left of the application that has Data at the top, with a config folder below it. Within the config folder are two files, defaultchaptercolours.lua and armypaintercolours.lua. On the top of the screen is a dropdown that says "Default directory action". Click the dropdown and make sure it is set to Extract.
Then double click both of the files to extract them. It will ask for a destination folder, and you can make it whatever you want. But if you don't change it, it will just extract the files into your Elite\Archives\ folder, which is fine and probably easier. You should now be able to see a Data folder within your Archives folder. Within that are both of the files you just extracted, which you can edit as you like.
When you are finished editing the files you want, you'll need to repack them into a .sga file using the DK SGA Archive GUI you downloaded above.
You may have to do some editing of settings if you do not have Elite installed to your standard C drive, so I'll go through that.
The application should look like this
Set the SGA Archive Name to "Elite_config", the Archive Type to "Data", the Input Directory to the 'Data' folder you extracted the files to (so if you extracted them to your C drive in the Elite\Archives\ folder it will be: 'C:\Program Files (x86)\Steam\steamapps\common\Dawn of War II - Retribution\Elite\Archives\Data'), and the Output Directory to your Elite\Archives\ folder.
Next, open the File > Settings window, shown below.
You'll need to set up the Archive.exe location, which is in your Dawn of War II - Retribution folder: Dawn of War II - Retribution\Tools\Bin\Archive.exe
And make sure the dropdown on the top says SGA v5 (DoW2). That should be all you need to change. Save the settings and exit out of the Settings window.
Note that in the Settings window, there are a lot of file extensions listed. If you downloaded the files from the link above, all of the extensions you'll need should be included already (edit: You may need to add *.layers to the list if you're trying to pack map files). You can check them, as well as the file path for the Archive.exe, without opening the program, by opening the DK - SGA Archive.ini file in the installation folder.
In the main window, with everything filled in as explained above, click the Create SGA button.
And then you're done! Mod packed and ready to go. If you have any issues or questions, post them here and I'll try to help.
Keep in mind also that any files already present in the Elite mod will not be overwritten if placed in the Mods folder. To make any art files work, pack the files in with the Elite_config.sga. Files from .sga files other than Elite_data.sga will not be compatible with Elite_config.sga. If any files from the Elite_attrib.sga are changed, your game will not be compatible with other default installations.