scmJS docs

Terrain

The Terrain layer's palette has six tabs. Five are brushes, and the sixth protects what they have laid:

Tab What it does
Isometric Paints terrain types and lays the cliffs and edges around them. The one to use for almost everything.
Rect Paints flat ground of one terrain type, with StarEdit's random variation. No cliffs, no edges.
Tile Lays any single tile, or a block of tiles picked from the tileset's sheet: cliff pieces, doodad pictures, anything the tileset has.
Blend Lays a tile next to one you picked, chosen from those whose facing edge continues it.
Heal Mends seams, the lines where two tiles' pictures do not meet, with look-alike tiles that play the same.
Pin Lays nothing. It marks tiles that the Isometric, Rect and Heal brushes and the fills then leave alone.

Cliffs and a shore laid by the isometric brush, with a 3×3 brush ghost

Drag to paint. [ and ] resize the brush from 1×1 to 7×7, Alt+click picks the terrain or tile under the cursor, and right-click offers Pick and Fill Area. The Properties panel breaks the tile under the cursor into group, slot, elevation, walkability and buildability.

Remove stranded units, at the top of the palette, deletes the ground units a stroke has just left where they cannot walk, as part of the same undo step. The game would remove them at the start. Buildings stay where they are: the game makes them on any ground.

The isometric brush#

The isometric brush is StarEdit's diamond brush. It sets the diamond under the cursor to a terrain and works outward from there: a neighbour that cannot border the new terrain becomes the terrain in between, and cliff faces stack as tall as the tileset draws them. A single click of high ground gives a small mesa; a wider brush gives flat high ground inside a cliff ring.

The brush works from the map's isometric record, a part of the file that only editors read. Protected maps often have it stripped; the Repair plugin rebuilds it as such a map opens, exactly where the ground was laid with the isometric brush and as a best guess elsewhere. The Isometric tab warns when the record and the ground disagree, and when part of the map is ground the brush cannot join up with, such as hand-placed tiles or another editor's work.

Rect, Tile and Blend#

The Rect tab The Tile tab The Blend tab

None of the three changes the isometric record, so the isometric brush does not know what they laid, and a later isometric stroke beside such tiles can lay over them. Pin the tiles you want kept.

The sheet and blocks#

The Tile tab's sheet view shows the tileset the way its artist drew it: one row for each tile group, sixteen tiles wide, the rows touching, with the group's number at the left. Pictures that run across tiles and groups show whole there: a doodad, a bridge, the buildings and walls a mod adds. A thin dashed line separates groups that are not consecutive. The button with two arrows beside the view buttons shows the tiles at full size, scrolling sideways when the palette is narrower.

The Tile tab's sheet view with a block picked

A click picks one tile, as in the other views. A drag picks a block: a rectangle of tiles as wide and high as you dragged, which cannot cross a dashed line. With a block picked:

A Jungle temple picked as a block and laid three times by one drag

While a block is picked the brush size shows the block's size. Picking a single tile again (a click in any view, the Tile # box, Alt+click on the map, or Single tile) goes back to the brush. A block belongs to the map and tileset it was picked on. Symmetry does not mirror a block: its pictures face one way, so it is laid under the pointer only, as a paste is.

Pieces#

The Tile tab's pieces view lists the parts of the sheet that maps lay whole: a wall, a ramp, a ruin, each drawn in its own outline. A click picks a piece as a block, to lay as above, and the sheet then shows where it came from. Hold the pointer over a piece for its size, its group and how often maps lay it; Most laid first puts the pieces maps use most at the top.

Nothing in a tileset says where one picture ends and the next begins, so the editor goes by how maps lay the tiles: two tiles that are neighbours in the sheet, and are laid as neighbours most of the times either is laid at all, belong to one piece. At first only the map in front is read. Learn from Maps… reads every map in a folder you choose and keeps what they lay in the browser for later sessions. When it is done, a notice says how many maps it read and skipped, and how many pieces each tileset now has, and the line above the pieces says how many learned maps this tileset's list comes from. Learning again replaces what was learned. Forget (the eraser beside the line) drops it, and so does Preferences ▸ Storage ▸ Clear all data.

Heal#

A seam is a line where two tiles' pictures do not meet: one tile ends lighter or darker than the next begins. Ground laid with the isometric brush has almost none; they show up around hand-placed tiles, stretched ramps and pasted blocks. While the Heal tab is open the map marks every seam with a pink line, as View ▸ Seam Overlay does, and the tab counts them.

Drag over a seam, and where the tileset has a look-alike tile that lines up better with its neighbours, Heal lays that tile instead.

The same ground before and after the Heal brush, with the seams marked

Heal only takes a tile that is the same to the game: it walks, builds and blocks sight exactly as the old one does, at the same height, and is the same kind of ground. A stroke changes how the map looks and nothing about how it plays. Ground without a seam is left as it was laid.

The status bar says what each stroke did: how many tiles it changed and how many seams there were under it before and after. When it changed nothing, it says why:

The tab's button does the same over the marked area, or over the whole map when nothing is marked. On the game's own maps that removes about half of the seams and changes one tile in a hundred. A stretched ramp gains less, since few tiles play the same as a ramp's. Always show keeps the seams marked after you leave the tab.

Pin#

Pin keeps ground as you laid it. The isometric brush works out every tile around the diamonds it changes, so a stroke beside a ramp you built tile by tile takes part of the ramp with it. Drag the Pin brush over tiles to pin them, and such a stroke leaves them alone.

The Pin tab, and a stretched ramp whose pinned tiles an isometric stroke beside it has left whole

The tab's Unpin choice turns the brush round. Pin All Hand-Laid Tiles pins every tile the map's isometric record does not account for, which on a map from another editor is the ramps, blends and stray tiles its maker set by hand. With an area marked on the Cut / Copy / Paste layer, it and the tab's other buttons work inside the area. A doodad placed as terrain is pinned as it goes down, unless Pin terrain doodads is unticked on the Doodads layer.

Pinned tiles carry a mark in their corner while the tab is open, and View ▸ Pinned Tiles keeps the marks on elsewhere. Pins are saved in the map file and move with their tiles when the map is resized. The game does not read them, and another editor will not keep them.

Overlays and tools#

Two overlays on the View menu show what the ground means to the game:

The elevation overlay tints each minitile by its height

The buildability overlay hatches the tiles a building cannot stand on

View ▸ Seam Overlay marks the seams, the places where the ground's picture breaks. It draws a line along every join between two tiles where the picture steps: one tile ends lighter or darker than the next begins, by more than either picture changes by itself at that edge. Rough rock hides a seam that a smooth slope shows, and the overlay weighs them the same way. The stronger the line, the plainer the seam. The Heal tab turns the overlay on while it is open.

The seam overlay on a ramp stretched along a cliff: lines where its tiles do not meet

Ground laid by the isometric brush is almost free of seams; a few stand around doodads and cliff faces, where the game's own pieces meet roughly. Hand-placed tiles, a stretched ramp and a pasted block show where they need touching up: Heal mends what it can without changing how the map plays, and the Tile and Blend brushes are for the rest. The overlay compares the classic pictures, so with Remastered Graphics on it marks the same seams, whether or not the 2x pictures hide them.

View ▸ Walkability (Ctrl+Shift+W) draws the ground as a unit walks it: islands, the areas the map divides into, the chokes between them with their widths, and the distances between start locations. In the editor at scmjs.dev its panel (Tools ▸ Walkability…) can also have the game itself walk the map: the regions the game plans routes over, real units walked between the start locations, a group of twelve units timed through every choke, and how fast each start location mines with 8, 16 and 24 workers.

File ▸ Import ▸ Terrain from Image… turns a picture into terrain with the isometric brush, over the whole map or a rectangle. Walkability and Terrain from Image are plugins, on from the start; see Plugins.

Tools ▸ Replace Terrain… turns every tile of one terrain type (or one exact tile) into another, over the whole map or the area marked on the Cut / Copy / Paste layer. Tools ▸ Fill Terrain lays the whole map anew. Both are one undo step.

Symmetry#

Symmetry mirrors what you do across the map's axes or about its centre. M or the toolbar button turns it on and off, and the list beside the button picks the mode: left ↔ right, top ↔ bottom, four-way, a half turn, quarter turns, or either diagonal. The last three need a square map. While a mode is on, the axes show on the map and the ghost shows where the copies will land.

Each change is one undo step. Tools ▸ Symmetry… describes each mode and has the option to keep copies for the same player instead.

A doodad cannot be flipped, so across a left-right mirror its image is its twin: the doodad the tileset drew as its mirror image. A ramp for a cliff running down to the right gives the ramp for the cliff running up to the right, a bridge gives the bridge running the other way, and a stretched one gives its twin stretched the same. Every ramp and bridge of the game's eight tilesets has a twin, and selecting a doodad selects its twin too, so the two move together.

A cliff ramp and its twin placed across a left-right mirror

The status bar names the twin, and says when the game's two do not play alike: the two Desert cliff ramps differ in 83 small squares of height and ramp, the Ice ones in 16, and in Badlands, Jungle, Ashworld and Twilight the cliff ramps are exact images. Across a top-bottom mirror or a half turn a doodad has no twin, since no tileset has a ramp drawn facing up the screen, and the same doodad is tried there instead.

Is the map the same on every side?#

The Symmetry dialog also measures the map as it stands. Beside each mode is how much of the ground plays alike on every side under it, so a map opened from somewhere else shows which symmetry it was made with: a mirrored map reads 98% or more under its own mode and far less under the others, and a map drawn freehand reads low under all of them.

The Symmetry dialog on a mirrored map, with the places that differ listed

Under the mode you pick, The map as it is says how many small squares (a quarter of a tile each way, the size the game decides walking and height at) do not match their images, split into walking, height and building, and lists the largest places as buttons. A button applies the mode, goes to the place and turns on View ▸ Symmetry Differences, which paints each such square red, or amber where only building differs, on both sides. Mineral fields, geysers and start locations are checked too: each wants one of its kind at every image of its spot, holding the same amount.

The Symmetry Differences overlay marking the squares that differ on both sides of the axis

Some differences are the game's, not yours. A tile cannot be flipped, so the far side of a mirrored map is built from other tiles, and the game's own ramp pairs do not carry quite the same flags: mirror a Desert cliff ramp and 69 small squares stand at another height on one side.

scmJS 0.18.0 · 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.