Space Engineers

Space Engineers

Assembly Cleaning
33 Comments
Torki 28 Sep, 2021 @ 3:54pm 
Lucid 3 Aug, 2021 @ 7:40pm 
worked some time ago with the help from wurfelhusten but now it dont work
! ! _ _ G R E Y _ _ ! ! 19 Jul, 2021 @ 11:54am 
Doesn't seem to work...
Glytchii 18 Dec, 2020 @ 11:27am 
Stops cleaning out assemblers. Mine are all clogged due to this script
Würfelhusten 29 Apr, 2019 @ 11:06am 
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 9 Aug, 2018 @ 9:35pm 
Is this script no longer working??? I can't seem to get it to do anything at all...
Copper Boltwire 20 Dec, 2017 @ 8:14am 
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 6 Feb, 2017 @ 1:25pm 
After last update 1.173 warning in code check - IMyTerminalBlock.SetCustomName(string) is obsolete.
Reptar  [author] 15 Jan, 2017 @ 8:12am 
This is update and should be working again now.
Daddy_J 6 Jan, 2017 @ 6:23pm 
I get that error too
DasBaconfist 7 Oct, 2016 @ 6:27am 
Hi, I've got a Warning while compiling.
[img] https://s22.postimg.org/eqpxz2l1d/2016_10_07_14_45_20_Greenshot.png [/img]
GhostFacedNinja 13 Sep, 2016 @ 12:23pm 
Currently not working: ModAPI changes
Bobisback 25 Aug, 2016 @ 1:03pm 
Do you have a script that builds missing components by chance?
Drakedge 24 Nov, 2015 @ 7:50pm 
Hmm it doesnt seem to want to let me load this script into program blocks anymore?
Spider 28 Aug, 2015 @ 8:21am 
Great script! I wonder if it's possible to edit the script so that all ingots in the assemblers move to a specific container.

I have my base set up like this : refinery -> container.ingots -> assemblers -> container.components.

When I run the script, all the ingots that were in assemblers move to "container.components" but I would like them to move back to "container.ingots" instead. Is this possible?
serialjwalker 16 Jun, 2015 @ 4:55pm 
what argument do i need to make it start? i have tried start and please work
Sakata 6 May, 2015 @ 12:59am 
Aak... Reptar... where'd you go? If I knew squat about updating this, I'd do it... miss your scripts a bunch man, hope you get a chance to update them soon!
Shellduck 22 Apr, 2015 @ 1:33am 
not working for me
Malley 20 Apr, 2015 @ 10:48am 
not working, but it was working a few months ago. maybe a recent update broke this script?
Rastlin 7 Apr, 2015 @ 10:06pm 
wont work for me either
[LYF]Shadow 7 Apr, 2015 @ 2:59am 
i am useing your inv sorter script with no problems, but i cant get this assembler script to work.
it just does nothing, all my assemblers have default names and all of my cargo containers are custom named for the inv script. is there something im missing?
Redeye 29 Mar, 2015 @ 1:04pm 
how do I use this script? do I copy and paste into a program block?
raymazoida 27 Mar, 2015 @ 5:53am 
Ok so I'm not sure exactly how this is working with the new sorter blocks? does it follow their "flow"? or just move stuff to anywhere?
H3draut3r 15 Mar, 2015 @ 7:53pm 
Possibility to exclude Assembler would be nice.... had some Obsidian Assembler installed and they can't work, cause the script pulls the gravel out of them :D
SioxerNikita 23 Feb, 2015 @ 10:23am 
Can you post the code somewhere until the ingame workshops bug has been fixed?
Reptar  [author] 13 Feb, 2015 @ 2:36pm 
@Rexei No you don't have to rename anything for the it to work. Should just work on all assemblers.
Torham 4 Feb, 2015 @ 4:49am 
This, in combination with your brilliant Item sorting has completely eliminated my base maintenance. I fully recommend this. Thank you.
Mineraleater 23 Jan, 2015 @ 6:48am 
Does it move the ingots to a specific container or does it just throw everything out of the Assembler? Can i assign one myself?
Esméa Tuek 19 Jan, 2015 @ 5:40am 
Fantastic work! Coupled with your other scripts (and finally getting assemblers to work in master/slave mode), my station is now quite very efficient. It's a thing of beauty!
Lentur 15 Jan, 2015 @ 12:43pm 
A scrit for disassambling woud be nice, one that refile the assambler on disassambling mod with a spezifed item. This option could be set by a veraibel at the beginning of the code or something...
Rylo704 13 Jan, 2015 @ 1:11am 
Does exactly what you say it does very well. So well in fact you can run it at any frequency without worrying the script will hang up. So far this is the only functional script for this job. A must have for every game mode.
Gregorif 12 Jan, 2015 @ 9:11am 
Do you think you can make a script to clean the production queue of an assembler ?
In my base, I have a dozen assembler set on slave, and 2 on repeat (one for ammo, the other for iron components)
The problem is, sometimes the slaves will take the ammo one, and if they run out of magnesium they wont take the iron order anymore. So I would need to clean the queue of my slaves assemblers like every 5 minutes or something.
Tiss 11 Jan, 2015 @ 12:12am 
It works! Thanks.