Standard mining bot problems

I have Sanderling v2019-05-13 and I am trying to use the standard miner bot. I’ve done the setup correctly I think. This includes updating of the overview tab name as a string. The Autopilot bot works well.

I dock at a station and hit start. The bot recognises initially says waiting for undock indefinitely. I manually undock. It finds Asteroid Belt, warps to them, finds asteroids but does no mining then it picks the next belt and warps straight to that.

What’s going wrong here.

Screen Layout
Session log

Welcome @ratbotter! :wave:

Thank you for the report.

You did everything right there. The undocking problem looks familiar to me (BotEngine Devlog). I will look into this and get back to you.

To find out what is wrong, I need a screenshot of the game client in that moment where the bot picks the wrong action.
If the bot does not click where it should, we describe the problem using such a screenshot.

The screenshot you posted so far is from a different time right?

I’m also having a problem, the bot doesn’t seem to be able to move, it undocks fine, but then can’t seem to select anything past that, then if a warp to the belt it still can’t do anything, its trying, but can’t get there

it was working fine for a couple of days, but at this stage the bot has used more sanderling credits not mining than it has mining…

1 Like

and now its working fine… lol

1 Like

Welcome @joedirt!
Sorry to hear this caused you issues. I am working on making the detection of the menu entries where it should click on more robust.
Thank you for the update.

a couple of more things,
it got stuck for about 6 hours trying to unload from the ore hold into the hangar, couldn’t get the last bit out of the left hand side.

also sometimes it gets stuck trying to warp to the same belt if the belt is empty (usually the first belt it seems)

1 Like

Changed the inventory to list like i was suppose to :/:sweat_smile:

1 Like

Thank you @joedirt for sharing your observations!

As I understand it, this resolved the unloading ore problem you mentioned earlier.
So this leaves only one issue remaining:

At which stage did it get stuck? Was the menu entry to warp already on the screen?

So it will warp to the belt, find no asteroids and try to warp to the ‘next’ belt, but keeps trying to select the belt its already in, so the only option it has in the menu is ‘track’

I’ve moved to a bigger system that doesn’t seem to get any of it’s belts mined out to avoid the situation in the first place

1 Like

Thank you for the clarification. When I have a screenshot of the open menus in the game client, I can probably improve the bot to pick another asteroid belt when this happens.

you can add in inbeltsite func:

if(!(0 < ListAsteroidOverviewEntry?.Length))
return MainStep;

or:
if you use the sample beginners-ore-asteroid-miner.cs :

change from

	if(null == asteroidOverviewEntryNext)
	{
		Host.Log("no asteroid available");
		return null;
	}

to

	if(null == asteroidOverviewEntryNext)
	{
		Host.Log(" empty belt");
		return MainStep;
	}

if you use Mine.ore.cs: you change the same thing