[BTS] when i click beginning, game was crash

Darkator

Prince
Joined
Sep 18, 2020
Messages
329
Location
Poland,EU
in civilizopedia when i click beginning game crashes and was see this information:
file: CvPlayer.cpp
line:5134
GC.getCivilizationInfo(getCivilizationType()).getCivilizationUnits(eUnitClass) == eUnit

I am asking where should I look for an error (which file) or what error (is it unit infos or unit classes fail)
 
It's an assert failure, not a crash. Some are mostly harmless and some tells the game is about to crash. This one is meek and shouldn't crash the game.

What it says is that eUnit (presumably the unit you clicked on) is not the until the civilization will get when getting a unit for that unit class. This means the issue is in civilizationinfos where it sets which unit the civ has for each unitclass (specifying civ specific units) or in unitinfos. Sadly it doesn't say which unit or which civilization.
 
I don't know if I understand you correctly, the problem is in unique units, which are in the civilizationinfos.xml file. But I don't have a lot of replacement units.
I send my xml file
 

Attachments

@Nightinggale If I understand correctly, the bug is somewhere in similar code
<Unit>
<UnitClassType>UNITCLASS_MEDIUM2_TANK</UnitClassType>
<UnitType>UNIT_T34_TANK</UnitType>
</Unit>
 
problem5.png
 
Have you been editing the CPP files? Because this to me looks like you are using a debug DLL.
 
Back
Top Bottom