MantisBT - VCMI
View Issue Details
0001252VCMIAI - Adventure Mappublic2013-04-01 12:052022-03-15 18:41
oskarroza 
SXX 
highblockalways
closedunable to reproduce 
PCWin7 32 bit
0.92 
 
0001252: Stuck on EndTurn, because AI player has been vanquished
Hi, there seems to be a problem with the AI when it's killed by another AI player. VCMI is simply stuck at the DEAD AI turn and cannot finish it, because the AI player is vanquished from the map (lost all heroes and towns).

Below I upload the VCMI log. In the end I tried to write 'EndTurn' into VCMI console, with no success, that's why there are "You are not allowed to perform this action!" present.


VCMI log:
(...)
Made first apply on cl
Hero Gretchin #detached from# Player Purple
    Applied on gs
    Made second apply on cl
Listening... received server message of type struct SetPrimSkill
    Made first apply on cl
    Applied on gs
    Made second apply on cl
Listening... received server message of type struct SetPrimSkill
    Made first apply on cl
    Applied on gs
    Made second apply on cl
Listening... received server message of type struct HeroLevelUp
    Made first apply on cl
    Applied on gs
    Adding query 85 - Hero Ufretin got level 5. Total queries count: 1
    Made second apply on cl
Listening... received server message of type struct BattleResultsApplied
    Made first apply on cl
    I'll answer the query 85 giving the choice 0
Sending a request "struct QueryReply". It'll have an ID=135.
Sending to server a pack of type struct QueryReply
    Attempted answering query 85 - Hero Ufretin got level 5. Request id=135. Waiting for results...
We'll wait till request 135 is answered.
    Applied on gs
    Made second apply on cl
Listening... received server message of type struct InfoWindow
    Made first apply on cl
    Applied on gs
    Made second apply on cl
Listening... received server message of type struct PlayerEndsGame
    Made first apply on cl
    Applied on gs
    Cannot get object with id Player 1: I heard that player 5 lost.630
. Object was removed.
        Player 5: I heard that player 5 lost.I lost my hero Gretchin. It's best to forget and move on.


VCAI: Player 5Failed to realize subgoal of type VISIT TILE (2 6 1) (greater goal type was WIN), I will stop. lost. It's me. What a disappointment! :(

        Player 6: I heard that player 5 lost.The error message was: Hero was lost!
    Made second apply on cl
Listening... received server message of type struct SetObjectProperty
    Made first apply on cl

    Striving to goal of type BUILD
        Considering goal BUILD
Making turn thread has been interrupted. We'll end without calling endTurn.
Bonus system node of type class CGMine #detached from# Player Purple
Bonus system node of type class CGMine #attached to# Global effects
    Applied on gs
    Made second apply on cl
Listening... received server message of type struct SetSecSkill
    Made first apply on cl
    Applied on gs
    Made second apply on cl
Listening... received server message of type struct PackageApplied
    Made first apply on cl
    Applied on gs
Removing query 85 - Hero Ufretin got level 5. Total queries count: 0
    Made second apply on cl
Listening... Sending a request "struct PlayerMessage". It'll have an ID=136.
Sending to server a pack of type struct PlayerMessage
    received server message of type struct SystemMessage
    Made first apply on cl
    Applied on gs
System message: You were identified as player 5 while expecting 0
    Made second apply on cl
Listening... received server message of type struct SystemMessage
    Made first apply on cl
    Applied on gs
System message: You are not allowed to perform this action!
    Made second apply on cl
Listening... received server message of type struct PackageApplied
    Made first apply on cl
    Applied on gs
    Made second apply on cl
Listening... Sending a request "struct PlayerMessage". It'll have an ID=137.
Sending to server a pack of type struct PlayerMessage
    received server message of type struct SystemMessage
    Made first apply on cl
    Applied on gs
System message: You were identified as player 5 while expecting 0
    Made second apply on cl
Listening... received server message of type struct SystemMessage
    Made first apply on cl
    Applied on gs
System message: You are not allowed to perform this action!
    Made second apply on cl
Listening... received server message of type struct PackageApplied
    Made first apply on cl
    Applied on gs
    Made second apply on cl
Just open my save and click End Turn; Purple player will attack another player and fail to win; then the game will stop working properly.
I'm running VCMI on Heroes3 ERA II
AI, block, Computer, End, EndTurn, Turn
duplicate of 0001235closed Tow Crushes while ending turn 
? purple player issue.vcgm1 (959,732) 2013-04-01 12:05
https://bugs.vcmi.eu/file_download.php?file_id=1249&type=bug
Issue History
2013-04-01 12:05oskarrozaNew Issue
2013-04-01 12:05oskarrozaStatusnew => assigned
2013-04-01 12:05oskarrozaAssigned To => Tow
2013-04-01 12:05oskarrozaFile Added: purple player issue.vcgm1
2013-04-01 12:07oskarrozaTag Attached: Adventure Map
2013-04-01 12:07oskarrozaTag Attached: AI
2013-04-01 12:07oskarrozaTag Attached: block
2013-04-01 12:07oskarrozaTag Attached: Computer
2013-04-01 12:07oskarrozaTag Attached: End
2013-04-01 12:07oskarrozaTag Attached: EndTurn
2013-04-01 12:07oskarrozaTag Attached: Turn
2013-04-01 13:55IvanRelationship addedduplicate of 0001235
2013-04-01 13:56IvanNote Added: 0003484
2013-04-01 13:56IvanNote Edited: 0003484bug_revision_view_page.php?bugnote_id=3484#r2166
2013-04-02 22:44oskarrozaNote Added: 0003486
2013-04-02 22:57IvanNote Added: 0003487
2013-04-20 11:41TowNote Added: 0003494
2013-04-20 11:41TowStatusassigned => feedback
2016-09-14 03:03SXXAssigned ToTow => SXX
2016-09-14 03:03SXXStatusfeedback => assigned
2016-09-14 03:04SXXNote Added: 0006675
2016-09-14 03:04SXXTag Detached: Adventure Map
2022-03-15 18:41PovelitelNote Added: 0008081
2022-03-15 18:41PovelitelStatusassigned => closed
2022-03-15 18:41PovelitelResolutionopen => unable to reproduce

Notes
(0003484)
Ivan   
2013-04-01 13:56   
According to logs this looks like duplicate of 0001235

(0003486)
oskarroza   
2013-04-02 22:44   
Not quite. In my issue the game still works, it does NOT crash... AI is simply 'thinking' about Purple player and does not know what to do.
(0003487)
Ivan   
2013-04-02 22:57   
Perhaps. But they definitely have something in common.

I just want to make sure that the person who will work on one bug will notice another one as well.
(0003494)
Tow   
2013-04-20 11:41   
VCMI savegame consists of two files: *.vcgm1 and *.vsgm1. Please upload both of them to allow me reproducing issue.
(0006675)
SXX   
2016-09-14 03:04   
There is good chance some problem like that still in game. While running games on autoskip I had really weird issues that possible related to dying AI.
(0008081)
Povelitel   
2022-03-15 18:41   
I will close this ticket because it cannot be reproduced.