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

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.

43,181 views 3 replies
Reply #1 Top

Good find. This has to be modded in to crash though, right?

If not, I'll add it to my mod for good measure.

+1 Loading…
Reply #2 Top

Yes, this is due to modding. That is why I posted this in the Modding section instead of Support. I don't think modding crashes should be reported in Support, otherwise Stardock's programmers would be overwhelmed.

Also other than IsImmuneToInvasion0->5, Stardock has added IsImmuneToInvasion6->19 for any forthcoming invasion types. So they can be used for custom types as well.