patchFreeciv - Patches: patch #3694, RFC: Cities requesting autosettler...

Show feedback again

patch #3694: RFC: Cities requesting autosettler work

Submitted by:  Marko Lindqvist <cazfi>
Submitted on:  Mon Feb 11 15:07:06 2013  
Category: aiPriority: 5 - Normal
Status: DonePrivacy: Public
Assigned to: Marko Lindqvist <cazfi>Open/Closed: Closed
Planned Release: 2.5.0Contains string changes: None

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


Tue Feb 19 04:58:04 2013, SVN revision 22377:

Added concept of worker task request. Each city can have one such request,
and autosettlers will fulfill these requests with higher priority than
any other work. Currently nothing sets the requests for the cities, so
there is no functional change with this initial commit.

See gna patch #3694

(Browse SVN revision 22377)

Marko Lindqvist <cazfi>
Project AdministratorIn charge of this item.
Sat Feb 16 06:48:30 2013, comment #1:

Untested first patch for the series. Untested because I have not yet code that would create any requests. This adds space for a single worker activity request for each city. Autosettlers try to fulfill these requests first, and only if there's no request they can fulfill will they evaluate jobs themselves (use the old code).

There's obvious space for future feature based on this that not only AI could add the requests, but human player could add them for his/her cities for autosettlers to perform as soon as they finish their previous jobs.

(file #17215)

Marko Lindqvist <cazfi>
Project AdministratorIn charge of this item.
Mon Feb 11 15:07:06 2013, original submission:

This idea originally started as part of threaded ai design, but mayeb its worthwhile to push to default ai (would then benefit also threaded ai implementation).

Currently autosettlers search for work. This could be turned the other way so that instead cities would request autosettlers to do important things for them. I believe this model would make it easier to implement ai planning a bit ahead instead of just the one tile improvement at time. Cities would have list of things to do, with priorities, and free autosettlers would then take highest priority task they can do (i.e. if we ever implement AI terrain transforming, Workers would skip transforming tasks even if they are highest priority, while Engineers would take those).

The problematic part would be building anything outside city radius - where no city would request it. Currently AI has at least some idea of building intercity roads, though one rarely sees it doing it for tiles between the radius of the cities to connect.

Marko Lindqvist <cazfi>
Project AdministratorIn charge of this item.


(Note: upload size limit is set to 1024 kB, after insertion of the required escape characters.)

Attach File(s):

Attached Files
file #17215:  CityWorkerRequests.patch added by cazfi (9kB - text/x-diff)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by cazfi (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Error: not logged in



    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue Feb 19 04:58:20 2013cazfiStatusNone=>Done
      Assigned toNone=>cazfi
    Sat Feb 16 06:48:30 2013cazfiAttached File-=>Added CityWorkerRequests.patch, #17215
      Planned Release=>2.5.0
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup