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.

This section contains documentation on what scmJS does with a StarCraft map file when it opens and saves one. This is for anyone who wants to know what happens to their file: map makers deciding what to keep in a release copy, and people fixing a broken or protected map. The user guide covers the Save dialog itself; this document explains the file it writes. The format itself, 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 and things it cannot even name. A map loses nothing by passing through the editor unless you ask for it in the Save dialog.