Space Engineers

Space Engineers

Rdav's AI Autominer Script
1,327 Comments
Rdav  [author] 19 Feb @ 3:31pm 
ownership possibly?
it can only detect things owned by the same person as the p-block is owned by, so could just not be seeing it, unless there are any mods in the world
Blythe27 18 Feb @ 3:28pm 
@Rdav
Blythe27 18 Feb @ 3:28pm 
It keeps saying, "Please dock to a (static) connector"
I am connector to my base landing pad but it doesn't seem to recognize it, any ideas?
ARCHANGEL 25 Sep, 2024 @ 10:47am 
Will the miner auto deposit its cargo or will I need to set up a conveyor sorter? Also does the script work as of sep2024?
[ST-R] Solutech [ST] 25 May, 2024 @ 5:51pm 
Does anyone know if this script is still working . Tried it and no matter what I paste between the @@ all I get is an error that makes no sense at all saying

System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
ItsAzael 16 Apr, 2024 @ 9:42am 
Question: does this script work in a scenario where multiple mining drones work out of one mothership? I know there are other scripts out there that do that but I’m finding all the options I can
Iron Duke 22 May, 2023 @ 6:00pm 
I don't suppose anyone could offer me some advice? For some absurd reason my miner when using this script simply won't dock with the home connector after filling up. It flies back and then stops a few metres above the connector and that's it. The p-block just says 'docking'.
AJ 3 Mar, 2023 @ 10:41am 
mine just slammed wondered up to the asteroid like a drunk going to a kebab shop then slammed itself into the ore completely dismantling the whole ship.
E-Man720 9 Jan, 2023 @ 6:06pm 
It's a blueprint.
Up1x 8 Jan, 2023 @ 5:36pm 
hey I can only see this script in F10 in survival and says it can only be opened in creative. In game scripts are enabled.
DarkBlaze 31 Dec, 2022 @ 7:12pm 
Running Thruster Control Program
135960078315825915/^/0^0^0^/X:0 Y:0 Z:0^X:0 Y:0 Z:0^X:0 Y:0 Z:0^X:0 Y:0 Z:0^X:0 Y:0 Z:0^/0^/True^True^True^

Paste Asteroid GPS Here:
===========================
@GPS:AutomineP1:9239.51:166992.82:-99113.09:#FF75C9F1:@
DarkBlaze 31 Dec, 2022 @ 7:08pm 
My miner just sits on the connector with 0 coordinates after giving it the coordinates in the custom data...
Audiacious 24 Dec, 2022 @ 8:56pm 
GPS keeps saying invalid format cant get it to run, any ideas?
E-Man720 26 Nov, 2022 @ 9:43pm 
Unless its mining, where it uses its own logic, it otherwise relies on Keen Autopilot, which is trash at best.
Noble 26 Nov, 2022 @ 12:51pm 
Is this script have some kind of collision detection? Miner keeps crashing into other ships.
Blue64 19 Oct, 2022 @ 5:22am 
At least yours isn't just full-body tackling the connector like mine. Made an Asteroid Eater with a recessed bottom connector; flies forward to reach bottom connector.
Yarddogg101 29 Sep, 2022 @ 1:52am 
Great Script so far, but im having some issues with the miner hovering above the connector about 5 meters and not connecting after mining. any suggestions?
Itto 28 Jul, 2022 @ 7:59pm 
Legend, Thankyou.
Rdav  [author] 28 Jul, 2022 @ 10:40am 
oh sorry, when I made this this was made in blueprint form, you will find it in a blueprint menu
Itto 27 Jul, 2022 @ 6:04pm 
It is enabled, I have a Workshop solar tracker accessible in the list, and other blank copies of you script, but yours is invisible.
Rdav  [author] 27 Jul, 2022 @ 12:24pm 
you need to enable ingame scripts in game settings
Itto 27 Jul, 2022 @ 12:05am 
this script isn't visible in PBlock menu list after subscription and download, is there some paywall I cant see through?
Tactical French Cat 22 Jun, 2022 @ 2:21pm 
my drone just sits in front of asteroid after cargo is transported from drills to cargo containers, also when its docking it just stays near connector whithout doing anything, aby fix?
Rdav  [author] 21 May, 2022 @ 4:21am 
it should still be working yes
~WiFiCatGirl~ 19 May, 2022 @ 8:51pm 
Does this work? The miner (I've even tried others) just sits there looking at the asteroid.
The GPS is placed 30 meters away.
ACajunTiger 11 May, 2022 @ 10:00pm 
Love this script, thanks very much for it.

One issue I'm having is that the miner comes back to base and docks with the connector at a 45 degree angle, nose down. Not sue what's going on. Connector is on the bottom and I connected straight and level. Base is an asteroid if that matters.

Other thing is a question/request. Does it turn on hydro tanks to stockpile to fill them up? If it doesn't, is that a feature I can request for if/when you have time
Rdav  [author] 10 May, 2022 @ 12:05pm 
Its functionality is intrinsically tied to keens remote control block, so unless they fix it, then there's not much I can do apart from a few QOL changes here and there, without remaking the entire thing, which is not off the cards, but unlikely at the moment.
Lordnico05 10 May, 2022 @ 5:11am 
will you ever update this script?
Pretty Little Psycho 6 May, 2022 @ 6:06am 
so having issues with the GPS pasting. Copy from the GPS screen and when I paste it into the Custom Data I get a whole load of numbers that are not coordinates and it gives me a formatting error in the Programming Block status.
Rdav  [author] 1 May, 2022 @ 8:30am 
need to enable scripts in the world
djidi 1 May, 2022 @ 8:12am 
i dont have the edit option in the programmable block
Rdav  [author] 24 Apr, 2022 @ 2:37pm 
nope
Jacoby_cus 24 Apr, 2022 @ 2:00pm 
Will this work on moon for mining ice and docking in space?
Rdav  [author] 16 Apr, 2022 @ 4:18pm 
because its a blueprint, with a programmable block, with a script in it
Shinoskay 16 Apr, 2022 @ 4:16pm 
why is this listed as a blueprint?
MULE 7 Apr, 2022 @ 3:37pm 
im getting the error "cant find front facing remote control" but i have one i have moved and replaced and recompiled everytime and nothing is working what am i missing
Easy Redbeard 20 Mar, 2022 @ 11:53am 
Exactly what I needed, came highly recommended, thank you very much.
ZipeviL 14 Mar, 2022 @ 12:37pm 
Man its awesome and im using it together with command fleet but How do you restart mining after you use FIN argument?!
3vilPcDiva 7 Mar, 2022 @ 7:34pm 
@rdav. I've used this script before, however when I last used it, the drones didn't queue for docking, for example if there was another drone on the connector, it would try to dock anyways, has this functionality been added/fixed?
Cairna ♥ 26 Feb, 2022 @ 12:18am 
If the craft only has battery power, does the script recognize to let it charge? In the same vein, if given an h2 tank/reactors, does it know to stock up on fuel before venturing out?
Rdav  [author] 6 Feb, 2022 @ 4:39am 
if its flipping between them then something has going awry, it could be the vanilla remote control being bonkers, or something about the specific asteroid you've picked, keen updated the way asteroids worked within the last year or so and it seemed to have compounded some of the rarer issues the script experienced
Thurmanite5 5 Feb, 2022 @ 11:08pm 
3 things if you haven't figured them out yet. Slowing rotational velocity, drift cancellation disabled, and drift cancellation enabled.That's what it's showing for me. But mostly the drift cancellation bits.
Thurmanite5 5 Feb, 2022 @ 11:05pm 
Going a simple 581 m doesn't seem to work either. Bad case of the wiggles as soon as it moves away from the station.
Thurmanite5 5 Feb, 2022 @ 10:07pm 
My miner goes 2.21 km away from the asteroid and then turns around in circles despite my GPS being 20 m away
Endo 31 Jan, 2022 @ 6:00am 
is it updated for 2022 space engineers?
Fourgull 31 Jan, 2022 @ 12:28am 
a couple things, are there any settings to make the miner work better? like block inventory size and others. I also have been reading through the comments trying to find out why the script will dig approx 20 metres in, and then leave regardless of whether its cargo is full or not.

another thing, which is the main thing I want to talk about, are you still actively/semi-actively working on this improved version of vanilla autopilot that I've seen mentioned a few times in comments of various scripts? I really like your work and hope to see more but all the scripts ive installed (I can't figure out of its due to the script itself or my lack of skill) never seem to work for me
Calibrated 14 Jan, 2022 @ 1:55am 
Possible to keep it from plunging? aka dive in 50m and pull out to dive in again?
Rdav  [author] 16 Dec, 2021 @ 9:47am 
nope
Mouryom 15 Dec, 2021 @ 11:38pm 
Hey, does the script automatically recharge the battery?
Busne 14 Dec, 2021 @ 10:32am 
In the mining logic panel it just says ‘drift cancellation enabled/disabled’ and ‘slowing rotational velocity’