scmJS docs

Revision pairs

Brood War widened several tables and gave the wider versions new names. The editor's model is always the Brood War width, and the original-layout encoders trim it on the way out. revisionSections in scenario.ts decides which of a pair to write: the one the file's revision calls for, plus whichever the file already carries. A hybrid map keeps both UNIS and UNIx; an original-game map keeps only UNIS.

Original Brood War Table
UNIS (100 weapons) UNIx (130) unit settings
UPGS (46 upgrades) UPGx (61) upgrade settings
UPGR PUPx upgrade restrictions
TECS (24 techs) TECx (44) technology settings
PTEC PTEx technology restrictions

setMapVersion rewrites VER /TYPE and flips the string table between STR and STRx. String indices never change, so triggers and locations keep pointing where they did.