A note about GameInfoTypes in BE

Vicevirtuoso

The Modetta Man
Joined
May 14, 2013
Messages
775
Location
The Wreckage, Brother
For those of you who are moving from Civilization 5 Lua modding to CivBE Lua modding, it appears that GameInfoTypes does not work 100% of the time in BE. It works without issue for items in the base game, but not for mods -- it will return nil. For the time being, instead of:

Code:
GameInfoTypes.CIVILIZATION_TESTCIV

you would need to use:

Code:
GameInfo.Civilizations["CIVILIZATION_TESTCIV"].ID

Hopefully this will save people the hours of testing I did until I found out that this was the issue, and will keep Civs like Colonialist Legacies' Vesperia from being delayed. :)
 
Back
Top Bottom