Space Engineers

Space Engineers

Not enough ratings
Auto Assembler v1.1
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
380.904 KB
1 Nov, 2022 @ 3:40pm
1 Change Note ( view )

Subscribe to download
Auto Assembler v1.1

Description
Copied and fixed from https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=375750713


This in-game/programming block script manages your assemblers for you so you always have a certain number of each item in stock. It works by making each assembler responsible for crafting just one type of item. It counts the number of the items you have in a specified cargo container and turns the assemblers on and off to maintain the specified amount of items. It automatically moves assembled items out of the assemblers and into the specified cargo container(s).

Instructions:

Set delimiters and storage tag to your preferences. By default they are curly braces "{ }" and "storage".
Add your storage tag (default: {storage} to a cargo container. Ex: "Large Cargo Container {storage}"
Add the assembler tag to an assembler. Specifying the Item SubType name and number of the items you want to keep in stock. Ex: "Assembler 1 {Computer:100}"
Turn off the assembler, queue up about 10 items of the type you specified in the assembler tag, and set it to infinite mode. Queuing up more than one seems to make assembling more efficient.
In a timer block, set it to trigger the programming block containing this script and trigger itself to start. You can set any delay but it will be more accurate the shorter amount of time you give. Start the timer block.
Watch your {storage} cargo container fill up to the amounts you specified in the assembler tags.

Note: It will not be perfectly accurate in how many items it keeps in stock but it should keep a minimum of the amount you specify. The reason for this is the assemblers will continue to craft during the time between script runs so it won't necessarily stop the assemblers at exactly the right time.

All blueprint subtypes in the game
Note: Some are not used by the assembler.

AmmoMagazine
============

Missile200mm
NATO_25x184mm
NATO_5p56x45mm


Component
=========

BulletproofGlass
Computer
Construction
Detector
Display
Explosives
Girder
GravityGenerator
InteriorPlate
LargeTube
Medical
MetalGrid
Motor
PowerCell
RadioCommunication
Reactor
SmallTube
SolarCell
SteelPlate
Thrust


Ingot
=====

Cobalt
Gold
Iron
Iron
Magnesium
Nickel
Platinum
Silicon
Silver
Stone
Uranium


PhysicalGunObject
=================

AngleGrinderItem
AutomaticRifleItem
HandDrillItem
WelderItem