Space Engineers

Space Engineers

Not enough ratings
Cargo Manager Script [*Fixed as of 2/23/2020]
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
4.760 KB
19 Sep, 2015 @ 7:03pm
27 Feb, 2020 @ 6:36pm
10 Change Notes ( view )

Subscribe to download
Cargo Manager Script [*Fixed as of 2/23/2020]

Description
Features:
-Automatically stacks all items within the same inventory, ignoring items that can't stack.

-Automatically stack items through conveyor systems from multiple inventories, ignoring items that can't stack. Items will not be stacked from different blocks only just within Cargo Containers, Assemblers, Refineries, or Basic Refineries. Smaller amounts of items will be stacked on top of larger amounts of that same item. It will only stack items within the inventories of the same block types. For example, items from an Assembler will not stack into a Cargo Container but it will stack into another Assembler if there is more of the item within another one.

-Marking of Cargo Containers, Assemblers, Refineries, or Basic Refineries as a Master. The master block will receive all items from the inventory of the same block types. Include the word "Master" anywhere in the name of a block or Custom Data to mark it. This is case insensitive.

Instructions:
Load into an existing programming block and click Run. Updates automatically every 10 ticks.

Last Updated:
2/23/2020
Works on SE v1.193.103+
28 Comments
Redlead  [author] 7 Mar, 2020 @ 10:15am 
Glad to hear it. Thanks for letting me know!
Seromas 7 Mar, 2020 @ 10:10am 
nice update ! love it
Redlead  [author] 23 Feb, 2020 @ 6:25pm 
It works now. I've finally had the time and motivation to fix this one. Hope it isn't too late.
TotalAbyss 22 Feb, 2020 @ 6:55pm 
Does this still work?
J0K3R6397 20 Apr, 2018 @ 6:40pm 
I'm getting an error:

Caught exception during execution of script: Unable to cast object of type 'Sandbox.Game.Entities.Cube.MyAssembler' to type 'Sandbox.ModAPI.Ingame.IMyCargoContainer'.
Mike Loeven 30 Dec, 2017 @ 8:50pm 
Was the casting issue ever fixed or did keen break something again? I Just tried setting up the script again and got a error casting assembler to cargo container
Katraen 13 Sep, 2017 @ 11:24pm 
Can You include programming options so we can add in Custom Data prefered types of items? I'd like to make some cargos stack ores, other ingots and others materials but it keeps doing it on his own style. Also excluding cargos would be amaizing.
Redlead  [author] 17 Jan, 2017 @ 6:07pm 
I'll see what I can do about this.
Mike Loeven 17 Jan, 2017 @ 2:28pm 
Confirmed Casting issue with Assemblers and refineries
Deapri 21 Oct, 2016 @ 3:14pm 
Invalid cast on both Assemblers and refineries commented out both block types and the script regains function however thought you might want to know.