Space Engineers

Space Engineers

822 valoraciones
Automatic Mining Platform by Kezeslabas
9
13
3
8
13
12
2
6
5
2
2
   
Premiar
Favoritos
Favorito
Quitar
Etiquetas: other_script
Tamaño
Publicado el
Actualizado el
730.337 KB
27 MAR 2019 a las 5:32
5 FEB 2022 a las 2:54
35 notas sobre cambios ( ver )

Suscríbete para descargar
Automatic Mining Platform by Kezeslabas

En 1 colección creada por Kezeslabas
InGame Scripts By Kezeslabas
3 artículos
Descripción
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.
Discusiones populares Ver todo (17)
203
11 NOV a las 7:54
Questions and Help
Kezeslabas
71
7 OCT a las 15:22
Bugs and Issues
Kezeslabas
30
13 MAR 2022 a las 8:09
Images & Praise ( Mainly screenshots of your build)
Saladin
493 comentarios
Frission 7 NOV a las 2:26 
How do you make it do a partial arc, l ike 220 degrees in an arc facing the platform? I built one on the edge of a hill so for half of the circle it's just digging air...
Rayanth 29 OCT a las 14:34 
@Markiieee the 'f' just means it's a floating point number. the script sees the number as a percentage - 0.9f means 90%, 0.5f means 50%. It's the only way you can set it, so you'll just have to figure out what percentage your desired numbers are.

@Nightmare vElK.cA - I'm having the same issue trying to set it up today post-Contact update. Rotor's going to 30 RPM no matter what I set it to....
Pretty Little Psycho 27 OCT a las 8:21 
Niche issue, but the script doesn't recognise the drills if using the ToolCore replacer for vanilla drills, not sure how to fix this, or if it can be fixed?
Nightmare vElK.cA 21 OCT a las 10:27 
How exactly do you change the rotor speed? I tried changing the Rotor Rotation Speed at 10m: and it doesn't recognize it, i've tried changing the other values on that line and it doesn't appear to change the speed.
gloriousthe1 19 OCT a las 16:09 
script wont find the rotor or the square pistons?
Markiieee 19 OCT a las 13:20 
Can someone explain the values for high and low cargo limits? trying to limit how much stone is coming in so it doesn't clog up a very new base on a new save. default is 0.9f for high and 0.5f for low, i have no idea what these numbers are referring to, my friend and I were hoping we could set it to run until we have 300k stone and restart again when it drops below 200k. any help would be awesome thanks
Cryphon 30 SEP a las 13:15 
I would like to thank the author of the mod for the inspiration!
Your script formed the basis of my creation: poke
Alexis The Calico Yokai 29 AGO a las 9:34 
I had set the low limit for the Cargo variable to 0.05F and it's not changing.
Alexis The Calico Yokai 28 AGO a las 11:26 
Would the script work with RB Piston pack?
MightyN0ob 31 JUL a las 20:48 
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.