General Tso
Panzer General
This code used to cause the game to start with inactive civs being disabled and not selected as random civs. I'm not absolutely sure when it stopped working but it probably happened when BNW came out. Can anybody tell me what the problem is?
It cycles thru a list I created previously that has a boolean isActive for each civType and sets the values of certain database fields depending on the value of isActive (or at least it used to).
Are those fields now cached where previously they where not? The whole database thing confuses me. It seems like it's overly complicated and to limited in what it can do.
It cycles thru a list I created previously that has a boolean isActive for each civType and sets the values of certain database fields depending on the value of isActive (or at least it used to).
Code:
for civType, isActive in pairs(self.activeCivs) do
for result in DB.Query("UPDATE Civilizations SET Playable = ?, AIPlayable = ? WHERE Civilizations.Type = ?", isActive and 1 or 0, isActive and 1 or 0, civType) do
end
end
Are those fields now cached where previously they where not? The whole database thing confuses me. It seems like it's overly complicated and to limited in what it can do.