Serp
King
- Joined
- Apr 1, 2015
- Messages
- 661
I'm currently experimenting with hellblazers UI Notification https://steamcommunity.com/sharedfiles/filedetails/?id=1304210829 mod and trying to fix some problems.
According to lua.log the following is nil:
GameInfo.CivilizationLeaders["LEADER_JAYAVARMAN"]
Why? Was sth about this changed?
The code is:
local leaderOne:string = PlayerConfigurations[PlayerID]:GetLeaderTypeName();
local civTypeO:string = GameInfo.CivilizationLeaders[leaderOne].CivilizationType;
with leaderOne being LEADER_JAYAVARMAN and the second line results in "attempt to index a nil value". Printing GameInfo.CivilizationLeaders[leaderOne] shows that it is indeed nil.
According to lua.log the following is nil:
GameInfo.CivilizationLeaders["LEADER_JAYAVARMAN"]
Why? Was sth about this changed?
The code is:
local leaderOne:string = PlayerConfigurations[PlayerID]:GetLeaderTypeName();
local civTypeO:string = GameInfo.CivilizationLeaders[leaderOne].CivilizationType;
with leaderOne being LEADER_JAYAVARMAN and the second line results in "attempt to index a nil value". Printing GameInfo.CivilizationLeaders[leaderOne] shows that it is indeed nil.