Space Engineers

Space Engineers

View Stats:
onewhofound May 11, 2023 @ 11:07am
Trying to build an auto-miner
So I have been banging away at building an auto-miner for a while now and can't seem to get it right. I think I've got most of the bugs worked out with docking, but I can't figure out how to get it to mine a deposit.

I have a timer block to turn drills on, collision avoidance off, etc. But other than recording an AI Recorder sequence set to move through various points relative to a beacon, is there any other way to do it? The AI Task block says it can be set to wander around a home point, which sounds perfect but I can't find the 'wander' function...?
Last edited by onewhofound; May 11, 2023 @ 11:09am
< >
Showing 1-15 of 23 comments
Denagar May 11, 2023 @ 11:23am 
you got a blueprint on workshop wip but pretty nicely working of an autominer using the new ai blocks no scripts if that can help you out :)
This PC May 11, 2023 @ 11:32am 
The Automatons update does not provide function for your miner to react to a deposit while wandering. The closest to that you will get with Automatons blocks is pointing at a deposit with a ship with a beacon on it, and your miner moving relative to that beacon to mine the deposit you pointed at.

You will find the wander function in an AI Task block set on "Follow", the wander function is a tickbox at the bottom. It is mostly good for ships patrolling with an offensive block.

Fully autonomous miners are not possible at the moment, I believe, not even with scripts. PAM and such are advertised as being fully autonomous, but you still need to record paths and do a fair bit of setup.
Last edited by This PC; May 11, 2023 @ 11:36am
Dan2D3D  [developer] May 11, 2023 @ 12:02pm 
HI, it is still very new to all and there are no auto mining blocks so kind of hard to do without the existing Script.

Me = I will surely try in space first, by creating a specific 150m Path aligned with a Mothership, position that Mothership in way the 150m Path will go into the asteroid and deploy the Mining Drone, testing needed for me to know more ...

+
Only one found a way and his video is very fast so you will have to pause to see what he did are ask him to share on the Workshop if not already available :

https://youtu.be/ZLNE8Yzt4Qo
Last edited by Dan2D3D; May 11, 2023 @ 12:02pm
Dan2D3D  [developer] May 11, 2023 @ 12:03pm 
Oh! The WS item link was in the description :

https://steamcommunity.com/sharedfiles/filedetails/?id=2965455853
Hypnosis May 11, 2023 @ 12:25pm 
Just play the game, and don't use auto-miners.

Auto mining is incredibly slow, and not worth the effort.
onewhofound May 11, 2023 @ 12:26pm 
Originally posted by Denagar:
you got a blueprint on workshop wip but pretty nicely working of an autominer using the new ai blocks no scripts if that can help you out :)

Might have to run that through Google Translate again, I am pretty sure it mixed it up the first time some how.



Originally posted by Dan2D3D:
HI, it is still very new to all and there are no auto mining blocks so kind of hard to do without the existing Script.

Me = I will surely try in space first, by creating a specific 150m Path aligned with a Mothership, position that Mothership in way the 150m Path will go into the asteroid and deploy the Mining Drone, testing needed for me to know more ...

+
Only one found a way and his video is very fast so you will have to pause to see what he did are ask him to share on the Workshop if not already available :

https://youtu.be/ZLNE8Yzt4Qo

Question: what exactly does the 'Wander' function do? Thanks to jdtuggety I have now found it, but after setting it to a relatively small min/max distance (2 and 30 meters) my drone just kinda drifts and wiggles rather than turning and proceeding in a random direction as I expected.
onewhofound May 11, 2023 @ 12:31pm 
Originally posted by Hypnosis:
Just play the game, and don't use auto-miners.

Auto mining is incredibly slow, and not worth the effort.

Having mined millions of tons of rock and ore over the years, this is less about efficiency and more about the challenge of making a system work.

I've made a collision alarm, an auto-dock command, and a system to prevent the classic 'hydrogen engines use up all hydrogen' blunder using the new blocks. It seems like I should be able to do this except for this last step. I might end up using the aforementioned 'AI Recorder back and forth based on a ship's main beacon but I'd like to do it another, more organic way if possible.
Hypnosis May 11, 2023 @ 12:33pm 
Originally posted by onewhofound:
Originally posted by Hypnosis:
Just play the game, and don't use auto-miners.

Auto mining is incredibly slow, and not worth the effort.

Having mined millions of tons of rock and ore over the years, this is less about efficiency and more about the challenge of making a system work.

I've made a collision alarm, an auto-dock command, and a system to prevent the classic 'hydrogen engines use up all hydrogen' blunder using the new blocks. It seems like I should be able to do this except for this last step. I might end up using the aforementioned 'AI Recorder back and forth based on a ship's main beacon but I'd like to do it another, more organic way if possible.

Everyone wants to just log in to a server, load up a script/auto-miner, log off.

Then come back 2 weeks later, and you're top of the server.

Not going to happen though.
onewhofound May 11, 2023 @ 12:41pm 
Originally posted by Hypnosis:
Originally posted by onewhofound:

Having mined millions of tons of rock and ore over the years, this is less about efficiency and more about the challenge of making a system work.

I've made a collision alarm, an auto-dock command, and a system to prevent the classic 'hydrogen engines use up all hydrogen' blunder using the new blocks. It seems like I should be able to do this except for this last step. I might end up using the aforementioned 'AI Recorder back and forth based on a ship's main beacon but I'd like to do it another, more organic way if possible.

Everyone wants to just log in to a server, load up a script/auto-miner, log off.

Then come back 2 weeks later, and you're top of the server.

Not going to happen though.

Like I said earlier, not really the point. If I am trying to get minerals I can jump to a point, mine a whole ore deposit while automatically dumping all the stone, and jump back to base in ten minutes or less with my Parkour Wallminer:

https://steamcommunity.com/sharedfiles/filedetails/?id=2974547139
This PC May 11, 2023 @ 12:42pm 
I can guarantee you that wander works, and does exactly what it says on the tin. You'll definitely see it work once you give it more room.

You're doing the equivalent of sitting a human person in an airplane toilet cabin and asking them to wander~ Hard to wander in a space barely bigger than you lol.

I have my drones wander in a zone within 1000m and 2000m away from my base. Wander works more like "AI picks a point in space, moves there, then picks another point in space, moves there" than a continuous movement pattern.
Last edited by This PC; May 11, 2023 @ 12:43pm
Dan2D3D  [developer] May 11, 2023 @ 12:42pm 
Originally posted by onewhofound:

Question: what exactly does the 'Wander' function do?

I did not tested that part, I am still at Offensive Drones but I think "Wander" should go with "Return home" where the Drone will stay at a created GPS coords close to your station and move a bit around that GPS / Wander / without any specific directions so move casual.
Last edited by Dan2D3D; May 11, 2023 @ 12:44pm
This PC May 11, 2023 @ 12:49pm 
Originally posted by onewhofound:
Originally posted by Hypnosis:
Just play the game, and don't use auto-miners.

Auto mining is incredibly slow, and not worth the effort.

Having mined millions of tons of rock and ore over the years, this is less about efficiency and more about the challenge of making a system work.

I've made a collision alarm, an auto-dock command, and a system to prevent the classic 'hydrogen engines use up all hydrogen' blunder using the new blocks. It seems like I should be able to do this except for this last step. I might end up using the aforementioned 'AI Recorder back and forth based on a ship's main beacon but I'd like to do it another, more organic way if possible.

I don't think you should be able to fully automate the mining process unless there's serious effort put into it. The point of Automatons update is not to have the game play itself, it's to help automate some repetitive tasks where you control all the variables ie: docking at the same connector everytime. At least that is automating one part of the mining process, right ? Then you can automate how your miner punches through the rock, and withdraws out of the shaft. You can automate having your miner go back to base to dump...

I think you're seeing "I want to automate mining", and that is the wrong way to approach Automatons, you should be seeing the different parts of what the whole "mining" thing is, and automating what you can to minimize the work you put into the whole process, automatons is about that, helping you streamline things, not do everything for you.

If you want a block that will do everything for you, sit down, learn some C#, and use prog block. ♥

I've been working on an offensive drone swarm myself, and I could do everything with automatons block (detecting when they need to recharge, and having them come back to dock, detecting enemies and going to fight them, etc..) except detecting which of my docks are busy, so I'd end up with 3 drones dogpiled on a connector, unless I made a different dock and recorded a different approach for each drone. I was also annoyed at having to use 10 timer blocks on each drones, so I scrapped all of that, put down only the AI blocks, and I am coding a system that handles all of my needs in a prog block, toggling the AI blocks as needed via scripts instead.

I think they've struck a wonderful balance between not pulling the rug from underneath the community scripters' feets, and giving us ways to automate things without scripts.
Last edited by This PC; May 11, 2023 @ 12:55pm
Capt Fuzzy May 11, 2023 @ 2:35pm 
Automining has plagued me long before the Automatons update.

The only reliable way that I've found to effectively 'automine' is to use this mod:
https://steamcommunity.com/sharedfiles/filedetails/?id=2113586059
and then make simple cargo drones that travel back and forth unloading them.

Since the Automatons update, this has actually gotten easier to do, but I have yet to really dig into the AI blocks and unlock everything that they are capable of...
onewhofound May 11, 2023 @ 5:35pm 
Originally posted by Capt Fuzzy:
Automining has plagued me long before the Automatons update.

The only reliable way that I've found to effectively 'automine' is to use this mod:
https://steamcommunity.com/sharedfiles/filedetails/?id=2113586059
and then make simple cargo drones that travel back and forth unloading them.

Since the Automatons update, this has actually gotten easier to do, but I have yet to really dig into the AI blocks and unlock everything that they are capable of...

Yep I have done a couple of those, they work pretty well at the beginning of a 'world' but it ends up being more efficient to use a mid-size miner ship like the one I posted. That said, I might have to revisit the idea now that I can automate drone delivery.
condottiere May 11, 2023 @ 6:15pm 
We all have our own approaches to automining, of course. And OP's personal quest/challenge to build a flying autominer is in the spirit of the sandbox, even if it's bumping up against the limits of SE's features.

Within the scope of your challenge, I feel like a decent compromise would be to design a mostly autonomous vertical miner that'll fly to a provided single GPS or beacon ship/grid parked over an ore deposit, then drill down from there until full. Or maybe use override thruster blips to slowly advance the ship if in 0 g.

More complicated and less reliable, use some Rube Goldberg complex set of timers/event controllers to run the miner through a spiral flight pattern, similar to a static piston/rotor drill rig. If you can't make the ship conditionally detect ore, just brute force it with strip mining. :D This would probably be about as complicated as writing a mining script, though.

Set up with sorters and ejectors (if on small grid, a large connector set to eject has more throughput than a small connector, IIRC) for stone, the autominer could continue strip mining until it blindly hits the ore deposit proper and fills up cargo.

At that point though, it becomes a point of pride to make it fly, since I think it'd actually be easier to simply build the piston/rotor drill rig. :P

For my time, I personally prefer the static large grid piston/rotor drill rig, so i'm a bit biased. :D Periodically relocated or rebuilt, as needed. A small rig with 2 drills gives me plenty of ore for my needs. Largely a passive operation while I work on another project, and if patiently timed for slightly slower extension/rotation, no chance of grid explosion -- unlike my occasional human operator flight mishaps. :D

Outside the scope of your specific challenge to build a fully autonomous miner, since we have plenty of working cargo drones, it'd definitely be more achievable to set up a drone route between a static drill rig and the refinery base. Blah blah blah conditional triggers on full inventory to start/stop the drill and send the drone on its next leg.
< >
Showing 1-15 of 23 comments
Per page: 1530 50

Date Posted: May 11, 2023 @ 11:07am
Posts: 23