I've added a couple extra Leaderheads, but I was wondering how I make them appear in-game at a certain date?
Also I thought I added the civilopedia entry for one of the LH's into CIV4GameText_MEM_Civilizations.xml, but nothing appears in the in-game civilopedia...
File "DynamicCivs", line 150, in setup
KeyError: 11
ERR: Python function onEvent failed, module CvEventInterface
//doHolyCity(); // edead: disabled
def setup(self):
for iPlayer in range(con.iNumPlayers):
self.setCivDesc(iPlayer, self.defaultNames[iPlayer])
What do you mean by "strange"?I'm guessing I've done something wrong in my dynamicCivs.py file...
PS. Why does the file look so strange...
if iGameTurn == getTurnForYear(1100):
gc.getPlayer(iByzantium).setLeader(gc.getInfoTypeForString("LEADER_ALEXIOS")
The check itself is okay, but it needs to be inside the checkTurn() method, right now it's not part of any method. Make sure you indent it one tab further there.
if iGameTurn == getTurnForYear(1100):
gc.getPlayer(iByzantium).setLeader(gc.getInfoTypeForString("LEADER_ALEXIOS")
strange. I changed the name of my constant from iHan to iHanchina and it got rid of the exception. is there a rule about short words as constants?
edit: everything but the province names, it still shows the SoI ones
Thanks for your help Leoreth, but I thought you were a tad vague on what you just said, you mean I should write out something like this:
PHP:if iGameTurn == getTurnForYear(1100): gc.getPlayer(iByzantium).setLeader(gc.getInfoTypeForString("LEADER_ALEXIOS")
Does this look better to you?
I'm having a strange problem using some regular BtS unit art in my SoI mod. I'm able to use almost all of the unit art defines I wanted to but the following crash the mod during xml checking, but don't generate any error messages: ART_DEF_UNIT_WORKER, ART_DEFINE_UNIT_GALLEY and ART_DEFINE_UNIT_WARLORD_ANCIENT. They crash regular SoI if I try to use them there as well. Any idea what might cause this?
my 11 religions are all functioning properly now as far as I can tell but I'm a bit lost as to how to get them all onto the religion screen and the city screen. can you offer any guidance?