Opened 7 years ago

Last modified 5 years ago

#4508 new defect

UnitAI - Patroling ships should ignore units outside of attack range

Reported by: elexis Owned by:
Priority: Nice to Have Milestone: Backlog
Component: Simulation Keywords: rfc
Cc: Patch:

Description (last modified by elexis)

When a ship patrols the sea and encounters a land unit in vision range but outside of attack range, it will stop the patrol and try to reach that unreachable unit.

Land units however can be considered (at least in this ticket) to always be able to reach the units in vision range.

http://trac.wildfiregames.com/raw-attachment/ticket/4508/screen.jpg

Attachments (3)

screen.jpg (862.1 KB ) - added by elexis 7 years ago.
commands_patrol_fail.txt (13.3 KB ) - added by elexis 7 years ago.
Replay for r19296 demonstrating the issue where the ship tries to reach a unit forever while obviously not being able to
rfc.patch (1.1 KB ) - added by elexis 7 years ago.

Download all attachments as: .zip

Change History (9)

by elexis, 7 years ago

Attachment: screen.jpg added

by elexis, 7 years ago

Attachment: commands_patrol_fail.txt added

Replay for r19296 demonstrating the issue where the ship tries to reach a unit forever while obviously not being able to

comment:1 by elexis, 7 years ago

Description: modified (diff)

by elexis, 7 years ago

Attachment: rfc.patch added

comment:2 by elexis, 7 years ago

Keywords: rfc added

Something like this could work, the flag could be added to either the command from the GUI or added to the templates.

Reducing the attack range to match the vision range might also be an option, but this won't work generically for all templates and is prone to errors when people change the templates.

Any opinions?

comment:3 by leper, 7 years ago

This sounds like something that would fit quite well as a stance. (That however requires being able to add a few more stances and limit those available to certain units.)

comment:4 by elexis, 7 years ago

How about adding it to the defensive stance?

(Also notice it's not only about patroling but for attack-walk orders too)

comment:5 by leper, 7 years ago

Could work, then again special stances for ships do seem like a better idea. (Adding that specific check to one of the current unit stances might make sense, dunno.)

comment:6 by Imarok, 5 years ago

Component: UI & SimulationSimulation

Move tickets to Simulation as UI & Simulation got some sub components.

Note: See TracTickets for help on using tickets.