Multiple Inventories? 5/5 (1)

posted in: Scripts | 0

So what is the deal with blocks that have multiple inventories? If you look at my inventory sorting scripts (Ore Sorting, Ingot Sorting or Component Sorting) you will see that in some cases I use the first inventory, and in … Continued

Mea Culpa 5/5 (1)

posted in: Uncategorized | 0

I made a mistake on my initial posting of my inventory sorting scripts: Ore Sorting Ingot Sorting Component Sorting The loop that went through the items was supposed to start like: < View plain text > C# for(int j = … Continued

Component Sorting 5/5 (1)

posted in: Inventory Management, Scripts | 3

This script will take all the components in your containers, assemblers and connectors and move it to a container (or containers) called “Components” (you can change the name of the destination container(s) by changing the constant string at the beginning … Continued

Ore Sorting 5/5 (1)

posted in: Inventory Management, Scripts | 3

This script will take all the ore in your containers, refineries and connectors and move it to a container (or containers) called “Raw Ore” (you can change the name of the destination container(s) by changing the constant string at the … Continued

So… What is this “var” thing? 5/5 (3)

posted in: Tutorials | 0

In programmable block scripts you will see a lot of code that declares an object as “var” and assigns something to it. For example: < View plain text > C# var containerInvOwner = (IMyInventoryOwner)containerList[i];       var containerInv = … Continued

Accessing All Blocks in a Grid 5/5 (1)

posted in: Snippets | 0

Each station or ship is a separate grid. You’ll see a lot of conversation on the Keen forums on how you cannot access, in your program on your programmable block, any blocks that don’t belong to the same grid. What … Continued

Empty Assemblers 4.5/5 (4)

posted in: Inventory Management | 2

This script will take all of the raw materials (ingots, wafers, etc) out of the assembler and put them back into cargo containers. This avoids the problem of having items in the assembler and the assembler not being able to … Continued