News

[Bug/Crash] Improvement that has a stat without a tooltip crashes the game.

Posted on Tuesday, May 19, 2015

There is an interesting stat called IsImmuneToInvasion, there are 6 types

  • IsImmuneToInvasion0 - Immune to Conventional Warfare
  • IsImmuneToInvasion1->5 - All other invasion types

IsImmuneToInvasion0 is not defined within StatTypeDisplayDefs.xml and also does not have tooltip text within StatText.xml

For example, if added to an improvement. Once you hover over that improvement either on the tile or build list, game begins to generate a crash dump and crashes on the next click.

When I added IsImmuneToInvasion0 to StatTypeDisplayDefs.xml, it nolonger crashed.