scmJS docs

Three ways in

The command line. scmjs mod reads a mod from what it ships as — a folder of files, an .mpq, a self-executing .exe or a .zip — says what it is, unpacks it into a folder of text, checks it, compares two versions, packs it again and hands it to the play page. The commands go through each.

The play page. The play page at scmjs.dev/play plays a mod from your own copy of StarCraft, 1.16.1 or Remastered. Add it once (Game Menu ▸ Mods ▸ Add a Mod…: the mod's folder as its makers ship it, an .mpq, a self-executing .exe or a .zip), and the page keeps it, runs its plugins and FireGraft project inside the game, seats bots made for it, and writes the mod into every replay it saves. On the play page has the details. scmjs mod play hands a mod to it from a terminal, with a map and a bot made for the mod if you like.

The editor. The editor makes maps for a mod through its data sets: Help ▸ Game Data… ▸ Add a data set… takes a folder of the mod's archives and loose files and lays them over the game's. Its tables are read at any width, so its new unit types are in the palette with their names and pictures, under the race the mod gives them. Upgrade and technology settings, the trigger editor's unit lists and the trigger text use the mod's names. A map saved with it remembers the data set, and every export, share and Test Map build carries it. The folder holds .mpq archives, a mod's self-executing .exe (read for its archive, never run) and the game's paths; a mod that ships as a .zip is unzipped first. A replay of a mod opens in the editor too, and plays with the mod your browser keeps from the play page (Replays of a mod).

With the mod's data set in use, the ground and pictures its tilesets add can be laid. The Tile tab's filter lists the groups the mod adds, and its sheet shows them as the mod's artist drew them, a group a row: drag over a building, a ruin or a run of wall to pick it as a block, and the Tile brush lays it whole, or repeats it along a drag. Its pieces view learns from a folder of the mod's maps which parts of the sheet they lay whole, and lists them as pieces to pick, each picture once however often the tileset repeats it. The Rect brush lists the game's terrains the mod repeats at another height, and the pairs the open map lays as ground (Ground a mod adds). Where a mod's tileset holds another tileset's ground copied in, the Isometric tab can lay that ground with the other tileset's own brush, cliffs and edges included (Terrain from other tilesets); a plugin can hand the editor the exact pairs of tiles the mod meant (provideBorrowTable).

To only look at a map made for a mod, nothing needs installing. Opened without the mod, the map has the terrain the data set in use lacks drawn hatched, and a notice that offers to switch to the mod's data set when it is installed here, or to draw from the mod's folder of loose files there and then (Terrain the data set has not got).

The Mod Editor. To change the mod itself, install the Mod Editor plugin from Plugins ▸ Browse Plugins…. File ▸ Open a Mod… opens a mod's folder, an .mpq, a mod's self-executing .exe or a .zip in a panel under the map, where its tables, strings, pictures, sounds, animation scripts and AI scripts can be edited. Dropping the mod's folder on the editor opens it too; the status bar counts the folder's files while the editor reads them. A dropped folder is read whole. A folder chosen in the browser's folder picker is not: the browser keeps desktop.ini, shortcuts and, on Windows, whole file types (.ini, .cfg, .dll) back from it without saying so (what a folder pick leaves out), so a mod with such files of its own, a plugin's config.ini for one, is better dropped. While the mod is open the editor draws from its files as they are now: change a unit's hit points and Unit Settings shows the new default. It saves the mod as an MPQ or as the folder of text scmjs mod unpack writes, and plays it on the play page.