Space Engineers

Space Engineers

AI Mining Drone Script
Devlah Aug 20, 2015 @ 9:34pm
Bug reporting
Providing feedback on aberrant mining drone ingame script behavior.
< >
Showing 1-15 of 34 comments
Devlah Aug 20, 2015 @ 9:52pm 
// Automatic mining drone
// BY DerLaCroix
// Version 2.4 Bugfix 1 (2015-08-14)

Using Cal.303:

Pasted into world using workshop blueprint. Updated onboard script version to latest available (mentioned above).
Initial docking procedure worked as intended.
The drone aligned with the target #SEEK coordinates as intended.
After departing, the drone overshot the target coordinates, but continued to align with the target.
I interposed myself into the sensor field, which caused the drone to correct itself and resume course towards the target. I had to repeat this step several times to prevent the drone from overshooting.

Once within 1 kilometer of the target, the drone encountered an unhandled exception error: Attempt to divide by zero.

Last edited by Devlah; Aug 21, 2015 @ 11:52am
Reeves Sep 27, 2015 @ 6:51am 
i cant get the script to run at all, all i get when ever i press run is "Caught exception during execution of script: Object reference not set to an instance of an object." i have followed all the instructions you have given to the letter, the most i have gotten out of it, was on the first attempt at running it renamed the antenna to, "help human my path is blocked" except it was in empty space
DerLaCroix  [developer] Jun 11, 2016 @ 9:47am 
New version with complete rewrite using Autopilot was published. This should remove most of these issues.
Wraithleader1 Jun 29, 2016 @ 5:50pm 
Same problem a Reeves, Any Idea's??? Note: I've only started back playing hven't played since oct.
Last edited by Wraithleader1; Jun 30, 2016 @ 3:47pm
Jodo Jun 30, 2016 @ 4:45pm 
I'm having issues as well, "Caught exception during execution of script:Object reference not set to an instance of an object."
DerLaCroix  [developer] Jul 2, 2016 @ 4:17pm 
It means there is a block missing that I do expect to exist. I thought I had all of those secured and would send a message on startup that they are missing.

Could you run a single run with #REINIT and look if the Antenna text displays what the error is?
Devlah Jul 2, 2016 @ 9:50pm 
Probabbly a remote control block. That's usually the most overlooked one.
Wraithleader1 Jul 3, 2016 @ 3:19am 
Nope, I've been using it to mine by remote.
I've encountered an issue where the miner stops moving and sits ramrod still once it reaches the "Heading Out" phase of operation. It docks, charges itself, and undocks normally, but it refuses to move afterwards. The antenna isn't displaying any errors.
ShinHodou Jul 6, 2016 @ 2:32pm 
Ironwatsas, I had the same problem, not sure what I did to fix it, but I did set the #TARGET to 1km away and redid the setup process and it has been working since. Also make sure everything is owned by you.
ShinHodou Jul 6, 2016 @ 10:46pm 
Well now im having the Heading Out issue where it just stays in one spot. I have checked to make sure I had all the parts/names, and have restarted the process countless times.
ShinHodou Jul 6, 2016 @ 11:04pm 
I think I figured it out. Make sure the Remote control is set to "one way".
DerLaCroix  [developer] Jul 7, 2016 @ 3:47pm 
Yes. 'One way' is needed to make it work correctly.
Well now it works. Thank you.
delizin Oct 28, 2016 @ 12:19am 
On compiling the script I am receiving the error message:
"Program(1254, 39): Warning: 'IMyInventoryOwner' is obsolete: 'IMyInventoryOwner interface and MyInventoryOwnerTypeEnum enum is obsolete. Use type checking and inventory methods on MyEntity.'"

I suspect that the API has changed very recently. I'm not familiar with the game's API, but I'll see if I can't get my own workaround. Figured I'd give you a heads up though.
< >
Showing 1-15 of 34 comments
Per page: 1530 50