Author |
Extractor-AI mining algorithm |
NoBoDx Grand Admiral
Joined: October 14, 2003 Posts: 784 From: Germany / NRW
| Posted: 2010-07-11 08:30  
since AI now can mine planets, i have this algorithm for em:
(dont know, if the already act like this)
1 Check every planet, if its friendly
2 Sort planets by current resources (fewest first)
3 check first friendly planet, if "enemy detected" or "blockade" or "current resource=max ressource"
4 if any of the above is true, skip planet and check next one
5 fly there and start mining
6 wait till cargo is full or 1 minute
7 drop cargo
8 repeat
this way extractor would fill up the most emptiest planet first, but avoiding dangers like mining a planet, currently under enemy siege [ This Message was edited by: NoBoDx on 2010-07-11 08:31 ]
_________________ The only good 'ooman is a dead 'ooman. An' da only fing better than a dead 'ooman'z a dyin' 'ooman who tell you where ter find 'is mates.
|
SpaceAdmiral Grand Admiral
Joined: May 05, 2010 Posts: 1005
| Posted: 2010-07-11 12:45  
should give priority to non full-res sy planets
_________________
|
Eledore Massis [R33] Grand Admiral Templar Knights
Joined: May 26, 2002 Posts: 2695 From: tsohlacoLocalhost
| Posted: 2010-07-11 16:17  
I think the current Mining AI is.
1 were moving to another planet to trade our resources
2 we have the planet selected and are jumping.
3 are the mining beams in range ?
3.1 (YES) Activate mining beam
3.2 (No) goto 3
4 repeat.
When the transport jumps to a new planet or moves away the mining beams will run out of range or arc limitations and deactivate..
_________________ DS Discordion
|