Space Engineers

Space Engineers

Not enough ratings
(Obsolete) Drills Balancer
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
3.449 KB
16 Mar, 2015 @ 3:01pm
4 Jun, 2015 @ 2:13pm
3 Change Notes ( view )

Subscribe to download
(Obsolete) Drills Balancer

Description
This script will distribute ore evenly between all drills or selected group of drills on your ship.

This script is designed to allow you to mine longer before returning to base. It comes into play when all your cargo containers are full and any additional ore is stored in drills. It prevents drills to become full while others have plenty of capacity left.



Outdated since 11/01/2015
Please, use
Resource Exchanger 2
instead




Install the script on your mining ship and run this script once per second (use a timer block to do this).

Important notes:

0. Currently this script is outdated. It is recommended to use a newer one: Resource Exchanger 2.
Resource Exchanger does the same as this script and even more and also does it better.
Of course Drills Balancer is still working well.

1. Make sure that all drills are connected to each other. The script will detect if they are not.

2. Drills with disabled option "Use conveyor system" are excluded from balancing process.

3. Please do not place any filters between drills. The script does not take them into account and something may go wrong.

4. There is a built-in system that will tell you how much free space remains in the drills.
In order to use it you have to place some interior lights or spotlight on your ship and add them into group called "Payload indicators" (you can change the group name in the script's code at line 23).
The lights will change color into one of the following:
Green - All drills are connected to each other and they are empty.
Yellow - Drills are full in a half.
Red - Drills are almost full.
Purple - Less than 3,000 l. of free space left (you can change that amount at line 30).
Cyan - Some drills are not connected to each other (this is an error state).

5. Setting DRILLS_GROUP to a group that contains blocks other than drills will not cause any errors. Blocks that are not drills will be simply ommited during balancing.

Try out my other script: Reactors Balancer
It will exchange uranium between your reactors.
10 Comments
Sinus32  [author] 31 Mar, 2016 @ 11:56am 
This script is outdated since 11/01/2015.
Please use
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=546221822
instead.
Deathraye 30 Mar, 2016 @ 5:58pm 
It still says there is a problem when I try to load it into the program block
Sinus32  [author] 4 Jun, 2015 @ 2:20pm 
An update 01.085 broke this script, but now it works again.
H3draut3r 25 Mar, 2015 @ 11:34pm 
still awesome ^.^
Sinus32  [author] 22 Mar, 2015 @ 5:02am 
A new version with support for ice is ready.
It also works in creative mode.
H3draut3r 22 Mar, 2015 @ 1:51am 
update for ice please!
Sinus32  [author] 19 Mar, 2015 @ 2:20pm 
Starting from the end - the user defined variable for the name of the drill group is defined at line 9 in the script. In the whole script there are 4 variables that can be changed: DRILLS_GROUP (line 9), LIGHTS_GROUP (line 23), WARNING_LEVEL_IN_KILOLITERS_LEFT (line 30) ("cubic meters" would be more appropriate, but the variable represents liters multiplied by 1000) and DISPLAY_LCD (line 36).

I'll think about output lcd font size but keep in mind in this script it's just a debugger. I don't keep it on my mining ship (yes, I'm using my scripts). I assumed that no one has time to look at the screen so I've added colored lights. Lights are also smaller than LCD.
Kahlas 18 Mar, 2015 @ 12:57pm 
Just started using this and looks nice. It seems to recognise modded drills just fine. 3 thoughts on the program though. Allow user to define(or auto detect) output lcd font size. Regular LCD and Text panel support. Probably can kill the same two issues by adding the dimensioning of the different lcd screens into your code). Last thing I can think of is allow user defined variable for the name of the drill group or have it detect just balance as a string so people who prefix ships parts can not go nuts on that one group that doesn't fit the name scheme.
><> DarkUncle 18 Mar, 2015 @ 10:46am 
Awesome! Thanks for responding to the request - will try it out tonight. :)
H3draut3r 18 Mar, 2015 @ 4:24am 
nice one... even my Phantom Laser Drill works with that script :D
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=378566595