Space Engineers

Space Engineers

Not enough ratings
MAM - Minimal Assembler Manager
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
427.793 KB
24 Oct, 2023 @ 6:37pm
24 Oct, 2023 @ 6:51pm
2 Change Notes ( view )

Subscribe to download
MAM - Minimal Assembler Manager

Description
R e a d m e
-----------

MAM - Minimal Assembler Manager

MAM is, as the name indicates, an extremely minimal script to autocraft to quota.
It reads and writes blueprints to the program block CustomData in the same format as ISY,
as well as reading and writing autocrafting quotas to an LCD in a similarly inter-compatible format.
That means using MAM is as simple as adding the tag MAM to the name of the Autocrafting LCD, and putting it into a program block.
If you use a block previously occupiesd by ISY, or you copy the customdata over, it won't even be necessary to teach it the recipes.

However, just like ISY, MAM can learn recipes as needed. It pays attention to the activity of assemblers,
and will quickly and automatically learn anything new it sees crafted, limited only by the one-second update rate assemblers have.
Just queue up enough of the item of interest to take more than a few seconds to craft, and it should learn the recipe.

Notes:
MAM only queues up craft orders right after an inventory refresh, which occurs every 10 seconds.
Autocraft LCD is re-read and re-written every 5 seconds.
MAM currently only queues craft orders, it never removes them from crafting queue if the quota is suddenly met by some other means (like unloading a ship).
MAM never considers docked or subgrid inventories when determine whether a quota is met, only the items in the grid the program block is in.

MAM typically uses 0.02-0.03ms of script time per second, with the highest it spikes around 0.07ms/s, about every 5 seconds (from the Autocraft LCD read/write).

CONFIGURATION
MAM requires and uses an LCD with MAM and Autocrafting in the name. I.E, "MAM Autocrafting".
It will read from and write to the LCD the currently available and desired stock of every known item in the grid.
If the crafting blueprint for an item is not known, it will say "(no BP)" at the end of the line.

This LCD is the only strict requirement-- however, there are several more optional LCDs.
MAM profile
- Displays debug script time utilization metrics.
MAM console
- Message log. Currently, it emits a message when a new recipe is learned.
MAM status
- Inventory list for the grid. Currently not customizable. MAM isn't currently focused on doing what many scripts can do, just crafting.
2 Comments
Rezun 15 Jun @ 3:23pm 
The script uses Survival Kits for the production. They are very slow, so this is annoying. Can I somehow exclude SK from the production?
Isaard 5 Feb @ 2:35am 
Script works well I like how it's nice and simple to use but I did manage to find a way to break it with my own forgetfulness.
I accidentally made an endless inventory loop with 2 sorters set to 'Drain All' and the script seemed to lose count of some of the items because it started endlessly queuing up Interior Plates and Medical Components until my whole base inventory was filled. Other than that its been working well for me, thank you!