Skip to content

Atomic Batches

Normal writes wait for the game thread, so a shell loop lands one command per frame. A batch validates every line first, then executes the whole group in order in one tick. Very useful for formations, coordinated FX, and a suspiciously well-timed party light switch.

Terminal window
cat > /sim/ctl/batch <<'EOF'
vessels/active/ctl/lights 1
vessels/active/ctl/rcs 1
commit
EOF

Paths are /sim-relative, though bare and /sim/-rooted spellings also work. Close without commit and the unfinished batch is discarded. A failing path or value rejects the whole submission before anything fires.

Next: Timed sequences spread the same command language over a clock.