DoW/Tutorials/Army Painter Colours

From Relic Mod Wiki

Jump to: navigation, search

This Tutorial Outlines how to get a New Preset Colour into the Army Painter.

Contents

Required Tools

You can use any .SGA extractor, but I will use this one for the Purposes of this Tutorial.

  • Notepad (or any Text Editor, I use Ultra-Edit 32).

Adding a Preset Colour

Extracting the armycolours.lua

  • Open up IBBoard's SGA Explorer, go File>Open & find the "engine" folder in your "Dawn of War - Dark Crusade" folder, usually "C:\Program Files\THQ\Dawn of War - Dark Crusade\" and open "engine.sga".
  • Now, using the Folder Tree, Navigate to "Data\Game" a whole list of files should come up in the box next to the Folder Tree, these are all the Game's Files. You Gennerally Shouldn't edit anything in the Engine unless you know what you are doing, as it will make DoW Unplayable online, if it effects Multiplayer. Find "armycolours.lua", right-click it & select "Extract to Location". Navigate to Your Desktop & Click ok. There should now be a file called "ArmyColours.lua" on your desktop.

Editing the Army Colours

  • Once you have found the file on your Desktop, right-click it, & Select "Open With>Notepad" or, If notepad is not there, "Open With>Choose Application" now in the Box, find Notepad. (DON'T USE WORDPAD!!!)
  • It should Now Display This:
--------------------------------------------------------------------------------------------------------------
-- Army Painter Presets
-- (c) 2004 Relic Entertainment Inc.
 
 
-- these are preset "Citadel Colours" used for the Army Painter screen
-- format: { r, g, b }
 
colour_presets =
{
{ name = "$73000", colour = { 28, 64, 32} },
{ name = "$73001", colour = { 65, 87, 57} },
{ name = "$73002", colour = { 33, 139, 58} },
{ name = "$73003", colour = { 101, 179, 69} },
{ name = "$73004", colour = { 125, 146, 83} },
{ name = "$73005", colour = { 184, 195, 157} },
{ name = "$73006", colour = { 0, 38, 80} },
{ name = "$73007", colour = { 25, 70, 103} },
{ name = "$73008", colour = { 20, 78, 166} },
{ name = "$73009", colour = { 32, 130, 144} },
{ name = "$73010", colour = { 129, 211, 235} },
{ name = "$73011", colour = { 147, 184, 204} },
{ name = "$73012", colour = { 100, 39, 29} },
{ name = "$73013", colour = { 148, 44, 44} },
{ name = "$73014", colour = { 209, 26, 26} },
{ name = "$73015", colour = { 218, 146, 130} },
{ name = "$73016", colour = { 164, 62, 139} },
{ name = "$73017", colour = { 110, 13, 108} },
{ name = "$73018", colour = { 82, 73, 63} },
{ name = "$73019", colour = { 108, 93, 61} },
{ name = "$73020", colour = { 158, 134, 65} },
{ name = "$73021", colour = { 255, 240, 0} },
{ name = "$73022", colour = { 255, 191, 0} },
{ name = "$73023", colour = { 243, 120, 30} },
{ name = "$73024", colour = { 70, 70, 70} },
{ name = "$73025", colour = { 128, 130, 132} },
{ name = "$73026", colour = { 190, 190, 190} },
{ name = "$73027", colour = { 235, 215, 182} }
};
  • Firstly, add a Comma "," onto the end of the 2nd Last Line. This allows More entries to be made after it. When you have finished adding entries, remove the comma "," from the 2nd last line of your new code. Always add new code at the bottom, Between the Last Entry, & "};".
  • Now, Copy ONE line, and Paste it Between the Last Entry, & "};". There are 2 Ways to Name your Colour;
  1. You can Directly add the Name into the armycolours.lua file. To do this, instead of using a UCS String, just type the Name into the Quotation Marks. ie;
    { name = "Chaos Black", colour = { 0, 0, 0} }
  2. You can Use a UCS String, this is how they are done by relic, & is generally, an easier & more organised way to keep all your text. For the Example above, in your UCS String File, there will need to be an entry for "Chaos Black". ie;
    15439004 Chaos Black
    and in your ArmyColours File, you would put this;
    { name = "$15439004", colour = { 0, 0, 0} }
    Make Sure there is a Dollar Sign "$" infront of the UCS String in the ArmyColours File.
  • To Change the Colours, you must edit the number values after "colour". These are in RGB Format, the 1st colour is Red, and a value from 0-255, the 2nd is Blue, and a value from 0-255, and the Last is Green, and a value from 0-255.
  • Here is an Example UCS File, which Includes Chaos Black & Skull White;
15439002 Armypainter Colours
15439003 Skull White
15439004 Chaos Black

and the Armycolours.lua file to go with it (notice there is no comma on the last entry, & there is now a comma on Relic's original last entry);

---------------------------------------------------------------------------------------------------------------
-- Army Painter Presets
-- (c) 2004 Relic Entertainment Inc.
 
 
-- these are preset "Citadel Colours" used for the Army Painter screen
-- format: { r, g, b }
 
colour_presets =
{
{ name = "$73000", colour = { 28, 64, 32} },
{ name = "$73001", colour = { 65, 87, 57} },
{ name = "$73002", colour = { 33, 139, 58} },
{ name = "$73003", colour = { 101, 179, 69} },
{ name = "$73004", colour = { 125, 146, 83} },
{ name = "$73005", colour = { 184, 195, 157} },
{ name = "$73006", colour = { 0, 38, 80} },
{ name = "$73007", colour = { 25, 70, 103} },
{ name = "$73008", colour = { 20, 78, 166} },
{ name = "$73009", colour = { 32, 130, 144} },
{ name = "$73010", colour = { 129, 211, 235} },
{ name = "$73011", colour = { 147, 184, 204} },
{ name = "$73012", colour = { 100, 39, 29} },
{ name = "$73013", colour = { 148, 44, 44} },
{ name = "$73014", colour = { 209, 26, 26} },
{ name = "$73015", colour = { 218, 146, 130} },
{ name = "$73016", colour = { 164, 62, 139} },
{ name = "$73017", colour = { 110, 13, 108} },
{ name = "$73018", colour = { 82, 73, 63} },
{ name = "$73019", colour = { 108, 93, 61} },
{ name = "$73020", colour = { 158, 134, 65} },
{ name = "$73021", colour = { 255, 240, 0} },
{ name = "$73022", colour = { 255, 191, 0} },
{ name = "$73023", colour = { 243, 120, 30} },
{ name = "$73024", colour = { 70, 70, 70} },
{ name = "$73025", colour = { 128, 130, 132} },
{ name = "$73026", colour = { 190, 190, 190} },
{ name = "$73027", colour = { 235, 215, 182} },
{ name = "$15439004", colour = { 0, 0, 0} },
{ name = "$15439003", colour = { 255, 255, 255} }
};
  • Notice that the Order in this file determines the order of colours in the army painter.
  • You are Now done Editing, Save this File & copy it from the desktop into "Dawn of War - Dark Crusade\Engine\Game" if the Game folder is not there, create it, taking care to spell it correctly. (Note: If that doesn't work, try copying it into "Dawn of War - Dark Crusade\Engine\Data\game")

This Tutorial was Originally Written by Scorpia, & hosted on Skins@HiveWorldTerra. Transcribed to the modding wiki and updated by Promythyus.