You must extract the .SGA to access the game data. Currently you can use the Mod Packager/Spooky's Extractor/Corsix's Extractor to decompress the archive. The game will use the extracted files instead of the compressed ones.
The compression isn't huge, but makes a difference. For large modifications to the game, you may consider making installation take up less disk space using SGA files, especially if you make different levels of quality of textures, or sounds.
See the Mod Packager page for more information about the extraction of core game resources, and the creating of new SGA archives. See How to Use SGA files for information on where you reference them to get them used.
In Dawn of War, these are the SGA files available for extraction:
This information is helpfully provided by
IBBoard, and is how the file structure is laid out.
This is useful if you need to extract files at installation to resolve colour bleeding (for instance) without the download being too large – basically extracting WHM?, RSH? or WTP? textures and renaming them/moving them into the new mod/race/skin folder. IBBoard may be able to update the information here on how to do this.
===== SGA File Format ===== 0x000000 - Identifier ASCII String (8) 0x000008 - Version (4) 0x00000C - Unknown (4) 0x000010 - Unknown (4) 0x000014 - Unknown (4) 0x000018 - Unknown (4) 0x00001C - Archive Type UNICODE String (128) 0x00009C - Majorly Unknown (16) 0x0000AC - Data Header Size (4) 0x0000B0 - Data Offest (4) 0x0000B4 - TOC Offset (4) (Offset from B4) 0x0000B8 - TOC Count (2) 0x0000BA - Dir Offset (4) (Offset from B4) - Points to an array of Directory Info 0x0000BE - Dir Count (2) 0x0000C0 - File Offset (4) (Offset from B4) - Points to an array of File Info 0x0000C4 - File Count (2) 0x0000C6 - Item Offset (4) (Offset from B4) 0x0000CA - Item Count (2) 0x0000CC - TOC Alias ASCII String (64) (Addr: B4 + TOC Offset) 0x00010C - TOC Start Name ASCII String (64) 0x00014C - TOC Start Dir (2) 0x00014E - TOC End Dir (2) 0x000150 - TOC Start File (2) 0x000152 - TOC End File (2) 0x000154 - TOC Folder Offset (4) "Directory Info" 0x000 - Name Offset (4) (+180+ItemOffset) 0x004 - Sub Dir ID Begin (2) 0x006 - Sub Dir ID End (2) (Begin->End-1) 0x008 - File ID Begin (2) 0x010 - File ID End (2) (Begin+1->End) "File Info" 0x000 - Name Offset (4) (+181+ItemOffset) 0x004 - Unknown (4) 0x008 - Data Offset (4) (+ B0 Data Offset) 0x00C - Unknown (4) 0x010 - Data Len (4)
File Formats Index
RDN Wiki Home