Space Engineers

Space Engineers

Kristofs Lazy Drill script
Showing 1-6 of 6 entries
Update: 17 Oct, 2019 @ 12:09pm

Script Changes 1.5

* bug fix : removed a command that would reset the drill at each load of the game. Now it remains at the previous position.

* DRILL inventory protection: If your drill inventory would get full, the drill will pause. This is to prevent it from exploding. The drill will start again as soon as the drills are emptied a bit again.

* CONTAINER inventory protection: You can put some containers in a group and the script will monitor the fill rate of those containers. IF you put a percentage in the custom data of the program block (default 90%), the drill will stop when the total capacity of 90% is reached. It will restart as soon as it drops below that. This enables you to have the drill work only when the ore that you drill has been processed, or to only drill a certain amount.

* Several improvements to the previous features

Update: 10 Oct, 2019 @ 5:04am

Script changes 1.4:

1. To support modded pistons that have more than 10m range, the script uses the maxrange of the pistons now instead of hardcoded 10m

2. Recovery mode: When the drill gets stuck (too deep, or obstacle), it will detect this and lift up the drill head step by step until it moves again. This enables you to start the drill in uneven terrain, it will move the drillhead up when needed. Also when you would move the drill manual into the ground by accident, no worries, the recovery will take it back.

3. kickstart : when using this command, the drill head is moved down until it hits the ground, and then it is moved back a bit. This puts the drill into the ideal start position. If there is an obstacle around, the recovery mode will take care when you drill. IMPORTANT : do not set your downward pistons strength into the red figures. It will push the drill into the ground even when not running.


Discuss this update in the discussions section.

Update: 7 Oct, 2019 @ 1:44pm

SCRIPT CHANGES V 1.3

* Fixed a bug that would not decrease the speed to the slow speed when moving back from max to min rotor

* Added a measurement of the inventory fill rate of the drills. This is a preparation step : In a next version, a feature will be added that enables you to STOP the drill if it gets full. This to prevent exploding.

* Added extend1 and extend2 commands that can be used when the drill is stopped. They extend the next available piston of group 1 or 2 with the amount that they normally extend. So you can manually position the drill and then START it.

* Improved the LCD screen info. You will see the SPEED and POSITION of the rotor moving between min and max.
It will also show all pistons of each group and the level they are extended.

* When extending manual, the script will wait for this to end and show the progress.

* Introduced a timer take measures how long the extend is taking. This is a preparation action for a future potential feature to stop the drill if a certain action is takling too long, for instance when the rotor does not move because your moved the drill too deep manually. In that case, the drill could back-up until it moves again.

* Many improvements in the structure of the code to make my life easier.

Update: 25 Sep, 2019 @ 7:39am

Changes in version 1.2


CUSTOM DATA of the Programmable block will be used to set and change the parameters of the script

The script will check if the custom data is filled with the parameters and if not, create a settings part.
It will fill the defaults from the scripts variables.

The user can change these parameters now IN the custom data. When he/she stops the driill and starts it (using the commands of the script), the new parameters will be used.

Added value:

1. EASY system for you to set your parameters
2. When the script will be updated, your settings are NOT lost, the stay in the PB and will be used by the new code.
3. When a future script would use a new parameter, it will add it to your existing custom data with the default.

When the CUSTOM DATA is messed up too much to be understood, the script will create a new one from defaults.
But as long as you change the existing parameters in a correct way, it will keep using them.
Removing one line will result in the line being put back with the defaults for instance.

Update: 23 Sep, 2019 @ 1:20pm

Version 1.1

- Rotor MIN can be a negative value now
- Improved user feedback on the screen : indication of the piston progress for group 1 and group 2
- small improvements to the code without impact on user experience.

Warning : if you change variables of the script, upgrading will overwrite them with my defaults again.

Update: 20 Sep, 2019 @ 7:09am