Space Engineers

Space Engineers

Custom Cargo Collector
13 Comments
Bobisback 19 Aug, 2016 @ 1:55pm 
If I did it, I would just have a check if(Is it on My Grid) Do Sorting else Do nothing. Not very flexable, but tbh if I want inventory manament on docked ships then I would just put a script on that ship. I do not want my station inventory manger to mange a docked ship inventory. As far as a ore unloader goes I can just use a sorter and a collector or something of that sort. Idk there is not a great solution to my issue yet, just a bunch of shiny turds hahaha.
D3Jag  [author] 19 Aug, 2016 @ 8:53am 
Depends on what I find in the API notes you've linked. If it's possible to detect which connector mounts which grid, then yes, that would be possible. Otherwise, not so much.
Bobisback 19 Aug, 2016 @ 8:44am 
Ya it would be nice if there was a way to toggle auto transfer of goods through a connector, aka if set to true on the connector it would allow auto transfer of goods, if set to false it will prevent auto transfer of goods but still allow manually transfer. I am guessing this is not possible though.
D3Jag  [author] 19 Aug, 2016 @ 7:44am 
The scripts really aren't that complex to maintain. I haven't bothered with VS because of its overhead. I could probably build in a toggle, or even build out a whitelist of grids (rather than a blacklist/filter of containers) so you can still autodrain your miners.
Bobisback 18 Aug, 2016 @ 7:39pm 
Ya I would rather not doing a named solution. Here is the issue if I have a buddy of mine dock to refuel/repair and get some basic components, bam there goes my sorting script stealing all of his items. Whoops!

Turns out I found a great solution in the programing forums: http://forum.keenswh.com/threads/only-get-blocks-on-my-grid.7348557/

So with this you can now say something like get only blocks that are on the same grid as the programming block that is running me. This would accomplish what I want. That way it will iqnore any docked ships. I may have to go ahead and bust out the old visual studio lol.
D3Jag  [author] 17 Aug, 2016 @ 4:32pm 
Wow, good to know this is still in use. @Bobisback, I'll try to take a look at that at some point. I think I put in a way to ignore certain prefixes (like name your boxes "tools 1", "tools 2", and set the ignore to "tools"), but I could be wrong. I'll have some time to look at the script next week.
Bobisback 17 Aug, 2016 @ 2:03pm 
Is there any way to prevent it from pulling from connected ships? Sometimes like a welding ship has to have components in it. But I want everything else in my base sorted.
D3Jag  [author] 16 Apr, 2015 @ 4:03pm 
Well that's good to know. I tried to be careful with commenting and formatting the code for readability. Your request is at least on my radar.
EntropicMonk 16 Apr, 2015 @ 10:41am 
It has an advantage over the sorters. The reason I can't use sorters in my design is that sorters are one-way only, and the ship could never be unloaded.

I'll look at a bit, but my knowledge in C# is woefully lacking. I don't want you to go out of your way to modify it just for me, but other people may get a use out of it. I have yet to find a script that refills containers to a set quota, but doesn't require a named source container. In fact, the number of scripts like this is amazingly small.
D3Jag  [author] 16 Apr, 2015 @ 8:50am 
The script as is has become relatively useless with the addition of sorting conveyors.
D3Jag  [author] 16 Apr, 2015 @ 8:49am 
To capacity, yes. It would be easy enough to modify it to do a limited fill. Consider peeking at the source. I don't have time over the next couple weeks, but if you're still in need, I could probably modify the script to cover those needs in the future.
EntropicMonk 16 Apr, 2015 @ 1:59am 
I've been looking for a container-reloading script. I take it from the instructions that it simply fills to capacity? Didn't see a quota or limit field anywhere.
D3Jag  [author] 2 Mar, 2015 @ 11:16am 
https://cubrr.github.io/space-engineers-doc-collab/html/T_Sandbox_Common_ObjectBuilders_MyObjectBuilder_PhysicalObject.htm has the list of MyObjectBuilder_ types at the bottom under Inheritance History.