Skip to content

v1.11.0

Choose a tag to compare

@exdal exdal released this 12 Oct 11:28
· 117 commits to master since this release

/!\ BREAKING CHANGES /!\

Protocol:

  • The server protocol version is now 2. Coop servers with previous protocol versions will no longer work on this version.

Profiles:

  • demir_node_group hook now takes an optional fourth parameter to make object matching easier. An example looks like this:
demir_node_group(
	/obj/machinery/atmospherics/pipe/smart,
	DEMIR_NODE_BLOCKERS,
	null,
	list("piping_layer", "pipe_color")  // nodes now can be matched, if provided, by fields.
)

New features

  • Added Z level deletion. Click the trash button next to the Z level buttons, then confirm. Higher levels shift down, and you can undo the deletion.
  • The block selection is simpler.
    • The Move, Copy, Fill selection, and Clear selection buttons are gone. Drag the selection to move it, Ctrl+drag to copy it, and click outside it to clear it. Press Escape while you drag to cancel.
    • Drag an edge handle to resize the selection. Press the rotate key to rotate it in place.
    • Pasting no longer shows a Paste and Cancel panel. Ctrl+V pastes at once, centered on the cursor, and selects the pasted tiles.
    • Undo and redo now bring back the selection along with the edit.
  • Added a Rectangle Fill tool. Drag a rectangle to fill it with the selected brush, and hold Shift while drawing for a border. It does not change the selection.
  • Added a Runtimes panel. Open it from the Window menu.
    • It lists the faults of each map's bake, grouped by hook. Each fault shows its kind, the line that raised it, and the call stack back to the hook.
    • Click a stack frame to open its source. "Copy" copies the report (and hopefully your minimal Linux distro supports clipboards).
    • Repeated faults on the same line count as one entry. A fault in ui() stays listed until a later frame succeeds.
    • The editor writes each new fault to its log once. The "Bake diagnostics" list in the Compiler settings moved to this panel.
  • Added a "Reload profile" button to the Compiler settings. It recompiles the codebase and its profile without asking for confirmation. Open maps and unsaved changes are kept.
  • Added a matching argument to demir_node_group(). It names one var or a list of vars. The node tool connects two placements only when each named var has the same value, instance edits included.
    • The tgstation, Monkestation, and SecondCity profiles use it, so pipes, cables, and ducts on different layers or colors no longer connect.
    • demir_node_group() now reports an invalid argument as a runtime error. Before, it ignored the call.
  • Added the error DR0404 for a macro that code uses before its #define. A macro applies only after its #define, so an earlier use is read as an undefined variable.
    • If you include a profile from your own checkout, put the #include after // END_INCLUDE in the dme, so the profile comes after the codebase.
  • Text and null variables now open as an expression in the inspector, so the quotes are visible. Right-click a variable and choose "Use typed editor" to switch.
    • An expression that is a bare word, for example weirdpodthing1, now gives an error that asks you to quote it. Maps that already contain one still open.
  • Added Width() and Height() on icons, isfile(), text(), and __TYPE__ to the bake runtime. text() fills each [] with the next argument, for example text("[] of []", count, name).
  • The Goonstation profile now sets up more items and machines during the bake, for example reagent containers, food, guns, and the gravity tether. It also adds lights to a few more machines.
  • Codebases use less memory after the first bake. The bake no longer keeps its appearance cache.

Fixes

  • Fixed sprite blending, which did not match BYOND. The map now blends sprites, overlay lights, and lighting in gamma space like BYOND does, so semi-transparent sprites and glows look like they do in game.
  • Fixed slow drawing on GPUs that cannot map all of their video memory. The sprite and light buffers now live in VRAM (previously they were in BAR, which was pretty fast already on modern GPUs).
  • Fixed atoms on the same layer that drew in another order after an edit than after you reopened the map. This includes moved atoms and atoms that co-op peers edit.
  • Fixed pipes and cables on closed turfs in the tgstation, Monkestation, and SecondCity profiles, which the profiles sank to the floor plane, under the wall. They now keep their own plane.
  • Fixed sharing a map again, or resizing it, while a Z level change was still waiting for the server in a co-op session. Both now wait until the change arrives.
  • Fixed spawn and set waitfor in the bake runtime, which ended the proc with a sandbox error. set waitfor is now ignored. spawn evaluates its delay and skips its body, because the bake is a snapshot taken before deferred work runs.
  • Fixed tiles with more than one turf in the bake runtime. The last turf of the tile is now the turf, like BYOND.
  • Fixed vars in the bake runtime. It now lists only instance vars, always shows their current values, and writing vars[name] sets the var.
  • Fixed issaved(), which always returned true. It now answers for the var, not its value, and returns false for global, static, const, and tmp vars, for example issaved(A.b) or issaved(A.vars[name]).
  • Fixed a?.b(c), which evaluated c even when a was null.
  • Fixed for(var/obj/O as anything in L), which skipped the entries that were not objs.
  • Fixed image(icon('x.dmi')), which treated the icon as an appearance. It now takes the icon file.
  • Fixed new on a type that is not movable, which moved the new object into its first argument when that was an object.
  • Fixed variable initializers that mix constants and runtime values, for example list("a" = new /obj). They now run in the bake runtime.
  • Fixed overrides with an empty body, for example /obj/thing/update_icon() with no statements. They now replace the parent's proc.
  • Fixed new src.type(), which did not parse.
  • Fixed map values in parentheses, for example camera_networks = ("Owlery"), which the map parser did not accept.