URL:
<http://gna.org/bugs/?16102>
Summary: AI continues move/attack even if units' sides
change on moveto
Project: Battle for Wesnoth
Submitted by: elvish_pillager
Submitted on: Wednesday 06/02/2010 at 04:05
Category: Bug
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Artificial Intelligence
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 1.8
Operating System: Ubuntu
_______________________________________________________
Details:
If the AI wants to move and attack with a unit, but the unit triggers a
moveto event that changes its side, the AI will attack anyway (even though it
shouldn't be able to because it does not control the unit that it's attacking
with). The command line outputs things like this:
20100601 23:31:32 error ai/actions: Error #1005
(attack_result::E_NOT_OWN_ATTACKER) in attack by side 1 from location 8,6 to
location 7,7 using weapon -1 with aggression 0.4
A closely related issue: In the same situation, if the moveto event leaves
the attacking unit alone but changes the enemy unit to be on the same team as
the attacking unit, then the attack will proceed, even though it would - as
above - be impossible for a player to do this. This causes the following
error message:
20100601 23:24:25 error ai/actions: Error #1006
(attack_result::E_NOT_ENEMY_DEFENDER) in attack by side 1 from location 9,11
to location 9,12 using weapon -1 with aggression 0.4
A third issue: In the same situation, if the moveto event leaves the
attacking unit alone but entirely replaces the enemy unit with a new unit on
the same team as the attacker, then the attack, once again, proceeds when it
shouldn't, with same error message as in the second bug
(E_NOT_ENEMY_DEFENDER).
In at least one of these situations (not sure which, not sure if it happens
consistently), I've also received this error message:
20100601 23:23:31 error ai/actions: Return value of AI ACTION was not
checked. This may cause bugs!
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?16102>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs