Space Engineers

Space Engineers

Auto Miner - Square mining - H2
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.
phoech Aug 14, 2017 @ 12:38am 
Thank you very much Gravedigger, I will give a test drive during the week and hope the KSH bugs introduced in the last patch don't stop me from running the game. Cheers.
Bozeheersbeestje  [author] Aug 13, 2017 @ 2:35pm 
Hi phoech,

I corrected the script so it returns now. I also replaced the model with a battery-system instead of a reactor, so it takes even less maintenance (it charges them to full when docked, just like the hydrogen). Dont worry about it running out, when batteries are getting low it will also return for recharge (but the strain on batteries is very low, maybe 5% of that on hydrogen).

I (just) published the corrected version. Don't hesitate to let me know if it works or not, have fun!
Grave
phoech Aug 8, 2017 @ 10:42pm 
Hi again, OK, can confirm, removal of asteroid to mine resulted in miner going distance of more than 12km from last mining face and still going in straight line. LCD reads "descending" the whole time.
phoech Aug 8, 2017 @ 7:36pm 
Hi Gravedigger, thankyou for your reply,

I've been setting the depth to all kinds of lower numbers (5 at the moment) than the default setting in the LCD menu and it goes past those lower numbers and does not stop(currently located about 200-400m past the depth setting).
I also have the height set at 29 and it works OK.
Everything else appears to be working well. I currently have it mining an asteroid (huge) to see what happens again when it breaks through but i might delete the asteroid and let it go for the 3kms or so and see if it returns or not.
Your machines and the planetary one that pennywise made are the only 2 auto miners i have found so far that do what they claim (mine fully automatically and return) without any fuss, except the probs caused by KSH, lol.
Bozeheersbeestje  [author] Aug 8, 2017 @ 4:09pm 
Hi phoech,

Apologies, since i've been off the game for months at the moment. Are you sure it's max depth is set? And does it run past it? If so, i'll have to correct that. I'll get to it anyway coming weekend and have a look at it. It certainly shouldn't wander in a 'weird' direction. It has a max range set (i think 3km default?) before it will return permanently, which you should be able to change. I'll let you know this weekend if I can reproduce the problem.
phoech Aug 7, 2017 @ 5:37am 
Hi, I think I found what's up, the miners are not stopping at any depth, they just keep going no matter what depth you set. They will mine again if you throw an asteroid in their path but once through that also they just keep going and going away. cheers.
phoech Aug 3, 2017 @ 4:57am 
Hi, I have recently noticed one thing with 2 of your auto miners including this one, When they break through an asteroid whilst in mining mode or finish they are not returning home but rather move at a very very slow speed in some random direction and disappear into the distance. I found them using space master and one was over 300kms away. Any ideas as to what might be causing it? at the moment i just have to keep a close eye on them so they don't get to far.
Bozeheersbeestje  [author] Jul 18, 2017 @ 3:05pm 
Oh and absolete item is easy to fix if I get it spawned, no worries about that.
Bozeheersbeestje  [author] Jul 18, 2017 @ 3:03pm 
Hi OMFG,

Glad you enjoy the build. Honestly I haven't updated it for months/year. I practically abandoned SE.. But, sounds like your script is not triggered by a timer but by your input only. Please check that all the timers are active. The timer-trigger updates the screen to (also to the current menu) which seems only to be triggered by your input.

I must note though that I have quite some difficulty getting the game to start/run properly or get into creative scenario's. It looks like the game is bugged quite a bit at the moment, as I couldn't even spawn the vehicle in creative mode.. Maybe my side having troubles, but if I have updates I will update this message. But I will try some options again to see if I can get it back up again.
OMGMyNameWontFi Jul 18, 2017 @ 2:10pm 
(continued)
Second symptom: The input I give (1 through 4) seems to be... off.. by one screen according to the LCD. That is.. I press "1" from the main menu to go in to the Location screen. The bottom of the LCD says "Changed to location menu", but the rest of the LCD still shows the main menu. Now, I know I am in the locations menu according to the actual script, so I press "1" to set my docking position, and THEN it updates the LCD to show the locations menu (to reflect what happened one button press ago).

Third symptom: When I reset the LCD text (delete all) and then edit/remember&save the script the LCD is BLANK. it doesn't show anything until I go to the programmable block and hit "run" in the control panel. I suspect this is why the second symptom is happening but why the first two symptoms?

Any help you can provide would be AMAZING. I've got 7 friends who all love this H2 series.. Thank you SO MUCH
OMGMyNameWontFi Jul 18, 2017 @ 2:10pm 
Hello Gravedigger! This is the most accurate automatic miner I have found. and is the first thing I struggle to build in any survival server. Recently I have an issue: three symptoms. and I don't know if they are related

First symptom: I get the following error when checking the code on the script:
Program (88,50) Warning 'iMyShipConnector.IsConnected' is obsolete: 'Use the Status Property"
Program (118,16) Warning 'iMyTerminalBlock.SetCustomName(string)' is obsolete: 'Use the setter of Customname'
Program (219,4) Warning 'iMyOxygenTank' is obsolete: 'Use iMyGasTank'
Program (219,85) Warning 'iMyOxygenTank' is obsolete: 'Use iMyGasTank'
Program (288,27) Warning 'iMyOxygenTank.GetOxygenLevel' is obsolete: 'Use iMyGasTank.FilledRatio'
Program (628,12) Warning 'iMyShipConnector.IsLocked' is obsolete: 'Use the Status Property"
Program (671,16) Warning 'iMyShipConnector.IsLocked' is obsolete: 'Use the Status Property"
(other symptoms continued in next post.. darn 1000 character limit)
phoech Jul 12, 2017 @ 11:09pm 
Really like what you've done with this, nice, simple, easy to setup and it works, sort of reminds me of the planetary auto miner by pennywise. thankyou for your time and effort.
Bozeheersbeestje  [author] Jan 28, 2017 @ 12:37pm 
@Varaxian

Thanks for the note but no worries, those are mere warnings for not a total clean script. It is because I use a similar script for the square and the tunneling bot, they use the same basis as a script and I often copy parts of the script to the other when solving issues that concern both bots. When I find time I will clean up the script, but let me know if it doesn't work as intended or you see any errors! HF
Varaxian Jan 27, 2017 @ 11:16pm 
@Gravedigger

Warning!

http://imgur.com/a/xZHKF
Jabon Jan 10, 2017 @ 5:08pm 
Works like a charm :D
Jabon Jan 10, 2017 @ 4:21pm 
Thanks a lot Gravedigger!! i'm about to try right now! :D

P.S. You could learn to read, too, Jimmy ;)
Bozeheersbeestje  [author] Jan 10, 2017 @ 12:55pm 
Hi Carl (and Jimmy :)),

I see your problem.. The Timer blocks loses its reference to the appropriate blocks when built in survival, and actually it is the first time I've met this problem. Maybe something changed with the updates or I missed it before already..

I will include the actions they require, they are quite simple. I am looking into a way how the script could set them with the proper actions automatically, but so far I had no luck yet.

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-001:
- 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

Hope this helps you!
JimmyTheSaltyMelon Jan 10, 2017 @ 9:33am 
all you gots to do is learn to read, Often asked question: How do I give commands to the bot in survival?
Answer: When building the cockpit in survival mode, it loses its shortcuts. They can easily be added manually once the bot is built. To add the shortcuts manually:
- 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.
Jabon Jan 10, 2017 @ 9:25am 
Big claps for this thing!

I have an issue, tho. When i print it, it won't import actions set on Timer Blocks, and i can't get it to work as intended. It navigates, docks and so on, because i manually set some actions, but is not doing all is supposed to.

Can you detail the default actions on each block please?

Thanks ni advance and congrats again.
Varaxian Dec 26, 2016 @ 7:36pm 
I play on a few servers that utilize 1 or 2 drill maximums. These drill very large grid areas. I believe this would be beyond your scope of "need", but, if you end up wanting to come play on MP with me, i'll be more than happy to let you in the faction and help us with these things. haha. <3
Bozeheersbeestje  [author] Dec 26, 2016 @ 3:58am 
Hi Varaxian, yes that's a breaker, since it uses the 2 drills for navigationpurposes.. I could change that, but then you will get the problem of the drillshape, which I assume is a circle? Do you have a name of the mod?
Varaxian Dec 25, 2016 @ 4:19am 
hey GD.

I play on servers that use single, SUPER drills. Is there a method for me to simply change a value in the code to fix this, or is this a big break of it?

<3
Bozeheersbeestje  [author] Dec 21, 2016 @ 12:04pm 
Hey Jimmy, thanks for the feedback by vid, note (also for other readers) that the bot will not fast-travel to docking-location (max 1-3m/s) due to timing-issues in the engine. If you want it to fast travel use the waypoints, between(towards!) waypoints it should at least go up to 30m/s :) so use a waypoint a bit from docking location and close to the mining location to let it increase its speed back and forth.

hf!
JimmyTheSaltyMelon Dec 18, 2016 @ 2:34pm 
so i spoke a little too soon, when the bot returns to base it kinda returns backwards and very slowly, esentuly it returns to base the way i left base to go to the astroid but not as fast as if its in docking mode speeds.
JimmyTheSaltyMelon Dec 18, 2016 @ 1:33pm 
if you want to come see your beast at work on my server its called Mine the Stars , server name jimmys server
JimmyTheSaltyMelon Dec 18, 2016 @ 1:32pm 
Wow i am using it now it is working better than the last WOW, may i ask how old u are?
Bozeheersbeestje  [author] Dec 18, 2016 @ 12:51pm 
Problem with unstable sim-speed is that the nav algorithm goes off, since it uses time passed to calculate its speed and rotational speed, unfortunately there is no way to access the game-tick value that the game uses to calculate physics. Unfortunately I also couldn't use the built-in autopilot to do the tasks as I wished them..

Max resources is actually not that much of a problem to put into, maybe a good idea, instead of having shitloads of gold and nickel.. But do note you can order it to wait after its next delivery via the bot-menu (set to wait iso proceed). Often 1 haul can be enough for a while, unless building a deathstar..

I would have to check on discord, just add me.
Bozeheersbeestje  [author] Dec 18, 2016 @ 12:48pm 
Hi Jimmy, I just uploaded a new version,

I added the option to change course (like go home or go mining). It works good in most modes, it is not allowed in ascending mode since it causes complications with the mining system calculating it's progress.

I also added the option to change the max volume it will carry (by steps of 10%, 10-100%). This would manage the ore input to maybe managable sizes. Do note you can also remove drills from both sides (min drills is 5) and redect them via the menu, to reduce the amounts, but that would also decrease the mining rate.

Let me know if it works as expected :)

JimmyTheSaltyMelon Dec 18, 2016 @ 12:28pm 
Yes i think a menu for telling it to go home and rest , or go minning, or go to minning loc and hold /continu, go minning for a certin amount of rounds, i emagine you could use the new data storage on blocks to acomplish anything really, what you have show me here is just amazing it would be nice to use the extra data storage on blocks to setup Goal Variables like mine a total amout of a specific amount of resorces kinda like a scavanger on a mission, what do you think?
JimmyTheSaltyMelon Dec 18, 2016 @ 11:39am 
thanks for the response, it woks very well in a new world, but i found if the sim speed is not stable it does not work so well, it would hang, in using it i can see many option i would love to have, i use discord and i am on the keen discord if you ever want to meet up i would love to talk to you about this.
Bozeheersbeestje  [author] Dec 18, 2016 @ 8:49am 
Hi Jimmy,

It will actually automatically return home when it's cargo is full, just make sure you set a 'docking position' in the location menu. This home should for example be when connected to your ore drop-off connector.

If you mean 'skip current run and return', sounds pretty doable, will check for you coming week if I get some time to script it in.

Also you can adjust the cargo limit in the script itself, should be 'M_ReturnVolume', where you can set it's max. It will anyway return when drills and it's cargobox are full, or when it meets its 'M_ReturnVolume'. If it's set to 0 it will return when full. I will see if I can incorporate it into it's menu instead of a hardcoded value.

Script took me some days yes :D Unfortunately I still have to adjust it to cope with planetary use (gravity distorts the nav-system so it will hang trying to achieve position).

Have fun!
JimmyTheSaltyMelon Dec 17, 2016 @ 10:34pm 
it would be nice to have return home function, and a set cargo limit woud be nice,
JimmyTheSaltyMelon Dec 17, 2016 @ 10:17pm 
Hay man you are briliant THIS IS PERFECT it is exactly what i have been looking for, the menu system is briliant. its very easy to use, thank you may i ask how long it took you to code this?:2016watermelon: