Civ Select Screen "Crash"

Civitar

Adventurer
Joined
Mar 23, 2014
Messages
1,507
Location
Switzerland
So I'm running a little total conversion mod, and a weird thing is happening. Whenever I try to select the Kizu civilization, the Lua.log displays this:
Code:
[97947.546] Runtime Error: Assets\UI\FrontEnd\GameSetup\GameSetupScreen.lua:479: attempt to index a nil value
stack traceback:
	Assets\UI\FrontEnd\GameSetup\GameSetupScreen.lua:479: in function 'SetSelectedCiv'
	Assets\UI\FrontEnd\GameSetup\GameSetupScreen.lua:257: in function 'UpdateDisplay'
	Assets\UI\FrontEnd\GameSetup\GameSetupScreen.lua:567: in function <Assets\UI\FrontEnd\GameSetup\GameSetupScreen.lua:564>
...and the menu disappears so I am left looking at the background image until I use Task Manager to shut down Civ5. This does not happen for any other civ in the mod, and according to Nomad or What it doesn't happen even for Kizu when he tries it - his Lua.log is error-free.
Additionally, if I try to select Kizu through the Advanced Setup Screen, this happens:
Code:
[97975.984] Runtime Error: Assets\UI\FrontEnd\GameSetup\AdvancedSetup.lua:307: attempt to index a nil value
stack traceback:
	Assets\UI\FrontEnd\GameSetup\AdvancedSetup.lua:307: in function 'RefreshPlayerList'
	Assets\UI\FrontEnd\GameSetup\AdvancedSetup.lua:457: in function '?'
	Assets\UI\FrontEnd\GameSetup\AdvancedSetup.lua:1245: in function 'ForEachScreenOption'
	Assets\UI\FrontEnd\GameSetup\AdvancedSetup.lua:1255: in function 'PerformPartialSync'
	Assets\UI\FrontEnd\GameSetup\AdvancedSetup.lua:445: in function <Assets\UI\FrontEnd\GameSetup\AdvancedSetup.lua:441>
...and the little dropdowns remain unchanged, set to the Unknown Civilization. Again, this doesn't happen for any other civilization.

Does anybody know why this might be?

EDIT: Bane_ says Kizu works for him, but Ismalia does not, while throwing an error from line 344 of AdvancedSetup.lua. Nomad says Kizu, the Celestials, and Ismalia work for him.
 

Attachments

Are you playing non-TC modded games between? If so, you'll need to delete the Civ5SavedGameDatabase.db cache file (or change
Code:
; Store advanced settings in Cache folder
PersistAdvancedSettings = 1
to 0 in the config.ini file)

The game gets mightily confused if it can't find the last played civ.
 
Do you have at least 10 major civs registered within the database by the time you get to the Set-Up menu? I forget who ran into this recently in their TC mod. But I also thought in that case the game was crashing before it ever got to the Set-Up menu.

I'm pretty sure it was '10' that William figured out was the minimum number to keep the game happy
 
Line 479 of GameSetupScreen.lua and lines 307 and 344 of AdvancedSetup.lua are identical (except for identation); they're all:
Code:
local leader = GameInfo.Leaders[GameInfo.Civilization_Leaders( "CivilizationType = '" .. civ.Type .. "'" )().LeaderheadType];
Which implies that if you're getting "attempt to index a nil value" from those lines then something's wrong with the Leaders and/or Civilization_Leaders tables.
 
So, Civitar, any news on this matter?
It is quite weird, honestly, specially the part where it works differently with different people.

I got a funny error where one of my civs was un-selectable, then, when choosing a random civ to play, I got that civ but got the weird error when you have an incomplete civ (black with red dot DoM, weird names in the screen) and then, the next time I launched the game, all Civs worked.
Seriously, I need to pray harder, being a Howardian is starting to be a bit too spooky.

...and the menu disappears so I am left looking at the background image until I use Task Manager to shut down Civ5.
Oh, and about this. Just hit ESC to come back a menu.
 
No news, just going to avoid playing as Kizu and let you or Nomad test that civ.

Seriously, I need to pray harder, being a Howardian is starting to be a bit too spooky.

That's the problem there. Weren't you part of the Cult of SQLism before? The fickle gods of the Civ5 parsers frown on apostasy...

Oh, and about this. Just hit ESC to come back a menu.

Thanks for the tip! I wonder if that would actually let me play as Kizu, or the Lua error would just set me back to nil civ selected.
 
Back
Top Bottom