DUTCSCRIPT GUIDE

Every tag, one page

LCD tags, block keywords and toolbar arguments for all four DUTC Space Engineers scripts. Search for anything, click a tag to copy it, click a preview to see the screen it makes.

Put it in the name

A tag goes anywhere in a block's name: LCD Panel [BATT], Corner LCD DUTC-warn. One block can carry several tags.

Cockpit screens

Blocks with several screens take a number, counting from 0: Cockpit [POWER:1] is the second screen. [BATT:0] [DRAIN:1] puts two views on one cockpit.

Brackets or not

Power Deck, Solar Tracker and Build & Repair use square brackets. Inventory Manager tags have none, like DUTC-main, so old Isy's setups keep working.

One PB each

Every script runs on its own programmable block and starts by itself. Arguments go in the PB's Run box or a toolbar slot.

Dutc Power Deck

Battery manager: turns hydrogen engines and reactors on when batteries run low and off again when they're full, plus power, gas and docking screens. Tag producers as main, backup or emergency power to control each tier on its own.

Screens

Battery status. Charge %, charging or draining rate, time to full or empty, backup state. The PB's own screen shows this too.
Power producers. Every producer with an on/off dot and live output. With Solar Tracker running too, each tracked array is one row.
Power usage. Everything drawing power, biggest first, so you know what to switch off. DRAIN_TOP and DRAIN_MIN_KW trim the list.
Hydrogen tanks. Total gauge plus a fill bar per tank.
Oxygen tanks. Total gauge plus a fill bar per tank.
Gas storage. Hydrogen and oxygen together on one screen.
Docking list. Every ship docked on a connector: battery %, hydrogen %, charging or draining, and which connector it sits on. A ship docked to a docked ship shows "via" that ship.

Block keywords

On a power producer: main power, kept on. Works on any reactor, engine or modded generator (fusion reactors, TD Power Core...).
On a power producer: backup power, on at 20%, off at 90%. Untagged hydrogen engines and reactors are backups already.
On a power producer: emergency power, only on at 5%, off again at 30%.
On any block: Power Deck leaves it alone. It isn't switched, counted or listed.

Arguments

Force backups on and keep them on.
Force backups off and keep them off.
Every tier back to automatic: main on, backups on at 20% and off at 90%, emergency power on at 5% and off at 30%.
Switch the [MAIN] tier by hand, or back to automatic. Just main toggles it.
Same for the [BACKUP] tier. Just backup toggles it.
Same for the [EMS] tier. Just ems toggles it. A tier switched by hand shows a * on the screens.

Settings

At the top of the script.

Battery % where backups switch on and off. Default 20 and 90.
Battery % where [EMS] emergency power switches on and off. Default 5 and 30.
Treat untagged hydrogen engines as backups. CONTROL_REACTORS does the same for reactors. Tagged blocks are always switched.
Also watch and control ships docked on connectors. Off by default, so a docked ship keeps its own screens.
Show only the top N consumers on [DRAIN]. 0 shows everything.
Hide consumers drawing less than this many kW on [DRAIN]. Hidden blocks are summed on the screen.

DUTC Solar Tracker

Points your solar panels at the sun with rotors and hinges. One-axis, two-axis and big winged arrays, as many as you like from one PB.

Block tags

On every rotor and hinge that moves panels. Not on the panels, they're found by themselves. Each tagged base rotor is one array, numbered in name order.
On a solar panel: left out of tracking and the totals.
Night lights. On any light (or any block with an on/off switch): turns on at sunset, off at sunrise. The brightest solar panel decides, so fixed panels work too, no trackers needed. Only switched at sunset and sunrise, so you can still flip it by hand in between.

Screens

Tracker overview. Total efficiency and output, one row per array with its state. Shows your battery level when Power Deck runs on the same ship. The PB's own screen shows this too.

Arguments

Add an array number to act on one array only: off 2, align 1.

Realign now.
Stop tracking and lock the rotors.
Resume tracking.
Reload blocks right away. It also rescans by itself about every 10 seconds.

Settings

At the top of the script.

How dark it has to get before [NIGHT] lights go on: % sun on the brightest panel. Default 5.
How often a locked array looks for a better angle. Default 60.
Lock the rotors while they hold position. On by default.

DUTC Build & Repair

Companion for the SKO Nanobot Build and Repair System mod (maintained version): sets up new BaR blocks with your settings, queues missing parts and shows weld progress.

Screens

Status overview. State banner, stat tiles, health per BaR system and what auto-queue is doing.
Live weld progress. Active welds pinned on top, bar and % per block, in the order they'll be welded.
Weld targets in work order.
Grind targets.
Missing components with amounts, biggest first.

Block keywords

On one BaR block: the block capture copies its settings from. Without it, the first one found is used.
On an assembler or other block the script should leave out.

Arguments

Save the settings of a BaR block as your profile (kept in the PB's Custom Data). New BaR blocks get it automatically.
Apply the profile to every BaR block now.
Turn auto-queuing of missing components on or off.
List exactly which assemblers the script found.
Switch all BaR systems on or off.

Settings

At the top of the script.

Which grids it sees: 1 this grid, 2 this ship with rotor and piston parts (default), 3 everything connected, connectors too.
Queue missing components automatically. AUTO_SETUP applies the profile to new BaR blocks.
Let survival kits take queue jobs. Off by default.
Only queue to assemblers in this terminal group. Empty uses all of them.

DUTC Inventory Manager

Sorting, autocrafting, refinery and assembler feeding, ice and uranium balancing. A drop-in replacement for Isy's Inventory Manager: its tags and keywords work unchanged.

Screens

No brackets. Cockpit screens: DUTC-main:0 is the first screen. Text size per screen: UIScale=0.8 in that block's Custom Data.

Status overview. Fill bar per container type, machines, queue, warnings and recent actions.
Item lists with bars. Filters go in the LCD's Custom Data (Component, Ingot, SteelPlate, regex). Long list? Add DUTC-inv 2, DUTC-inv 3 with empty Custom Data and it carries on.
Crafting status. Wanted amounts live in its Custom Data, prefilled with every craftable item. Several screens: Autocrafting 1, Autocrafting 2.
Warnings, numbered.
Action log: every item moved, with a timestamp.
Isy's tags still work: IIM-main, IIM-inventory (with @0 sections), IIM-warnings, IIM-actions.

Container names

Put a type word in a cargo container's name and that type gets sorted into it. No container for a type? The biggest free cargo gets tagged by itself.

Also Ingots, Components, Tools, Ammo, Bottles, Food. Optional: Ice, Gravel.

Block keywords

Loadout container. Amounts go in its Custom Data, with Isy's modes: 100, 100M (minimum), 100L (limit), All.
The script never touches it.
Not counted, not shown, left out of sorting.
On a refinery, assembler or other machine: excluded from management.
On a connector: the ship docked there is left alone. [No IIM] does the same.

Autocrafting lines

One line per item in the Autocrafting screen's Custom Data.

SteelPlate=15000Keep 15000 in stock.
SteelPlate=15000PModifiers after the amount: P craft first, I ignore, D disassemble the excess, H hide from the screen.
Item=100 BP:SubtypeForce a blueprint name for a stubborn modded item (or queue it once by hand and the script learns it).
Ingot/Iron=50000Refinery quota: ore feeding stops at the target and starts again below it.

Arguments

Stop and restart the script.
Clear blueprint caches. Run it after adding new assemblers.
List item ids matching the text, to get exact names for the autocrafting list.
Test a blueprint name and show which assembler types can see it.
List every blueprint learned from items you queued by hand.
On a docked ship's PB: empty its cargo into the other grid, or fill its Specials from it.

Nothing matches that. Try a shorter word.