Space Engineers

Space Engineers

68 ratings
Selective Refining
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
4.550 KB
10 Jan, 2015 @ 3:24am
14 Jan, 2015 @ 3:02am
4 Change Notes ( view )

Subscribe to download
Selective Refining

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

If your assembler is getting clogged with ingots, you should check out my Assembler Cleaning script.

•This script will allow you to specify which type of ore you want your refineries refining.

•To make a refinery refine only certain ore, add a "+" and the name of the ore to the refinery's name, for example renaming a "Refinery +gold" would make that refinery pull only gold into refine. You can do more than one type of ore, for example "Refinery +gold +uranium" would refine only gold and uranium. You can read the "+" as "refine only" and any subsequent "-" as "and". So the second example can be read as "Refine only gold and uranium".

•You can also make a refinery not refine a certain type of ore by adding a "-" followed by the name of the ore. Just as with the "+", you can do this with multiple types of ore, for example renaming a refinery "Refinery 01 -stone -iron" would make that refinery refine everything except for stone and iron. You can read the first "-" as "refine everything except for" and any subsequent "-" as "and". So the example can be read as "Refine everything except for stone and iron".

•If you want a refinery to refine other types of ore if there are no ores on its' "+" list available, use the vertical bar symbol("|") and then the ore type. For example, naming a refinery "Refinery +gold |all" would refine gold first if there is any for it to pull, and if there is no gold any other type of ore. Another example would be naming a refinery "Refinery +iron |uranium", in which case the refinery would refine iron first, and if there was no iron to pull it would pull any uranium and refine that. You can read the "|" as "or". So the second example can be read as "Refine only iron or uranium".

•Refineries that become empty will also turn themselves off to conserve power. Once there is something for them to refine, they should turn themselves back on and start refining.

•The ore should be split up evenly among the refineries that are accepting that type of ore. For example if you drop 20k iron into a connected container, and have a refinery named "Refinery +iron" and another named "Refinery +all", 10k iron should be sent to each refinery.

•As in the example above, you can add "+all" to a refinery name to have it collect all types of all. This will allow it to act like a normal refinery and pull all ore, and also be included in the refineries that the ore is split between in the script.

•The ore names are not cast sensitive, so as long as you spell them correctly it shouldn't matter how they are capitalized for the script to work.

•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!
94 Comments
Leon 5 Aug, 2020 @ 2:32pm 
thx
Welerongorgo 5 Aug, 2020 @ 2:21pm 
If anyone's still interested in this script. I've posted a fixed version of it to the workshop which brings the code up to date.

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2188612790

It doesn't look like this one is going to be updated any time soon.
Leon 11 Jul, 2020 @ 4:34pm 
updat plz
Orhunersy 13 May, 2020 @ 1:40am 
Please Update
zarozak 7 Feb, 2019 @ 3:39am 
still not working
Leon 11 Dec, 2018 @ 7:07pm 
updat plz
______ 2 Nov, 2018 @ 6:32am 
No Function
xXPredzioXx 1 Jun, 2018 @ 5:08pm 
damn i love this script if you culd update it i wuld be greatfull
Yumata 15 Aug, 2017 @ 5:23pm 
Old Code,No Function
Leon 29 Apr, 2017 @ 4:08pm 
updat plz ?!