scmJS docs

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:

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:

  1. 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.
  2. Bundled with the build. A source build that ran npm run extract serves the files from its own folder. The desktop app serves its own copy the same way.
  3. 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.
  4. 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_DIR or STARCRAFT_DIR from the environment, in the usual install locations (C:\Program Files (x86)\StarCraft, /Applications/StarCraft, a Wine prefix on Linux), and in ~/StarCraft and ~/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 with StarDat.mpq and BrooDat.mpq but no patch_rt.mpq stops the search, and Help ▸ Game Data… says why.
  5. 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.

scmJS 0.20.0 + main@c323d11 · Generated from the repository. The source is under the MIT license, which does not cover what ATTRIBUTION.md lists. StarCraft and Brood War are trademarks of Blizzard Entertainment; this project ships none of their data.