keeperfx icon indicating copy to clipboard operation
keeperfx copied to clipboard

Incorrect creature combat behavior

Open Loobinex opened this issue 1 year ago • 5 comments

There is a new bug where units behave weirdly in combat. Attached are 2 packet files that reproduce 2 different situations:

  1. The top left salamander will behave like a ranged unit and only back out of combat. image

  2. Out of the 8 goblins that should attack the 2 black knights, a bunch refuse to fight and will stand still inside the knight.

To reproduce:

  • install Alpha 3972
  • Extract this file over the folder, giving you custom configs, creatures, a testmap and the packets: reproduce.zip
  • Run the game with -packetload pack1.pck for the first bug, or -packetload pack2.pck for the second bug

I have traced the bug down to be introduced in Alpha 3935. Revert the commit from 2024-04-26, 19:22 and run the packets again to see both the salamander and the goblins behave correctly.

Loobinex avatar May 30 '24 23:05 Loobinex

I get broken Hell Hounds when I run the packets.

Warning: The global creature model config file "./creatrs/goblin.cfg" doesn't exist or is too small. Warning: The global creature model config file "./creatrs/salamander.cfg" doesn't exist or is too small. Warning: The global creature model config file "./creatrs/maiden.cfg" doesn't exist or is too small. Warning: The global creature model config file "./creatrs/black_knight.cfg" doesn't exist or is too small.

Was the zip supposed to include these configs too?

AdamPlenty avatar Jun 03 '24 01:06 AdamPlenty

Was the zip supposed to include these configs too?

Yes. I updated the file in the first post to include them now too.

Loobinex avatar Jun 03 '24 17:06 Loobinex

I've loaded this up on alpha (4084) and combat is working as it should, above bugs were not present.

BovenDien avatar Sep 07 '24 11:09 BovenDien

I've loaded this up on alpha (4084) and combat is working as it should, above bugs were not present.

I can reproduce it still, but can also reproduce it in the 1.1.0.3944 build (the full release).

Loobinex avatar Oct 08 '24 00:10 Loobinex

Maybe it has something to do with max melee/ranged opponents?

walt253 avatar Oct 08 '24 00:10 walt253