Space Engineers

Space Engineers

803 ratings
Automatic Mining Platform by Kezeslabas
9
13
3
7
13
12
2
6
5
2
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
730.337 KB
27 Mar, 2019 @ 5:32am
5 Feb, 2022 @ 2:54am
35 Change Notes ( view )

Subscribe to download
Automatic Mining Platform by Kezeslabas

In 1 collection by Kezeslabas
InGame Scripts By Kezeslabas
3 items
Description
New version: v3.721 (Fixed cargo modules recognized incorrectly)
(Change Log in the Change Notes Tab.)

If you have any Questions or Issues with the script, you can write a reply to the Discussions.

This is a script that I made for my personal use.
I decided to polish and upload it, because I thought that someone else could find it useful as well.

The script uses Pistons, Drills and a Rotor to reach and mine out as many Stone/Ore as possible with that setup.

Components:
  • Basic Components (2+2):
    • Advanced Rotor (Exactly 1)
    • Drill(s) (1 or more)

    • (Optional) Horizontal Pistons(s) (0 or more)
    • (Optional) Vertical Pistons(s) (0 or more)
    (The script works with any combination of Pistons, even with 0 Pistons)

  • Advanced Components (6)
    • (Optional) LCD/Text Panel(s) (0 or more)
      • Displays the Progression and other informations.
    • (Optional) Antenna (0 or Exactly 1)
      • Required for the Broadcast Progression feature, where you can broadcast the LCD/Text Panel's data to another grid.
    • (Optional) Timer Block (0 or Exactly 1)
      • Starts when the mining is finished, so you can connect this script to other blocks/systems.
    • (Optional) Cargo Module (0 or more)
      • Can be any number of blocks with inventory.
      • Their filling % is gonna be displayed.
      • The Auto Pause/Start function is gonna use them as reference.
    • (Optional) Advanced Timer (0 or Exactly 1)
      • A Timer Block, but use the "/Adv/" tag in addition to the Main Tag.
      • Starts each time the Auto Pause/Start feature applies.
    • (Optional) Other LCD Block(s) (0 or more) (NEW)
      • Any block that has a built in LCD, like a Cockpit.
      • Needs additional configuration, by writing to it's Custom Data. (Details are inside the script.)
      • It differentiates the LCDs in the same way as MMaster's Auto LCDs 2 script does.
      • It works alongside MMaster's Auto LCDs 2 script, in the same Cockpit.


    Quick Setup
    • Rename the Components of the system, so they'll contain the main tag. (Which is "/Mine 01/" in default, but you can change it.)
    • In addition, add the "/Hor/" tag to the name of the Horizontal Pistons
    • Also, add the "/Ver/" tag to the names of the Vertical Pistons.
    • If you want to use a Vertical Piston Inverted, then add the "/Inv/" tag to it's name as well.

    Configuration:
    • You can configure the script in the Programmable Block's Custom Data.
    • There is a detailed information inside the script about what's what.

    How to Use:
    • If you've renamed everything and configured the script, then run it with the "Set" argument.

    • If you are seeing the "System: Ready to Start!" message in the detailed info, then run the script with the "Start" argument.

    • If you want to pause the mining, then run the script with the "Pause" as argument.
    • You can continue the mining with the "Start" command.

    • If you want to add an Advanced Component then rename it, then use the "Refresh" command.


    Notes
    Inside the script, you can find more detailed information about how to set up and use the script.
    It's recommended to read the description inside the script at least once, before you use it.

    Features
    • Mining Sequence:
      • The "Set" command is gonna set the Rotor and the Pistons to a Starting Position. If you Start the system, then the Mining Sequence begins, after the Starting Position is reached.

      • The Mining Sequence's algorithm:
        • Rotates the Rotor.
        • Repeat until Max Limit is reached for the Vertical Piston(s)
          • Repeat until Max Limit is reached for the Horizontal Piston(s)
            • Extends the Horizontal Piston
            • Rotates the Rotor
          • Extend Vertical Piston
          • Rotates the Rotor
          • Repeat until Min Limit is reached for the Horizontal Piston(s)
            • Retracts the Horizontal Piston
            • Rotates the Rotor

    • Adaptive Extension and Speed
      • Based on how many Horizontal Pistons and Drills are you using, the script adapts and finds the best configuration for the different values that it uses, like how much the Horizontal Pistons should extend or how fast the Rotor should turn.
        Most of this happens, when you run the "Set" command.
        (You can overwrite this by setting unique values in the 2.) Basic Configuration section.)

    • Inverted Vertical Pistons
      • You can use Vertical Pistons Inverted. They do the opposite of what a normal Vertical Piston would do. To mark an Inverted Vertical Piston, add the "/Inv/" tag to it's name.

    • Show Advanced Data
      • The script displays the progression in the detailed info of the programmable block, but you can use an LCDs as well if you want. If you enable this feature, then there's gonna be more information shown. Not recommended for servers.
        (You can enable this feature in the 2.) Basic Configuration section inside the script.)

    • Color Coded Screens (NEW)
      • The font color of the LCDs are changing based on the state of the Mining Platform and the script.
        (You can disable this feature in the 2.) Basic Configuration section inside the script.)

    • Broadcast Progression
      • You can broadcast the data that is shown in the Detailed Info and on the LCD/Text Panel(s) to another grid. You need an Antenna renamed properly in order to use the feature.
        (To set it up, follow the instructions inside the script in the 2.) Basic Configuration section.)
      • Use my Antenna Message Receiver script on the grid that you want to broadcast to.

    • Auto Pause/Start
      • If the Cargo Module blocks that you use have reached the High Limit then the script Pauses. The script Restarts itself if the Low Limit is reached in the Cargo Module blocks again. This way there is no stone/ore loss because of the lack of inventory. You can Start the Mining early, before the Low Cargo Limit is reached if you use the "Start" command.
        If there is no Cargo Module block detected, then the Drill is gonna be used as reference instead.
        (You can turn this feature off if you want in the 2.) Basic Configuration section inside the script. The High and Low Limit can also be configured there.)

    • End of Mining
      • When the mining is finished, the Piston(s) are gonna retracted, and the Drill(s) are gonna stop. Also, you can add a Timer Block to the script, that will be Started when the mining is finished.
Popular Discussions View All (17)
195
7 Sep @ 11:01pm
Questions and Help
Kezeslabas
70
2 Aug @ 8:16pm
Bugs and Issues
Kezeslabas
30
13 Mar, 2022 @ 8:09am
Images & Praise ( Mainly screenshots of your build)
Saladin
486 Comments
Alexis The Calico Yokai 29 Aug @ 9:34am 
I had set the low limit for the Cargo variable to 0.05F and it's not changing.
Alexis The Calico Yokai 28 Aug @ 11:26am 
Would the script work with RB Piston pack?
MightyN0ob 31 Jul @ 8:48pm 
Trying to get more than one of these set up on the same grid, and it just refuses to work.

I got to Custom Data, and change /Mine 01/ to /Mine 02/ and it just changes itself back, and breaks my original /Mine 01/ setup.
Meya 6 Jul @ 6:52am 
If you paste this in creative the pistons are already extended just be warned about that :P
FickleFox 23 Jun @ 4:49pm 
NEVERMIND! For anyone else who might encounter this problem, be sure to use an ADVANCED ROTOR.
FickleFox 23 Jun @ 4:25pm 
Getting a "Rotor: Not Found!" in setup even though everything is setup and connected. Could this be a patch issue? It was working before...
Xahni13 15 Jun @ 7:25am 
@schlauke, in the video he does a piston extended and names it /mine 01/ver/inv/. make sure it is extended first
Schlauke 26 May @ 8:35am 
Just found your script today @Kezeslabas and it works really well, thank you for sharing it with the community. In the setup comments it says that inverted for horizontal pistons is not supported yet. Any chance of that still being added to the script functionality? Would be really cool for digging sideways into a mountain or underground.
Grat Dalton 21 May @ 7:18pm 
Thank you Kezeslabas, amazing drill Script.
If anyone wandering, Yes it still works in 2024
flasham 29 Apr @ 8:39pm 
It does recognize cargo. You have to put /Mine 01/ or whatever your mine is named in the Cargo name.