slight revision of minerAI

An area for discussing new ideas and additions to Oolite.

Moderators: winston, another_commander

Post Reply
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

slight revision of minerAI

Post by Commander McLane »

The other day I was doing a little asteroid mining. As I don't have a mining laser myself I grouped up with a native mining ship in a very profitable co-operation: I let him shoot up the asteroids and boulders, and then scooped up the splinters before he could do it. :P So he had to turn to the next asteroid. Rinse, repeat.

Now, accompanying this miner I found one thing odd. After cleaning out a big part of the asteroid field, the remaining asteroids were scattered in the distance. So the miner targeted an asteroid about 15 to 20 kms away, went into state BREAK_ROCKS, and approached the asteroid with a breathtaking speed of 37.5. It took quite some while to get into firing distance. Remarkably, once in firing range, the speed went a little up, only to slow down again once the asteroid was hit.

What I would suggest is another state, probably APPROACH_ROCKS, that brings the miner into his target's vicinity first (let's say 5 km) with a higher speed (speedFactor of at least 0.5, perhaps?), before setting the state to BREAK_ROCKS on DESIRED_RANGE_ACHIEVED.

Am I making sense here?
Last edited by Commander McLane on Mon Oct 12, 2009 11:01 am, edited 1 time in total.
User avatar
Micha
Commodore
Commodore
Posts: 815
Joined: Tue Sep 02, 2008 2:01 pm
Location: London, UK
Contact:

Post by Micha »

Sounds good to me.
The glass is twice as big as it needs to be.
Post Reply