Space Engineers

Space Engineers

31 ratings
Auto Assembler V1.0
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
2.669 KB
15 Jan, 2015 @ 10:06pm
20 Mar, 2016 @ 11:24am
7 Change Notes ( view )

Subscribe to download
Auto Assembler V1.0

Description
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
52 Comments
Shorty 1 Nov, 2022 @ 3:44pm 
Hey, I fixed the bugs and uploaded it here: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2883197675

If the original author starts maintaining this again, then I'll take this down
kn-heal 13 Sep, 2021 @ 8:58pm 
can you fix this plz been trying to fix it for over two months now no go
kn-heal 10 Oct, 2019 @ 1:59pm 
anyone know if there is a component crafting script out there that actuly works
kn-heal 11 Sep, 2019 @ 2:24pm 
doesen't work anymore
Saikred™ 4 Nov, 2018 @ 1:49am 
This works but requires one change.
Change one of the lnes near the bottom from
if(item.Content.SubtypeName == assembler.material)
to
if(item.Content.SubtypeId.ToString() == assembler.material)
Should work happily after that.
Cattasraafe 11 Aug, 2018 @ 4:54am 
Is this script still working?
Endoor 8 Apr, 2018 @ 12:21pm 
It does work for me. But you need to specify the same name on the assembler as in the script
Example: Assembler {SteelPlate:4000}
If you misspell with Steelplate or SteelPlates it wont work.
And you need some storage area with {Storage} so it know where to count.
DaddyCool1964 26 Mar, 2018 @ 10:42am 
Don't work at the Moment. It started the Assembler, but don't stoped it
Slye_Fox 17 Feb, 2017 @ 3:14am 
How do I find the name of mod components?
Willy Gmod 11 Dec, 2016 @ 3:16am 
I've made a tutorial for this, but it's in french, sorry : https://www.youtube.com/watch?v=1iRZVX9dFBY