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 11 Feb 2013 03:07:06 PM UTC  
 
Category: aiPriority: 5 - Normal
Status: DonePrivacy: Public
Assigned to: Marko Lindqvist <cazfi>Open/Closed: Closed
Planned Release: 2.5.0

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Tue 19 Feb 2013 04:58:04 AM UTC, 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 16 Feb 2013 06:48:30 AM UTC, 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 11 Feb 2013 03:07:06 PM UTC, 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):
   
   
Comment:
   

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.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

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

    Back to the top


    Powered by Savane 3.1-cleanup