List of common assertions - We-the-People-civ4col-mod/Mod GitHub Wiki
This is a list of assertions that are common encountered. I am listing these so that anyone running the assert build, in particular with respect to conducting autoplays, can be aware of known issues.
Note that the line numbers roughly line up with a RaR 2.7.1 Beta 2 build.
Assert Failed
File: DLLSources.\CvCityAI.cpp Line: 328 Expression: false Message: AI plot assignment confusion
Assert Failed
File: DLLSources.\CvUnit.cpp Line: 4271 Expression: false Message: Invalid trip
Assert Failed
File: DLLSources.\CvUnit.cpp Line: 10525 Expression: false Message: Unit can not have profession
After enabling superforts for testing purposes Assert Failed (CvUnitAI::AI_anyAttack)
File: DLLSources.\CvUnitAI.cpp Line: 13661 Expression: pCity != NULL Message:
This code: CvCity* pCity = bombardTarget(pLoopPlot); FAssert(pCity != NULL);
Assert Failed
ASSERT WHEN SPANISH COLONIES WAS FIGHTING THE KING File: DLLSources.\CvPlayerAI.cpp Line: 16122 Expression: iTurn <= GC.getHandicapInfo(GC.getGameINLINE().getHandicapType()).getWaveTurns() Message:
Assert Failed
File: DLLSources.\CvUnitAI.cpp Line: 14246 Expression: !atPlot(pBestPlot) Message:
Assert Failed Check the log, it is supposed to end up there
File: DLLSources.\CvSelectionGroupAI.cpp Line: 199 Expression: false Message:
Assert Failed
File: DLLSources.\CvSelectionGroup.cpp Line: 3322 Expression: false Message:
Assert Failed
File: DLLSources.\CvSelectionGroup.cpp Line: 979 Expression: getActivityType() == ACTIVITY_MISSION Message:
Assert Failed
File: DLLSources.\CvPlayerAI.cpp Line: 16139 Expression: iTurn <= GC.getHandicapInfo(GC.getGameINLINE().getHandicapType()).getWaveTurns() Message:
Assert caused by switching swedish cuirassier to missionary Assert Failed
File: DLLSources.\CvArea.cpp Line: 438 Expression: getPower(eIndex) >= 0 Message:
Assert Failed
File: DLLSources.\CvCity.cpp Line: 8823 Expression: faAssert Failed
File: DLLSources.\CvCityAI.cpp Then after ignoring once on the above
Line: 3288 Expression: bSuccess Message: Failed to remove useless citizen
lse Message: Illegal Profession
All these assert triggered during WoI
Assert Failed
File: DLLSources.\CvUnitAI.cpp Line: 14332 Expression: !atPlot(pBestPlot) Message:
Assert Failed
File: DLLSources.\CvSelectionGroup.cpp Line: 3339 Expression: false Message:
Assert Failed
File: DLLSources.\CvPlayerAI.cpp Line: 16161 Expression: iTurn <= GC.getHandicapInfo(GC.getGameINLINE().getHandicapType()).getWaveTurns() Message:
Assert Failed
File: DLLSources.\CvSelectionGroupAI.cpp Line: 199 Expression: false Message:
Assert Failed
File: DLLSources.\CvSelectionGroupAI.cpp Line: 199 Expression: false Message:
Autoplay asserts:
Assert Failed
File: DLLSources.\CvUnit.cpp Line: 9812 Expression: getMoves() >= 0 Message:
Probably the (tail)wind event
Assert Failed
File: DLLSources.\CvPlot.cpp Line: 6077 Expression: m_bHasYield == hasYieldUncached() Message:
CvPlayer.cpp 2488 checkPower(false)
Asserts from events: Cold winter .. causing assert Band of dasdardly horse rustlers
Assert Failed
File: DLLSources.\CvUnitAI.cpp Line: 16921 Expression: !atPlot(pBestPlot) Message:
Called from assaultseamove Apparently, the bestplot was the same plot as the unit was alreay on. Note sure if this should be an assert at all. We could just filter it out later and make it not qualify.
From a recent always was autoplay after the player (controlled by AI) lost a city Assert Failed. Would keep on trigger and ignore was needed.
File: DLLSources.\CvCity.cpp Line: 5052 Expression: (iYield == YIELD_FOOD) || (aiYields[iYield] >= 0) Message:
nightinggale [10:42 PM] I wonder if owner is NONE (-1)
[10:43] it could be interesting to walk through hasYieldUncached with the debugger to figure out why it has yields
----- Friday, October 6th ----- devolution [7:40 AM] I was trying to, but then my set next statement blew up the stack frame. Apparently it does not work when the break is not in the same frame
- With build of commit 801c47d
- When ending the turn
- see https://github.com/We-the-People-civ4col-mod/Mod/issues/179
Assert Failed
File: DLLSources.\CvUnit.cpp Line: 12148 Expression: iValue >= 0 Message: promotion value going negative