bugFreeciv - Bugs: bug #20587, Autosettlers only consider enemy...

 
 
Show feedback again

bug #20587: Autosettlers only consider enemy land units dangerous

Submitted by:  Jacob Nevins <jtn>
Submitted on:  Mon 04 Mar 2013 10:07:33 PM UTC  
 
Category: aiSeverity: 3 - Normal
Priority: 5 - NormalStatus: None
Assigned to: NoneOpen/Closed: Open
Release: Operating System: Any
Planned Release: 

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Sat 12 Apr 2014 02:45:17 PM UTC, comment #2:

Notes on implementation:
Rather than checking whether a given square is threatened, autosettlers should check if there are any units that would be able to attack the autosettler within the time required to complete the work underway as part of determining if some work should be undertaken in the first place. Once work is started, the autosettler should only interrupt work in the event that some unit would be able to attack them within the analysed turn (even if some unit gets close enough to attack before the work is done, an autosettler actively engaged in work shouldn't stop work unless actively threatened). The threat analysis is probably best done with a pf_map of some sort.

Note that the bug, as titled, is solved, as patch #3854 causes autosettlers to avoid adjacent battleships, but not the destroyer hanging just off the coast and picking off each autosettler as it appears (despite being seen by units in a nearby fortress). As much as it might appeal, the final implementation should avoid fixing this issue if the destroyer cannot be seen by the player.

Emmet Hikory <persia>
Project Member
Fri 19 Apr 2013 09:54:00 PM UTC, comment #1:

Oops. Found this after posting patch #3854

Although closely related, I'm not sure this ticket is entirely closed by that patch though: while it does remove the "land" restriction, it does not include the deeper analysis that might be useful to determine if a given tile is truly dangerous, nor even look beyond the immediate horizon (2 tiles away).

Emmet Hikory <persia>
Project Member
Mon 04 Mar 2013 10:07:33 PM UTC, original submission:

Undefended autosettlers gained the ability to run away from threatening units in patch #3384. However, they currently only consider land units threats, so coastal workers will still blithely ignore battleships.

cazfi said: "To make it work well, a bit more work is needed. It should not abort work when settler is not on the coast, but still the sea unit is within checked range, or when sea unit is not able to coastal bombardment...
"I'll leave that to future tickets (and probably TRUNK only)"

(Comments in patch #3383 may also be relevant?)

Jacob Nevins <jtn>
Project Administrator

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by persia (Posted a comment)
  • -unavailable- added by jtn (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):

     

     

    No Changes Have Been Made to This Item
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup