UNIS
Unit settings for the original game. For each unit type that does not use the game's own
values: hit points, shields, armour, build time, costs, name and weapon damage. A Brood
War file has UNIx in its place; in an older file the game reads this table and
then UNIx on top, if the file has one. Only Use Map Settings reads either.
| Name | UNIS (55 4E 49 53) |
|---|---|
| Size | 4048 bytes. |
| Read by | The game, at the start of a Use Map Settings game, in a VER 59 or 63 file, or Remastered's 64. A Brood War file's copy is never read. |
| Required | For Use Map Settings in a StarCraft 1.00 or hybrid file (VER 59 or 63), and in Remastered's VER 64. |
| The game accepts | Exactly 4048 bytes. Any other length refuses the map. |
| More than one copy | Combined entry by entry: a copy changes only the entries it marks as not using the game's own values, and every other entry keeps what an earlier copy gave it. |
| In scmJS | Read, and written again when you change what it holds. |
Layout:
| Offset | Type | Holds |
|---|---|---|
| 0 | u8 × 228 | Per unit type: 0 to use this section's values; anything else for the game's own, ignoring the rest of this section |
| 228 | u32 × 228 | Hit points × 256 |
| 1140 | u16 × 228 | Shields |
| 1596 | u8 × 228 | Armour |
| 1824 | u16 × 228 | Build time, in game frames |
| 2280 | u16 × 228 | Mineral cost |
| 2736 | u16 × 228 | Gas cost |
| 3192 | u16 × 228 | Name, a string number; 0 for the default name |
| 3648 | u16 × 100 | Per weapon: base damage |
| 3848 | u16 × 100 | Per weapon: damage added by each upgrade level |