Space Engineers

Space Engineers

Not enough ratings
Deep Core Mining
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
13.943 KB
16 May, 2020 @ 6:42am
19 May, 2020 @ 6:04am
3 Change Notes ( view )

Subscribe to download
Deep Core Mining

Description
"You cannot dig a hole into the Mars" ... actually now you can :).

With this script you can automatically dig a rectangular hole into the ground. Script is taking charge of the drills and pistons that are slowly advancing outwards until they reach their maximal length.

Prerequisites:
- Group named "Automatic H Pistons" (can be changed inside the script) that groups up the horizontal pistons. This group is optional. If missing, script will initiate only vertical movement of the drills.
- Group named "Automatic V Pistons" (can be changed inside the script) that groups up the vertical pistons.
- Group named "Automatic Drills" (can be changed inside the script) that groups up the drills attached to the end of the vertical pistons.

What it does:
- Moves each piston according to your Min / Max Limit settings on those specific pistons. (You are in charge there)
- Mining is done vertically. After reaching the maximal limit of the vertical pistons, it will retract and extend one horizontal piston. Cycle is then repeated until it reaches all max limits on pistons. At the very end it should retract and shut down.
- Works with any number of pistons inside piston groups but group "Automatic V Pistons" must have at least one piston.
- It moves only one piston at a time, so no cumulative speed will occur.
- Works with any number of drills (at least one must be present).
- Checks whether one of the drills is not too full. If so, it will try to spread it's inventory evenly among all the drills. When that is not helping, it will stop the movement of the pistons so the conveyor system can catch up. There is a constant for this threshold at the start of the script that can be adjusted.
- Checks whether one of the drills is not damaged too much. If so, there will be a shutdown of pistons, drills and the programmable block as well.
- According to your placement of drills you can adjust, how much it should extend horizontal pistons after retracting from the hole at the start of the script.
- Tip: you can trick this script to dig horizontally, just prepare the drills, pistons and name the piston group as "Automatic V Pistons". The orientation of the pistons and drills doesn't matter for the script.

Tips:
- Don't forget to turn on "Share inertia tensors" on the pistons or it will get really wonky.
- If your pistons stops moving without apparent reason, it's possible that you need to increase Axis or Non-Axis power on pistons.

TODO:
- storing actual state, so no reinitialization will occur again when reloading a game
- adding optional smoothenig phase that will smooth out the digged hole if you want to use that hole for silos or underground facility.
1 Comments
Glytchii 17 Dec, 2020 @ 1:06am 
I would just like to say, beautiful job!!! I LOVE this script! Best thing I have ever subscribed to! Thank you!!!!!!!