[Tutorial] Automatic Mining Script by Kezeslabas – Basics

[Tutorial] Automatic Mining Script by Kezeslabas – Basics


Hey, Space Engineer! In this video, I’m gonna show you,
how to use my Automatic Mining Plaform Script. We are gonna see,
how to build a basic Mining Platform, how to set up and use the script,
and how to use it’s advanced features! The basic Mining Platform setup is realy simple. All you need is: 2 Pistons, a Rotor, a Drill and some Conveyors. Also, let’s not forget about
the Programmable Block. But first, let’s find a place, that
has mostly flat surface. This place seems good, let’s start building. Place a Block, a Conveyor. Go up 6 blocks, put a Conveyor Block on the top, then go sideways 8 blocks, an other Conveyor, the Advanced Rotor, a Conveyor, a Pistons sideways, a Conveyor Block, a Piston facing downwards, and lastly the Drill. This is the basic Structure. If we want to set up the script,
we’ll need a Programable Block, also, we’ll need some power,
so let’s add a Battery. Since I’m here,
I’m gonna add a Cargo Container as well, we are gonna need that
when the mining is started. To get the script,
access the Programmable Block, click Edit,
Browse Scripts, search Automatic Mining Platform, select it, Copy to Editor, Check Code, Ok. From here, you can use the script to guide you. Type “set” and press Run. The script identifies it’s component’s
based on name Tags, so you have to rename them. If you go inside the script and scroll down,
you can find the Quick Setup, and the 1st point, the Renaming. In short, what you have to do, is to add the Main Tag to the names of
the Components you want to use. The default Main Tag is “/Mine 01/”, but
you can change it right here if you want. For now I’ll stay with the default one. As you can see, there are two kinds of
Components here, Basic and Advanced. For the basic setup, you’ll only need Basic ones, so let’s copy the Main Tag and Escape. Let’s use the “set” again, and as you can see, there are 4 types of Components listed here. First, let’s rename the Rotor and the Drill. As for the Pistons, they are a bit different,
because you have to tell the script with a special tag, if a Piston is Horizontal or Vertical. A Piston facing sideways is a Horizontal Piston,
and a Piston facing downwards is a Vertical Piston. This one’s facing sideways, so it’s Horizontal. Let’s access it directly, add the Main Tag,
then add the “/Hor/” Tag. This one’s facing downwards, so it’s Vertical. To this one add the Main Tag and the “/Ver/”
Tag. It’s pretty straightforward right? With this, the Renaming is done,
so let’s go back to the Programmable Block and use the “set” again. Now it says, that the Compnents are Ready!
and the System is Ready to Start! It also says, Aligning Starting Position, which means that the script tries to align the components to a state, where all the Pistons are retracted and the
Rotor is either at it’s Max or Min limit. You can also see, that there is a Step counter here. The script calculates, based on the number
of Pistons and Drills you use, how many Steps and Time will it take,
to finish the mining. Also, there is Progression Bar,
because it looks cool! From here, if you see the
System: Ready to Start! message, that means, that the basic setup is finished. The next Step is the configuration, but I’m
gonna talk about that later, because if you want to use a basic Structure
like this, then you can skip it. To start the mining, access the Programmable Block
and use the “start” command. If a component that was added to the script
get’s destroyed, or is missing for some reason the the script could crash and it stops working. If it happens, then Recompile the script to
make it work again. If you want to pause the mining, you can do
that by using the command “pause”, and you can continue with the “start”. Based on the terrain, the first rotations
may not mine anything. You can solve that in multiple ways, but there
is a trick that I want to show you. If you access the Programmable Block and type “set”, type a semicolon, and a two, then run the script. This will tries to align the Structure to
the 2nd Step of the mining. Every even step represents a Piston movement,
and every odd step represetns a rotation. you are only allowed to set the structure
to a Piston movement, so the script only accepts even numbers. You can try any even number with the “set”,
until you find a position you like. After that, start the mining with the “start”
command. Oops! The mining stoped! Well, that’s actually intended,
because the script has an Auto Pause feature. If the Drill’s inventory is almost full, then
the script stops the mining. If there is enough free space again, the script
restarts. For now, I’ll just add a 2nd container here,
so the mining can continue. If you want, you can assign Cargo Blocks,
or any block that has Inventory to the script. All you have to do is to add the Main Tag
to their names, then use the “refresh” command. The script displayes,
how much these blocks are filled. Also, the Auto Pause feature will use
these blocks as reference instead of the Drill. If you want, you can add
LCD Panels to the script as well, in the same way
as you did it with the Cargo Blocks. Well, it seems like the Cargo is filled again,
so let’s add one more Container. In default the Auto Pause restarts the script,
if at least 50% of the cargo is free, but we got so much Stone here,
that one more Container is not enough. If this happens, you can override the Auto Pause, if you start the script again. In default the script enables the Share Inertia Tensor
for the Rotor and the Pistons, to improve stability. But, sometimes it could cause the Rotor to
turn realy slow. If it happens, then disable it
for the Rotor to fix it. Just before the end of the mining,
I had to add a 4th Container, and that proves that even a basic setup like this
can be really effective. When the mining is finished, the Pistons are
gonna be retracted, and the Drills are gonna stop. You’ll also see the Mining Completed!
message on the screen, and that the Progression have reached 100%. This simple setup have managed to
mine out more than 3 million kg of Stone, which is quite good. You can get even more, if you use more Components. As you can see, with 1 Drill,
the Platform misses the center, but if you add more, you can solve that easily. If you add a Drill, make sure to place it
towards the center. It’s important, because in default the script
uses the Adaptive Extension and Speed feature. This feature, based on how many Drills and
Horizontal Pistons you use calculates, how much the Horizontal Pistons
should extend, and how fast the Rotor should turn to optimize
effectiveness and stability. For the basic setup with 1 Horizontal Piston,
3 Drill is enought to mine out the center, however, using 4 Drills is the most optimal,
because the center will be mined out, and the mining sequence will reach it’s maximum speed. Of course, in the case of this platform, it’s
not omptimal to mine out the leftover Center like this. There are better ways to do it, but I’m gonna
talk about that in another video. If you want to use multiple Drills, then don’t
use Drills with sapces, because there will be lefover voxels all over
the place and the mining could stuck. I’m gonna stop this for now and let’s talk
about Pistons a bit. If you stay with this basic structure,
then you can add any number of Horizontal or Vertical Pistons,
without having to configure anything inside the script. If you remember, for the upward pillar
we’ve used 6 Conveyor Tubes, and a fully extended piston is 6 block’s high,
so, couldn’t we use a Piston as a pillar? Well, we can! I’m gonna build a new platform here pretty quick, but I’m gonna use
an upward facing Piston for it. The script can handle Vertical Pistons that
are facing the other way. They will be used inverted to the regular
Vertical Pistons. To tell the script to handle a
Vertical Piston inverted, after the “/Ver/” Special Tag add the “/Inv/” Tag too. By adding a simple Inverted Vertical Piston
to the platform, you can double the amount of Stone you will get. There is one more feature that I want to show you. You can also add Timers to the script and
they will be started when a certain event happens. If you add the Main Tag to the name of the
Timer, then use “refresh”, then the script will starts the Timer when
the mining is finished. In addition you can also add an other Timer,
If you use the /Adv/ Tag after it’s Main Tag. This one starts each time the Auto Pause
stops the mining. you can use these Timers
with any combination of blocks to enhance your platform. For example, you can place a Sound Block to
the platform and play it with the Advanced Timer, so every time the mining stops
because of the Auto Pause an alarm will plays. Of course you can be creative about this and
use any blocks you want. With this we’ve finished the basics! There is gonna be an other video,
where I’m gonna show, how to use the script on a small grid, how to broadcast the progression to another grid’s LCD, and how to build and configure advanced structures. I hope this video was useful to you. If you have any questions you can leave a
comment or you can visit the script’s workshop page. As for this video, I’m signing out! *Objective Complete!* Wait!

21 thoughts on “[Tutorial] Automatic Mining Script by Kezeslabas – Basics

  1. The quality is fine and I'm sure that your English would be understandable if it were not for the fact that the music drowns out your voice.

    Could you re-post it without the music as I am keen to hear your explanations. The music not necessary, but if you must have it please turn it down.

    Cheers

  2. The stopping if inventory is full is a nice feature 🙂 Other than that this thing can be built much easier using sensor blocks or timer blocks.
    Since you can sense subgrids you can simply put a sensor on the piston and that way you get a signal once it it extended/retracted and you can build your system using that mechanic.
    More flexible too since you can store it as a blueprint and it will work right out of the box without any setting up.
    Would be nice to have that "stop when full" feature tho.

  3. i tried the script and it works wonderfully. normally when i start mining with mechanical drills i do it by hand but with this it was a lot easier. and the video is really well made.

  4. Дайте мне 10-часовую версию копания. Я серьёзно.
    Give me a 10 hour dig version. I'm serious.

Leave a Reply

Your email address will not be published. Required fields are marked *