Complete.Org: Mailing Lists: Archives: freeciv-ai: October 2004:
[freeciv-ai] Re: (PR#10216) AI Builds Too Many Transports
Home

[freeciv-ai] Re: (PR#10216) AI Builds Too Many Transports

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: badamson@xxxxxxxxxxx
Subject: [freeciv-ai] Re: (PR#10216) AI Builds Too Many Transports
From: "Gregory Berkolaiko" <Gregory.Berkolaiko@xxxxxxxxxxxxx>
Date: Tue, 5 Oct 2004 19:22:15 -0700
Reply-to: rt@xxxxxxxxxxx

<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 




[Prev in Thread] Current Thread [Next in Thread]