Scripts
You can automate many interactions in game through Programmable Block Scripts: Auto-updating LCD text and images, vector thrust flight, subgrid steering, automatic component production, or automatic inventory sorting, and much more.
Even though both are found on the workshop, scripts are different from mods. Scripts are harder to set up and to keep up-to-date than mods. You must load scripts in game into Programmable Blocks. Typically, you will need to build additional blocks and configure them in-game for the script to run.
It is recommended for new players to learn the base game (so called “vanilla”) first. The simplest scripts can be replaced by Event Controllers and Automatons. If you later need to fix a specific “quality of life” issue, you can still look into mods and scripts.
You either download community scripts from the public Workshop, or you write your own. This page is about how to use Scripts, and not about how to write them, for that, see Scripting.
Prerequisites
- Scripts run only on PCs (Steam and Microsoft Store) and Dedicated Servers; Sony PlayStation and Microsoft XBox consoles disallow them.
- You must enable Experimental mode in the game Options.
- The save game's World Settings must allow in-game scripts.
How to install scripts
Community members are sharing scripts on the Steam workshop. Rarely they are hosted on mod.io, or simply copied and pasted from shared C# (text) files.
- Go to the Steam workshop and log in.
- Select the type:InGameScript filter and search for interesting scripts. Reset other filters to broaden or restrict the search.
- Subscribe to the scripts of your choice. Subscribing to a script downloads it into your local script browser.
Now open Space Engineers and load a world whose world settings allow in-game scripts.
- Build a Programmable Block (PB). For details, read the PB page!
- Open the PB’s Control Panel Screen and click Edit.
- Click Workshop.
- Browse your subscribed workshop scripts, and paste the desired script.
- Read the instructions on the workshop page and also follow the comments inside the script!
- Click Check Code, then click OK.
- Click Compile and Run.
Expect to have to build or rename related blocks, enter Custom Data into Blocks, and recompile and rerun a few times as instructed, before the script works.
How to Update Scripts
When loaded from a Workshop subscription, scripts in your workshop script browser will auto-update -- but you still need to copy and paste the updated script into the Programmable Block manually!
If you have made configuration changes in the script, keep a local copy of the old one in a text editor to not lose your chosen values. Then compare it with the new copy and enter the same values again.
How to run scripts on consoles
As mentioned in Prerequisites only Steam (PC) and Dedicated servers can run scripts.
That means other platforms joining dedicated servers can also use scripts!
This of course requires the dedicated server to be in experimental mode and have Ingame Scripts enabled. You can see both of these before joining in the Server Details window.
For more info see Multiplayer Join Screen.
Community members have added ship blueprints with some popular scripts:
- https://spaceengineers.old.mod.io/scripts-collection-a
- https://spaceengineers.old.mod.io/scripts-collection-b
- https://spaceengineers.old.mod.io/scripts-collection-c
- https://spaceengineers.old.mod.io/script-collection-d
If you wish to see a script on mod.io please ask the author. Do not upload other people's work without their permission.
Examples of scripts that can run in Space Engineers
- Automatic LCDs 2 - Everything you will ever need to know about your ship and station displayed in real time on LCD panels in any vanilla games.
- Isy’s Inventory Manager — Automatic sorting of items into cargo containers, automatic crafting, automatic disassembling, ore balancing for refineries, LCD support, and more!
- PAM (Path Auto Miner) — controls drones for automated mining, grinding, and cargo transportation.
- Whip's Artificial Horizon Redux — better cockpit flight display
- Vector Thrust OS — Control unidirectional spinning thrusters that are attached through Rotors.
- Whip's Subgrid Thruster Manager — Control static thrusters that are attached through angled locked Rotors or Hinges.
- Whip's Subgrid Wheel Control Script — Control static wheel suspensions that are attached through locked Mechanical Blocks.
- PARK (Piston And Rotor Keybinds) — Assign custom piston and rotor actions to WASD keys, e.g. for cranes and robot arms.
- Skid Steering Script — Control tank-like driving behaviour for wheel suspensions.
- All My Stuff — Keeps track of your inventory contents on LCDs.
- ALight - Aeyos’ Lighting Script — Control RGB lights and change colours.
- Nanobot Build and Repair Queuing / Display / Scripting — An extension to the Build & Repair Mod.
- Telemetry Plus — View tactical info about allied ships’ status and position on LCDs.
- Supply Lines — Control the percentage of ore types stored.
- ProjectorInfo — Shows on an LCD how many blocks of a projected blueprint have been welded up.
- Transmitter and Receiver Script — Trigger remote actions in other owned grids through antennas.
- Simpler Transmit Receive 2 — A simpler variant of the Transmitter and Receiver Script.
- AAECS — Advanced Automatic Elevator Control Script
- TMC Tree Menu Command NET — lets you create custom menus to select actions on in-game LCDs
- TCES Turret Controller Enhancement Script — Supports more than two Rotors/Hinges
- Coren's Easy Automation