Game data
Where the graphics come from, what is kept, Remastered, mods as data sets, and how the pictures are drawn.
A map file holds numbers: a tile id per cell, a unit type per placed unit. The pictures those numbers refer to are in StarCraft's own files. That is Blizzard's data, not covered by this project's MIT license and not redistributable, so none of it ships with the editor. The editor reads it from a StarCraft installation you own, classic (1.16) or Remastered, copies what it needs once, and keeps the copy.
This document is for map makers who want to know where the graphics come from and what is kept where, and for mod makers who want the editor to use a mod's files in place of the game's. Playing a mod, and keeping one as a folder of text, are covered in the mods guide. This document ends with how the editor draws the pictures. The steps of the first-run dialog are in the installing guide; building the editor from source is in Extracting for a source build.
Attribution is not permission. Before publishing a fork or hosting a build, read ATTRIBUTION.md.
- Getting the filesThere are three sources: a StarCraft: Remastered installation, a classic StarCraft (1.16) installation, and Blizzard's free map editor download…
- What is keptFrom either kind of installation, or the download, the editor copies about 930 files it draws with, about 30 MB from the classic archives.
- StarCraft: RemasteredA Remastered installation keeps the game in its Data folder as a few large files with an index over them, and the editor reads the files it needs out of that with kascade.
- Data setsThe editor draws from one set of game files at a time, and a data set names one.
- Testing a map in the gameTools ▸ Test Map needs the installed game rather than a copy of its data.
- Extracting for a source buildA clone has no game data until it is extracted. The script finds the archives on its own or takes them as arguments.
- How terrain is drawnEach tileset is five files. A tile id in the map file leads through them to pixels.
- How units are drawnA unit type leads to its picture through four tables.
- In the sourceFor developers. The extraction is one module shared by every route, and the drawing is under src/formats/.