Space Engineers

Space Engineers

评价数不足
[Obsolete] [Broken] Refinery Inventory Rotator
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
525.000 B
2017 年 2 月 6 日 上午 11:25
1 项改动说明 ( 查看 )

订阅以下载
[Obsolete] [Broken] Refinery Inventory Rotator

在 Meridius_IX / Lucas 的 1 个合集中
Meridius_IX's Script Library
5 件物品
描述
Description / How It Works:
This script will rotate the items in your Refinery production queue. This is useful if you've loaded a large assortment of Ore to the Refinery and you don't wait it to be stuck processing a single type for a long time.

Blocks Required:
- 1x Refinery (or more)
- 1x Programmable Block
- 1x Timer Block

Refinery Setup:
Add (RotateInv) to the name of any Refinery you want managed by the script.

Timer Setup:
Set the timer delay to how often you want the inventory items to rotate, along with the following actions:
- Programmable Block -> Run Without Argument
- Timer -> Start
19 条留言
Amiti 2019 年 6 月 24 日 上午 10:10 
Amiti 2019 年 6 月 19 日 下午 2:45 
sure ;p put this one one obsolete tag and link the new one i just have put my noob patch for waiting ;p
Meridius_IX / Lucas  [作者] 2019 年 6 月 19 日 下午 12:07 
if you've got a working version up and running, feel free to republish it. I likely won't be updating this one, but I can link to yours if you'd like :)
Amiti 2019 年 6 月 19 日 上午 11:13 

string refinery_naming_tag = "(RotateInv)"; // Any Refinery containing this tag in its name will be managed by this script.

void Main(string argument){

List<IMyTerminalBlock> refinery_list = new List<IMyTerminalBlock>();
IMyRefinery refinery;
GridTerminalSystem.GetBlocksOfType<IMyRefinery>(refinery_list);

if(refinery_list.Count != 0){

for(int i = 0; i < refinery_list.Count; i++){

refinery = refinery_list as IMyRefinery;
if(refinery.CustomName.Contains(refinery_naming_tag)){

IMyInventory refinery_inv = refinery.GetInventory(0);
Random random = new Random();
int s = random.Next(7);
refinery_inv.TransferItemTo(refinery_inv, 0, s, true, null);

}

}

}

}
Amiti 2019 年 6 月 19 日 上午 10:43 
it more like a random switch than it was but it switch XD
Skallabjorn 2019 年 3 月 2 日 下午 6:04 
Alas... 1.189.0 broke it... ;(
Skallabjorn 2018 年 8 月 16 日 下午 6:30 
Anyway to get this working without a timer block?
Rasip 2017 年 12 月 8 日 下午 1:38 
Just wanted to say thank you. This is one of the best scripts on the workshop.
Meridius_IX / Lucas  [作者] 2017 年 10 月 16 日 下午 1:58 
Meridius_IX / Lucas  [作者] 2017 年 10 月 16 日 上午 11:41 
@Anach & #Ronald - Steam or SE is being a pain in the arse today, and isn't letting me upload the script for the assembler. Here's a pastebin link if you still want to use it anyway!

https://pastebin.com/cxAWP9yc