Bug? AI damages rest of own team leading to a missed next AI turn due to switch command

No replies
rbaleksandar
rbaleksandar's picture
User offline. Last seen 9 years 33 weeks ago. Offline
Joined: 2009-01-09
Posts: 685

Hi all! Smile

I have neglected my career as a Hedgewars-expert Clown! for a very long time (more than 2-3 years I think). I recently found the time to get back to this game. I have a 64bit Debian Wheezy now and downloaded the pre-compiled binaries for 0.9.17 (found out later on that the current version is 0.9.20 so I need to compile things soon or just download from backports). Thus have in mind that this might not be present in the versions that follow and in fact I'm not 100% sure it is a bug.

I have uploaded a demo that illustrates the problem (don't mind the bad play on my part Big Grin). Due to the fact that this is a pretty rare situation when a hedgehog on 4 members AI team manages to damage 3 of its teammates (including itself), it is not possible to provide more...samples. In short here is what happened:

  1. AI hedgehog decides to be evil and throw a cocktail Molotov at my own poor hedgehog
  2. Due to "miscalculation" and the influence of the wind the cocktail smashes in the ceiling and fire falls on all three AI hegehogs (I wish my aim was that good when shooting at the enemy Big Grin)
  3. 2 turns later (when it's again the AI's turn) the fire from the Molotov is still burning and damages the hedgehogs occasionally leading to a switch command by the AI until the fourth hedgehog is picked that is not grilled by the flames of Hades. The switch command remains active and the AI remains idle until the time (more than 30 seconds!) of its turn runs out. The AI skipps (note that it always skips but does not remain just idle!) a turn only if there is no possible shot (let's not forget that the AI in a quick match uses only the very basic tools such as shotgun, revolver, bazooka and grenades due to the its level of difficulty). In this case however I'm pretty sure it has a shot at two of my hedgehogs even with the wind blowing in the opposite direction of a possible shot.

Since this behaviour seems odd I decided to write here and suggest further investigation because I think this might be a bug. If the AI was to remain idle due to an impossible shot at my hedgehogs, it should have still ended the switch command and simply skipped the turn with the command meant to do that. I've also provided a video of the problematic part. Idle part at the end is cut off since there is no need to watch it for whole 34 seconds.

Regards,
RBA

HTML = How To Meet the Ladies

Here is my Unofficial Manual for HW. Hope you like it. Wink Smiley Still working on it. Don't worry. Will get it finished...Sometime in the future. Big Grin

User login

Copyright © 2004-2024 Hedgewars Project. All rights reserved. [ contact ]