scmJS docs

UPGS

Upgrade costs and research times for the 46 upgrades of the original game. Each upgrade has a cost for its first level and an amount added for each level after. A Brood War file has UPGx in its place; in an older file the game reads this table and then UPGx on top, if the file has one. Only Use Map Settings reads either.

Name UPGS (55 50 47 53)
Size 598 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 598 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 × 46 Per upgrade: 0 to use this section's values; anything else for the game's own
46 u16 × 46 Mineral cost of the first level
138 u16 × 46 Minerals added for each further level
230 u16 × 46 Gas cost of the first level
322 u16 × 46 Gas added for each further level
414 u16 × 46 Research time of the first level, in game frames
506 u16 × 46 Time added for each further level