Re: (PR#10216) AI Builds Too Many Transports

"Gregory Berkolaiko" <[email protected]>
Newsgroups gmane.games.freeciv.ai
Message-ID <[email protected]>
<URL: http://rt.freeciv.org/Ticket/Display.html?id=10216 >

Benedict,

On Tue, 5 Oct 2004, Benedict Adamson wrote:

> > its seems that kill_something_with function is failing to use the 
> > available (free) ferries.
> ...
> I'm trying a fix of using aiferry_find_boat instead of find_boat in 
> kill_something_with. This seems to fix the problem. I'll test it further 
> tomorrow, then submit a patch.

I would rather go the other way.  We should manage the boat building on 
the centralized level.  This will allow k_s_w not care about actually 
finding a boat, if it really wants a boat, one would be found/built for 
it.  It would take take some time to make this system robust, but it is 
the way forward I feel.

Among other reasons for it, aiferry_find_boat is a PF-based function and 
should not be called too often.

For "centralized boat building" patch see ticket 8992 (I will send in the 
latest patch in a minute).  Please help me in bringing this patch up 
to standards, testing it and using the latests technology (ocean numbers 
+ Per's ocean connectivity patch).

Best wishes,
Gr
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.