Space Engineers

Space Engineers

评价数不足
Cargo Manager Script [*Fixed as of 2/23/2020]
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
4.760 KB
2015 年 9 月 19 日 下午 7:03
2020 年 2 月 27 日 下午 6:36
10 项改动说明 ( 查看 )

订阅以下载
Cargo Manager Script [*Fixed as of 2/23/2020]

描述
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 条留言
Redlead  [作者] 2020 年 3 月 7 日 上午 10:15 
Glad to hear it. Thanks for letting me know!
Seromas 2020 年 3 月 7 日 上午 10:10 
nice update ! love it
Redlead  [作者] 2020 年 2 月 23 日 下午 6:25 
It works now. I've finally had the time and motivation to fix this one. Hope it isn't too late.
TotalAbyss 2020 年 2 月 22 日 下午 6:55 
Does this still work?
J0K3R6397 2018 年 4 月 20 日 下午 6:40 
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 2017 年 12 月 30 日 下午 8:50 
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 2017 年 9 月 13 日 下午 11:24 
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  [作者] 2017 年 1 月 17 日 下午 6:07 
I'll see what I can do about this.
Mike Loeven 2017 年 1 月 17 日 下午 2:28 
Confirmed Casting issue with Assemblers and refineries
Deapri 2016 年 10 月 21 日 下午 3:14 
Invalid cast on both Assemblers and refineries commented out both block types and the script regains function however thought you might want to know.