Space Engineers

Space Engineers

Not enough ratings
Span's AI Mining Drone
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
6.498 KB
Oct 27, 2015 @ 4:35pm
Oct 27, 2015 @ 4:36pm
2 Change Notes ( view )

Subscribe to download
Span's AI Mining Drone

Description
[WIP] This drone will mine a volume of space and drop off contents when full. This script is sufficiently generic that it can be used with a wide variety of mining drone designs.

This drone doesn't "hunt" the asteroid. It systematically paths through a volume of space. I'm considering changing this.

It tracks its progress using a text panel.
It is able to dock using a connector or eject cargo using an ejector.
The user supplies it with a number of waypoints and the drone flies to the area and completely mines out the specified volume of space.

Special blocks required by script on mining drone:
Remote Control
Connector/Ejector
Timer block
Programmable block
LCD Screen

LCD Screen requirements:
Paste GPS coordinates for the roid to mine & the drop off location into the text panel.
Giving it 1 roid GPS point will make it mine a cube of a preset width centered on that point.
Giving it 2 roid GPS points will make it mine a cube centered on the midpoint of the two points with a diameter equal to the distance between them.
Giving it 3 or more roid GPS points will make it mine a rectangular box that encompasses all points provided.

Use a sensor that detects roids to turn on/off the drills.

Once you've got the drills turned on by sensor and the GPS pasted into the LCD, it's good to go. Just have the timer block repeatedly run the script.

WARNING: Autopilot is a bit derpy right now so I don't recommend using this until the devs fix it.

TODO:
Clean up the config.
Make a tutorial.
Test more when autopilot is fixed.
This script is early in development. It needs more work but is ok for a start.
17 Comments
Enigmus Sep 7, 2018 @ 12:02pm 
Could we get an update for this. I believe the Remote control issues have been improved.
MrFox Jul 13, 2018 @ 9:59pm 
What are the location names? and does the order matteR?
Buta Sep 28, 2017 @ 4:47pm 
dose this work without ingame autopilot cuz as is now the collision avoidence must be turned on or it wont move and well the drone wont dock with it on?
richard.e.jenkins Jun 8, 2017 @ 2:47pm 
Thanks for this. I wouldn't be able to have as much fun without you script-writers.
Cannon Dec 14, 2015 @ 7:40pm 
Thanks for the reply span. glad to know the 0,0,0 is a known issue and not something i stumbled upon myself. I got around the too large of script and was able to paste it in. Am having a bit of trouble getting the miner to target an asteroid. Moving around and what not. Its funny because the miner finally goves up and goes on home hahaha. Great miners i love em...
YENDOR MOSREH Dec 14, 2015 @ 7:21pm 
i also have a hydrogen ship that can hover on any angle, so it could use this script on a planet. the only thing is it runs on ice and it uses a lot of fuel fighting gravity it has 72 thrusters, and it would need to get fuel. so could you add a ice level warning. and a postion where it can drill ice and go back mining ore i would not need it in space as it would go to mars on a tank full of ice but can only hover for 30 min on earth lol gravity sucks
YENDOR MOSREH Dec 14, 2015 @ 7:05pm 
the ship could eather dill a hole and exevate an area, hole by hole, or it could touch the surface and drill across the ground making a trench layer by layer but it realy dose have a lot of lift so it can hover full
YENDOR MOSREH Dec 14, 2015 @ 6:57pm 
i have a ship for use on a planet and it drills up and down only, it can move left and right forward and back but the main thrusters and drills point down, and it suffers with gravity sickness, so it would need to fly from the stations dock to the ore deposit going over hill n dale, so how many waypoints can i give it or would i need a drop off point close to the ore.
15  [author] Dec 14, 2015 @ 6:54pm 
@Cannon. This is a work in progress and i don't recommend using it right now unless you don't mind tinkering with code or if you want to use this as a reference for creating your own AI. The script reads each line in the text panel. It looks for certain keywords in the line to decide what GPS point it is (a roid point, a docing area, etc). The keywords are listed as constants at the top of the script. The 0:0:0 bug was something that was bothering me for a while. I haven't worked on this recently and not sure when i will again.
Cannon Dec 13, 2015 @ 10:33am 
I like the way you input commands via LCd panel. Pretty cool. I am having an issue I hope you or someone can help me out with. I have 4 GPS points input in the LCD. GPS Dock Start, GPS Dock End, GPS Test Roid 1, GPS Test Roid 2 and it sets destination of 0:0:0 and doesnt go anywhere. Current position shows good, State is blank, ticks is 0 other data displays correctly. Not sure why. Any ideas? i have tried stopping timer recompiling the program and restarting the timer. If you have a few minutes can you quickly explain when entering the GPS into the public text, how the script pulls the data and what it does with it?