Getting the files
There are three sources: a StarCraft: Remastered installation, a classic StarCraft (1.16) installation, and Blizzard's free map editor download, which carries the whole game's files but is a map editor's download, not the game. The Game Data dialog offers them on first use and Help ▸ Game Data… afterwards; The graphics in the installing guide has the steps and what each source allows. What the files are:
- A classic installation has two archives,
StarDat.mpqandBrooDat.mpq, with apatch_rt.mpqbeside them that is applied over both, as the game applies it. Brood War's archive is required: its unit table is the layout the editor reads, and the Ice, Desert and Twilight tilesets exist only there. The patch is required too, wherever the editor or the command line copies the game's files. The two archives alone hold the unit, weapon, upgrade and technology tables from before the game's patches (a Factory at 200 minerals, a Dragoon built in 600 frames), so a replay watched with them drifts away from the game that was played within minutes. If an earlier version made your copy from the two archives alone, Help ▸ Game Data… says so; remove the copy and choose the folder again. - A Remastered installation has no
.mpqarchives. The editor reads the same files out of itsDatafolder instead, along with Remastered's own pictures; see StarCraft: Remastered. - Blizzard's map editor download is a 101 MB zip carrying both archives and a
patch_rt.mpq. With that applied, they give the same files a 1.16.1 installation does. The editor fetches only those three members, 83 MB, through a small forwarder atgamedata.scmjs.dev, because a web page cannot read Blizzard's download server directly. The forwarder stores nothing.
Whichever source you use, the copy is made on your machine, and only once: in a background thread in the browser, or in the app's own process on the desktop. Open maps pick up the graphics as they arrive.
Where it looks#
The editor settles on one source of game data when it starts, in this order:
- A data set you chose. When a data set other than the game's own is selected, its stored copy is asked for first. If that copy is gone, the editor says so and continues with the game's own files.
- Bundled with the build. A source build that ran
npm run extractserves the files from its own folder. The desktop app serves its own copy the same way. - A copy kept in the browser. An earlier install left the files in the browser's private storage for the site. The copy survives reloads and browser restarts. A browser with no such storage holds the files for the session only.
- The desktop app's search. The desktop app looks next to the app itself (so the
three archives dropped beside it are found), in its own data folder, in
SCM_DATA_DIRorSTARCRAFT_DIRfrom the environment, in the usual install locations (C:\Program Files (x86)\StarCraft,/Applications/StarCraft, a Wine prefix on Linux), and in~/StarCraftand~/Games/StarCraft. The first folder with the archives or a Remastered installation is copied into the app's data folder, which is then step 2. Someone whose game is where the installer put it never sees a dialog. A folder withStarDat.mpqandBrooDat.mpqbut nopatch_rt.mpqstops the search, and Help ▸ Game Data… says why. - Nothing. The editor runs without graphics and opens the Game Data dialog.
Nothing is ever fetched from an address you did not name.
scmjs.dev/editor, the nightly at scmjs.dev/nightly and the play page at scmjs.dev/play share one copy, so the game is installed once for all three. The page scmjs.dev/editor/data lists every copy the browser holds: what it is, where it came from, how many files and how large, and when it was made.
Removing a copy#
Remove copy in Help ▸ Game Data… deletes the stored copy. The editor then goes back to whatever the search above would have found without it. In the browser, that is the Game Data dialog's first page again.