Space Engineers

Space Engineers

888 vurderinger
Automatic Mining Platform by Kezeslabas
10
14
4
9
14
12
2
6
6
2
2
   
Pris
Føj til foretrukne
Gjort til foretrukken
Fjern som foretrukken
Filstørrelse:
Offentliggjort:
Opdateret:
730.337 KB
27. mar. 2019 kl. 5:32
5. feb. 2022 kl. 2:54
35 ændringsbemærkninger ( vis )

Abonner for at downloade
Automatic Mining Platform by Kezeslabas

I 1 samling af Kezeslabas
InGame Scripts By Kezeslabas
3 genstande
Beskrivelse
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.
Populære diskussioner Vis alle (20)
213
21. sep. kl. 7:52
Questions and Help
Kezeslabas
81
15. sep. kl. 20:34
Bugs and Issues
Kezeslabas
32
14. feb. kl. 7:49
Images & Praise ( Mainly screenshots of your build)
Saladin
519 kommentarer
JeSper 5. okt. kl. 7:40 
@Shurenai You could place one vanilla drill then use an Event Controller that would turn on the modded drills when the vanilla drill is turned on.
Shurenai 1. okt. kl. 13:30 
Would this work with a modded drill-like tool? Like a laser drill? Or does it have to be a vanilla drill? Was thinking to use this to clear a large cylindrical hole in an ice lake w/ a laser drill for construction purposes.
StoneTiger 28. sep. kl. 14:01 
When using Small grid pistons do i need to change the piston movement setting?
xFunnyDeathx 20. sep. kl. 2:34 
@Dr.Theo i figured out. wehn an lcd display is placed on the same grid as mining station put the main tag (default: /Mine 01/ ) in name. when script runs type in argument of programmeble block refrech and press run. works for me and show advanced data. ( when set to true in script)
Kezeslabas  [ophavsmand] 16. sep. kl. 7:31 
@HippieJesus My guess is that you are using a modded Programmable Block. They usually don't work unfortunately.

@al_mondo Unfortunately a rotor is required for this script, it is wired pretty deeply into the logic.

@Dr.Theo If you load the script to a programmable block, and run the "set" command at least once, then the Custom Data of the block will be filled with the configuration options. There find the "Show Advanced Data" option and change it to "True"

@DRB333S Some servers have scripts disabled, others might have whitelists that only allow specific scripts to work. Ask the maintainer of the server about it.

@Peach There is no specific setting for clearing space, it would be a neat feature though. But, the rotation speed can be modified, find the "Rotor Rotation Speed at 10m" option in the Custom Data of the programmable block after you load the script to it.
Peach 3. sep. kl. 14:15 
read a few pages of cpmmentaries, but couldnt find anything like what i needed. is there a setting for clearing space? or a mining speed variable?
DRB333S 27. aug. kl. 10:38 
failed to load on server
Dr.Theo 12. aug. kl. 12:42 
how to get advanced settings onb lcd
al_mondo 5. aug. kl. 13:57 
can this work without rotor?
HippieJesus 28. juli kl. 17:38 
when i try to compile script, i get "main method not found. Please add Main Method into script"