game gets stuck during the enemy move

Issue #136 new
Lukas Jirkovsky created an issue

The game gets stuck during the enemy's turn shortly after the game switches to the turn based mode.

I think this happens when you shoot at someone in the real time mode and kill them but they get a turn anyway.

Attached is a save game where I was able to reproduce the issue every time.

Steps to reproduce: 1. select slasher 2. shoot the guy standing by the window in the head 3. he is killed, but the Hicks get a turn and the game gets stuck

Comments (1)

  1. Lukas Jirkovsky reporter

    Here is a log that I obtained after compiling ja2 with -DSGP_DEBUG. I hope this helps. The log starts at the moment when Slasher fires his gun and ends when the game gets stuck:

    #!
    
    !!!!! Incrementing attacker busy count..., CODE FROM ANIMATION SHOOT (R) CROUCH ( 28 ) : Count now 2
    Event Pump: FireWeapon
    Deduct Points (0 at 18625) 0 0
    Entering combat mode
    Music New Mode 45 4
    Music New Mode 45 5
    Deduct Points (116 at 15104) 0 -3800
    Deduct Points (117 at 16709) 0 -3600
    Deduct Points (118 at 15105) 0 -3600
    Deduct Points (119 at 11417) 0 -3400
    Deduct Points (120 at 11253) 0 -3600
    Deduct Points (121 at 15744) 0 -3600
    Deduct Points (122 at 15748) 0 -3600
    Deduct Points (123 at 18143) 0 -3400
    Deduct Points (124 at 14787) 0 -3400
    Deduct Points (125 at 15106) 0 -3600
    Deduct Points (126 at 15277) 0 -3400
    Deduct Points (127 at 12696) 0 -3400
    Deduct Points (128 at 11436) 0 -3600
    Deduct Points (129 at 10311) 0 -3600
    Deduct Points (130 at 12392) 0 -3600
    Deduct Points (131 at 11585) 0 -3400
    Deduct Points (132 at 10456) 0 -3600
    Deduct Points (133 at 10776) 0 -3600
    Deduct Points (134 at 11096) 0 -3600
    Deduct Points (135 at 11415) 0 -3600
    Deduct Points (136 at 16390) 0 -3400
    Deduct Points (137 at 15907) 0 -3600
    Deduct Points (138 at 16225) 0 -3600
    Deduct Points (139 at 16227) 0 -3400
    Deduct Points (140 at 15269) 0 -3400
    Deduct Points (141 at 11258) 0 -3600
    Deduct Points (142 at 16066) 0 -3600
    Copying 8 BPP Imagery.
    BBBBBB bNewSituation is set for 117 when ABC !=0.
    BBBBBB bNewSituation is set for 136 when ABC !=0.
    BBBBBB bNewSituation is set for 138 when ABC !=0.
    Event Pump: Begin Fire Weapon
    !!!!!!! Starting attack, attack count now 3
    !!!!!!! Starting attack, bullets left 9
    Deduct Points (117 at 16709) 2 0
    !!!!!!! Ending bullet, bullets left 0
    !!!!!!! Person got hit, attack count now 4
    Handling morale event 4 for Slasher at X=10, Y=6, Z=0
    !!!!!!! Ending attack, attack count now 3
    !!!!!!! Tried to free up attacker, attack count now 3
    Deduct Points (117 at 16709) 29 2000
    @@@@@@@ Reducing attacker busy count..., CODE FROM ANIMATION SHOOT (R) CROUCH ( 28 )
    !!!!!!! Ending attack, attack count now 2
    Deduct Points (117 at 16709) 4 250
    Music Stop 45 5
    Music EndCallback -1 5
    Music End Loop -1 5
    StartMusicBasedOnMode() -1 5
    Music PLay 51 5
    @@@@@@@ Releasesoldierattacker, code 497 = handle soldier death
    @@@@@@@ Freeing up attacker of 117 (attacker is 0) - releasesoldierattacker num to free is 1
    !!!!!!! Ending attack, attack count now 1
    
  2. Log in to comment