Alrik2002
Warlord
And me again.
I didn´t change named python-files, the are the same as the BtS standard. I didn´t change the .dll either but took the 50civ dll of Better BAT AI but before adding other things in CvEventmanager and so on, I hadn´t errors like this.
The error showed up, when the city screen was opened.
line 2378 in CvMainInterface.py (updateSelectionButtons)
line 1233 in CvMainInterface.py (redraw)
line 954 in CvScreensInterface.py (forceScreenRedraw)
Thank you again for your time and help.
I didn´t change named python-files, the are the same as the BtS standard. I didn´t change the .dll either but took the 50civ dll of Better BAT AI but before adding other things in CvEventmanager and so on, I hadn´t errors like this.
The error showed up, when the city screen was opened.
line 2378 in CvMainInterface.py (updateSelectionButtons)
Code:
for i in range(gc.getNumCorporationInfos()):
xCoord = xResolution - 242 + (i * 34)
yCoord = 66
bEnable = True
if (pHeadSelectedCity.isHasCorporation(i)):
if (pHeadSelectedCity.isHeadquartersByType(i)):
szTempBuffer = u"%c" %(gc.getCorporationInfo(i).getHeadquarterChar())
szName = "CorporationHeadquarterDDS" + str(i)
screen.show( szName )
else:
szTempBuffer = u"%c" %(gc.getCorporationInfo(i).getChar())
szBuffer = szBuffer + szTempBuffer
for j in range(YieldTypes.NUM_YIELD_TYPES):
iYield = pHeadSelectedCity.getCorporationYieldByCorporation(j, i)
if (iYield != 0):
if ( iYield > 0 ):
[COLOR="Red"]szTempBuffer = u",%s%d%c" %("+", iYield, gc.getYieldInfo(j).getChar() )[/COLOR]
szBuffer = szBuffer + szTempBuffer
else:
szTempBuffer = u",%s%d%c" %( "", iYield, gc.getYieldInfo(j).getChar() )
szBuffer = szBuffer + szTempBuffer
line 1233 in CvMainInterface.py (redraw)
Code:
# Conscript Button Show
screen.hide( "Conscript" )
#screen.hide( "Liberate" )
screen.hide( "AutomateProduction" )
[COLOR="Red"]screen.hide( "AutomateCitizens" )[/COLOR]
line 954 in CvScreensInterface.py (forceScreenRedraw)
Code:
# Forced redraw
def forceScreenRedraw (argsList):
# allows overides for mods
if (CvScreenUtilsInterface.getScreenUtils().forceScreenRedraw(argsList)):
return
# Main Interface Screen
if ( argsList[0] == MAIN_INTERFACE ):
[COLOR="Red"]mainInterface.redraw()[/COLOR]
elif ( argsList[0] == WORLDBUILDER_SCREEN ):
worldBuilderScreen.redraw()
elif ( argsList[0] == WORLDBUILDER_DIPLOMACY_SCREEN ):
worldBuilderDiplomacyScreen.redraw()
elif ( argsList[0] == TECH_CHOOSER ):
techChooser.updateTechRecords(true)
Thank you again for your time and help.