scmJS docs

PUPx

UPGR for Brood War: the same tables, for 61 upgrades.

Name PUPx (50 55 50 78)
Size 2318 bytes.
Read by The game.
Required In a hybrid or Brood War file (VER 63 and up).
More than one copy Only the last copy counts.
In scmJS Read, and written again when you change what it holds.

Layout:

Offset Type Holds
0 u8 × 732 Per player, per upgrade: the highest level they may research. Player 1's 61 bytes first
732 u8 × 732 Per player, per upgrade: the level they start at
1464 u8 × 61 Per upgrade: the default highest level
1525 u8 × 61 Per upgrade: the default starting level
1586 u8 × 732 Per player, per upgrade: 1 if the player uses the defaults