PTEx
PTEC for Brood War: the same tables, for 44 abilities. Whether players start
with the 20 abilities Brood War added is set only when Brood War is on.
| Name | PTEx (50 54 45 78) |
|---|---|
| Size | 1672 bytes. |
| Read by | The game, at the start of a Use Map Settings game, in a file of any revision. |
| Required | For Use Map Settings in a Brood War file (VER 205, or Remastered's 206). In a VER 59, 63 or 64 file it is optional, and read after the original table when present. |
| The game accepts | Exactly 1672 bytes. Any other length refuses the map. |
| More than one copy | The last copy replaces the others. Every copy must still be the right size, or the map is refused. |
| In scmJS | Read, and written again when you change what it holds. |
Layout:
| Offset | Type | Holds |
|---|---|---|
| 0 | u8 × 528 | Per player, per ability: 1 if they may research it. Player 1's 44 bytes first |
| 528 | u8 × 528 | Per player, per ability: 1 if they start with it |
| 1056 | u8 × 44 | Per ability: the default for may research |
| 1100 | u8 × 44 | Per ability: the default for start with |
| 1144 | u8 × 528 | Per player, per ability: 0 to use this player's own values above; anything else for the defaults |