Page 1 of 1

AI attacks bug in KaM Remake

PostPosted: 07 Mar 2013, 05:39
by Krom
Vas reported a bug in AI attacks loading from DAT script. Attacks were not properly reset inbetween parsing. Example:
  Code:
... player 2 setup ... !SET_AI_ATTACK TYPE 0 !SET_AI_ATTACK TOTAL_AMOUNT 1 !SET_AI_ATTACK TAKEALL !SET_AI_ATTACK COUNTER 12000 !SET_AI_ATTACK TARGET 2 !COPY_AI_ATTACK 0 ... snip ... player 3 setup ... !SET_AI_ATTACK TYPE 0 !SET_AI_ATTACK TOTAL_AMOUNT 9 !SET_AI_ATTACK TARGET 2 !COPY_AI_ATTACK 0
With such layout the attack from player 3 would have TAKEALL and DELAY 12000 applied to it. If you resaved the map in Remakes MapEd it would write these fields.

Presumably this bug existed since at least version r4001. Please check your maps.

Re: AI attacks bug in KaM Remake

PostPosted: 07 Mar 2013, 13:58
by pawel95
In which mission this bug poped out?

Re: AI attacks bug in KaM Remake

PostPosted: 07 Mar 2013, 16:07
by Krom
Vas found this bug when testing his campaign in KaM Remake MapEd. I asked hima nd he made a test mission with 3 players just to reproduce this bug.