Space Engineers

Space Engineers

Not enough ratings
Auto Miner - Square mining - H2
   
Award
Favorite
Favorited
Unfavorite
Type: Blueprint
File Size
Posted
Updated
876.980 KB
Jul 30, 2016 @ 3:53am
Aug 13, 2017 @ 2:47pm
7 Change Notes ( view )

Subscribe to download
Auto Miner - Square mining - H2

In 1 collection by Bozeheersbeestje
Auto Miners
4 items
Description
A bot that does it al. Useful for both multiplayer and survival: Mining, traveling, docking, unloading, fully automatic.. What more you need! It digs a square area the default size (or redefined by the user can define via a simple menu), and let the digging be done by him.

For a quick/visual guide of a similar bot on how to use it: https://youtu.be/A5QKVA1bApk
The only difference is that this stripminer digs it's hole also in front of it but the length measured upward from the mining position. Eg.:
____
| . . .|
| . . .|
|_x_| (where 'x' is when viewing the miner from behind, where up is the length, and the depth is into the screen. A tutorial on itself will follow shortly)

Features:
- Add drills easily: You can add extra drills to both sides up to 39(!) in total. Just make sure you add the same amount to both sides, and let the bot detect the drills (simply selecting '#2 - detect..' under the bot settings (#2)).
- Remove drills easily: Building another one and/or need the materials to build a house for your mother in law? The centre 5 drills are required for the bot to function, so just remove as many as there are left :) Just let the bot re-count the remaining drills via opt #2-#2 from the main menu!
- Runs on Hydrogen: It can be a pain early on to find that precious Cobalt, so it travels on Hydrogen, and it will also wait to refill it when it is docked. Normally it uses about 20-40% per full run. HandyDandy!
- Digs giant squares: The size you want! Adjust it's depth and height in the menu, or add drills to adjust its width
- Mutliple bot support: Want Moar bots? The script has a neat feature called 'OwnCallsign'. This number uniquely id's the bot, which means if you have a ton of these bots, they can still tell eachother apart when docked! Just change the number in the script when it is not(!) docked and done :)


FAQ - HOW TO SETUP IN SURVIVAL: Help, it doesnt work!
Answer: When building the cockpit/timer blocks in survival mode, they lose their shortcuts/actions. They can easily be added manually once the bot is built. To add the shortcuts/actions do the following:
----------------------------------------------------------
- enter the cockpit and press "G".
- Create the shortcut dragging the programmable block down to square 1 (for shortcut 1).
- Use the option "Run"
- Type the number in the argument box ("1" for shortcut 1, without the " ).
- Then press Confirm.
Now do the same for shortcut 2, 3 and 4, respectively using argument "2", "3" and "4". This way you created 4 shortcuts, controlling the menu.

Next edit the Timer actions:
Timer Block - Drill AI-***:
- Delay = 1 sec
- Action 1: Programmable Block-*** - Run with default argument
- Action 2: Timer Block - Drill AI-*** - Trigger Now

Timer Block - Drill Connector-***:
- Delay = 10 sec (not important)
- Action 1: Connector - Drill-*** - Switch Lock

Timer Block - Drill Load Reset-***
- Delay = 1 sec
- Action 1: Timer Block - Drill AI-*** - Trigger Now
- Action 2: Timer Block - Drill Load Reset-*** - Start
------------------------------------

That should get you up and running!






Also check out the other circle-drilling bots in the collection: http://steamcommunity.com/sharedfiles/filedetails/?id=636028581
They are considered easier in use due their 'must-dig-hole-forward' mining behaviour :)
--------------------------------------------------------------------------

It is basically a miner that you assign a docking location and a mining location, that's it. It will do the rest, meaning digging a giant block and unload when whenever required. It will start to mine, and as soon as it is full it will return to the docking station to unload and return for more mining. This is basically how it works, but you can also assign it waypoints via which it will travel between the docking station and the mining location. That way you can also assign it on remote asteriods where it has to fly around bases and/or inside asteroids. After it finished its block (can be adjusted) it will return home and await new orders.

Guide:
The ship has a menu which can be used to set the required locations. It can be accessed by the Button-Panel next to it, or by 4 custom shortcuts in the cockpit, using 'Run' on the programmable block using arguments 1, 2, 3 and 4, one number for each shortcut) where button/shortcut 1 stands for option #1, etc.

To start using the AutoMiner:
Step 1: Enter the miner (the AI should be in damping mode, which means it doesn't actively control the ship)
Step 2: if not in damping mode, press option 4 in the main menu to switch to it
Step 3: fly to the docking location you want the ship to dock, and position it the way you want it to dock (location and orientation)
(Note: Make sure the base docking port 'sucks' up ores to empty the ship on docking!)
Step 4: In the main Menu, select option 1 to set your locations and select '#1 Set Docking Loc/Ori'. Your docking position has now been saved.
Step 5: Goto Menu '#3 Edit Travel Waypoints', and select '#3 Delete All waypoints'

---- optional ----
If you want to drill right under your docking port, proceed to step 7. If you want to change direction, or travel to another location with the miner to mine there, it is advised to set waypoints to prevent the miner to collide with objects.
Step 6a: Move the ship to the waypoints you want it to move to. NOTE! It remembers the orientation also, so the miner will adjust to the orientation of the point it is flying TOWARDS. It has no limit set on the amount of waypoints.
Step 6b: Select '#1 Add Waypoint'
Step 6c: repeat Steps 6 to to add more waypoints. Just remember the ship will follow them in the order you added them and in the orientation you are at when you add them. You can delete the last one via option #2, or all via #3.
---- End of optional ----

Step 7: Fly to the mining spot you deem worthy (make sure it has clear path from your last waypoint or dockingpoint) and aim in the direction you want the ship to drill. It is ok(/advised) to stay > 20 meters away, since it will look itself where the asteroid starts and start digging from there).
Step 8: In the main Menu, press option #1 to set your locations, select '#2 Set Mining Loc/Ori' to enter the mining menu. Now select "#1 Set Mining Loc/Ori". It now saved your mining spot.
In this menu you can also adjust the size of the block you want to drill. It's width is fixed by the amount of drills you have attached.
Step 9: In the main Menu, press option #4 to switch the AI to active.

Done! Now watch the bot work.. :)


Some tips:
- Not happy with your mining location? Enter the ship, set the AI to damping, fly to the spot you want it to dig, set the mining spot and switch the AI to active. Just don't forget to check the waypoints that the path is still clear.
- Same goes for the docking..
- Waypoints and locations are based on the world grid.
- Drills can be added or removed, just don't forget to use the update option in the main menu
- Many values can be adjusted in the script, check it out if you like to tweak it.
- Careful with renaming or removing parts, the AI uses most of them to steer the ship or check it's location/rotation!
- The AI crashed on you, and it won't restart? Erase all text from the public text on the LCD, the script will reset the data. Then go into the script, use check and save it. That should restart the script. Note; you will have to replot the route..



Good luck!
43 Comments
Bozeheersbeestje  [author] Nov 7, 2019 @ 6:53pm 
I have a design already made for planetary excavation, problem is the ore detection is not working/available for programmable blocks.. Maybe it it is in the latest update, no idea why they wouldn't add such a basic thing, last time I checked is I think half a year ago (and several times before) and then I gave up the effort. Point is I wanted to make a automated search and drill, but since detecting ore is not available (for vanilla) I did not feel the need to put in more manual locational drills. I could upload it if wanted.
Gaea Oct 22, 2019 @ 4:07am 
⌄⌄ I would love the planetary miner from you. Please release it.
Zues Apr 2, 2018 @ 6:11pm 
yeah that is basicly what i was after just set up a pariniter and say depth and let it dig the hole for like making subtranen bases. Sorry my spelling isnt that great.
Bozeheersbeestje  [author] Apr 2, 2018 @ 2:25pm 
Hey Zues, unfortunately practically the functionality of detecting Ore is missing on planets, otherwise I would have, since I have a build relatively close to ready. I could release it someday soon where you would need to tell it where to dig, but I wanted a bit more automation (as in including searching for ores). If more people are interested I could pick it back up and release the planetary miner that requires manual assignment of mining spots.

Let me know, note I don't have a lot of free time on my hands these months ;)
Zues Mar 25, 2018 @ 10:58pm 
Hey you think you can make one of these that work on planets that would be steller
Bozeheersbeestje  [author] Jan 17, 2018 @ 8:20am 
Haha, thanks! Glad you enjoy the build, if it does break down, just let me know. hf!
OMGMyNameWontFi Jan 16, 2018 @ 6:52am 
Hey Gravedigger. I haven't commented in a while, but I wanted to comment, again, to say I STILL think this is the best blueprint on all of SE. I will, for sure, be very saddened when SE is updated and it breaks this miner and you're no longer updating! For as long as you are, however, I want you to know how thankful I am!
Bozeheersbeestje  [author] Jan 12, 2018 @ 9:43am 
@YourBabysDaddy, if you are loading a save game, make sure the option is enabled on the settings of the save game (you can change settings of a save game). If it is a server then there is not much to do but what you said, however it can very well be that they are simply disabled by the host. You would have to contact an admin for that.
TalkingToWalls Jan 12, 2018 @ 9:04am 
Im getting "In game scripts are disabled for this world". But I used scripts. Idk. But I think I need to copy and past your code.
phoech Aug 15, 2017 @ 4:40am 
@Gravedigger, working great and as intended, thankyou for your efforts.