Trying to track why, I cannot find why the ship simply refuses to mine and then ignores any other orders. I read in another thread something about a possible fix to not taking new orders:
if check1 == true and check2 == true then -- Mo more asteroids are available. Put down work.
if ship.playerOwned then
callingPlayer = ship.factionIndex
elseif ship.allianceOwned then
callingPlayer = Alliance(ship.factionIndex).leader
end
ship:invokeFunction("craftorders.lua", "setAIAction")
callingPlayer = nil
check3 = true
That seems to fix the exit from mining function.
But the mining part in of itself is just not working. (BETA 0.19.1 r12932)
UPDATE: Turns out I was impatient. Mining starts after few cycles.