scmJS docs

Opening and saving maps

What the editor does with a map file: what it preserves, what Save can strip, revisions, protected and built maps.

What scmJS does with a StarCraft map file when it opens and saves one. This is for map makers deciding what to keep in a release copy, for people fixing a broken or protected map, and for anyone writing a tool that reads what the editor writes. The user guide covers the Save dialog itself; the format, section by section, is in the CHK format reference.

The short version: the editor opens .scm, .scx and bare .chk files, rewrites only the parts of the scenario you changed, and copies everything else through byte for byte, including things it does not understand. A map loses nothing by passing through the editor unless you ask for it in the Save dialog. The exceptions are two sections the game would refuse as they stand, which a save puts right (below).