Space Engineers

Space Engineers

72 个评价
Assembly Cleaning
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
680.000 B
2015 年 1 月 10 日 下午 8:11
2017 年 1 月 15 日 上午 8:11
4 项改动说明 ( 查看 )

订阅以下载
Assembly Cleaning

描述
You can also check out my Item Sorting script to help keep all your containers categorized and sorted.

I have also made a Selective Refining script, which will let specify the type of ores you want going into your refineries.

•This script will clean out ingots from your assemblers "input" inventory when your assembler's queue is empty or cannot produce whatever is in the front of the queue for whatever reason.

•Your assembler can become so full of ingots that it cannot pull the ingots it needs in order to create the item in the front of its' queue. This script should solve that problem.

•When you assembler doesn't have anything to produce, this script will also move out the extra ingots in its' inventory to keep everything clean and organized.

•If your assembler is trying to produce an item you only have some of the ingots for, you should notice it's inventory pulling the ingots it does have, and them moving them back out because it cannot produce the next item. You should take this as a sign that you are missing ingots for the item you are trying to make.

•To get the block working correctly, be sure to attach it to a Timer Block. Simply build the Timer Block and setup its' action to run the script, and then start itself. A delay of 1-2 seconds seems to work perfectly fine.

•If you have any suggestions or problems please let me know!
热门讨论 查看全部(4)
2
2015 年 1 月 13 日 上午 12:23
When moving items from Assembler's Inventory, for loop should count backwards.
Psicraft
1
2015 年 1 月 13 日 上午 2:28
It's not necessary to cast assembler to IMyProductionBlock.
Psicraft
0
2017 年 12 月 10 日 下午 1:24
Empty assemblers as they fill
Scorpion00021
33 条留言
Torki 2021 年 9 月 28 日 下午 3:54 
Lucid 2021 年 8 月 3 日 下午 7:40 
worked some time ago with the help from wurfelhusten but now it dont work
! ! _ _ G R E Y _ _ ! ! 2021 年 7 月 19 日 上午 11:54 
Doesn't seem to work...
Glytchii 2020 年 12 月 18 日 上午 11:27 
Stops cleaning out assemblers. Mine are all clogged due to this script
Würfelhusten 2019 年 4 月 29 日 上午 11:06 
Replace
var assemblerInv = assembler.GetInventory(0);
var assemblerItems = assemblerInv.GetItems();

for (int i = assemblerItems.Count -1; i >= 0; i--)
{
assemblerInv.TransferItemTo(containerDestination, i, null, true, null);
}


with

var assemblerInv = assembler.GetInventory(0);
List<MyInventoryItem> assemblerItems = new List<MyInventoryItem>();
assemblerInv.GetItems(assemblerItems);
for (int i = 0; i < assemblerItems.Count; i++){
assemblerInv.TransferItemTo(containerDestination, i, null, true, null);
}


and it should work with 1.190
Gadget 2018 年 8 月 9 日 下午 9:35 
Is this script no longer working??? I can't seem to get it to do anything at all...
Pewter HailStorm 2017 年 12 月 20 日 上午 8:14 
Reptar, if you gave up on this script, please just remove it - pointless to have a "script" on the workshop that is no longer maintained...
AnglizanDer 2017 年 2 月 6 日 下午 1:25 
After last update 1.173 warning in code check - IMyTerminalBlock.SetCustomName(string) is obsolete.
Reptar  [作者] 2017 年 1 月 15 日 上午 8:12 
This is update and should be working again now.
Daddy_J 2017 年 1 月 6 日 下午 6:23 
I get that error too