if szWEnemyName == "":
self.SitRepGrid.addIcon(iRow, self.Col_WEnemy,
ArtFileMgr.getInterfaceArtInfo("INTERFACE_BUTTONS_CANCEL").getPath(), 35,
WidgetTypes.WIDGET_LEADERHEAD, -1)
else:
for iLoopEnemy in range(gc.getMAX_PLAYERS()):
620: if gc.getPlayer(iLoopEnemy).getName() == szWEnemyName:
iWEnemy = iLoopEnemy
break
That line is the same as mine. Which mod are you trying to merge? If you want to post your mod and a save game which causes the errors - I can d/l both and take a look.I did not change there anything. I only used the code from the last page instead of the original code (no change at line 620, but at 797). it was still my mod, so no save game.
my line 620 is also: "if gc.getPlayer(iLoopEnemy).getName() == szWEnemyName:"
loop over all of the AI's cities (skipping cities that the player cannot see)
That line is the same as mine. Which mod are you trying to merge? If you want to post your mod and a save game which causes the errors - I can d/l both and take a look.
# BUG - Great Person Bar - start
if (inputClass.getNotifyCode() == NotifyCode.NOTIFY_CLICKED and inputClass.getFunctionName().startswith("GreatPersonBar")):
# Zoom to next GP city
iCity = inputClass.getData1()
if (iCity == -1):
pCity, _ = GPUtil.findNextCity()
else:
pCity = gc.getActivePlayer().getCity(iCity)
here: CyInterface().selectCity(pCity, False)
return 1
# BUG - Great Person Bar - end
Also is there anyway to turn of the CRTL_ALT_O nag i see every turn?
I get python exceptions when selecting air units (Airships at least).
Something about airCurrCombatStr being called with different C++ signature (in CvMainInterface.py).
This has to do with the unit info pane... I found the call, in line 1835
fCurrStrength = float(pUnit.airCurrCombatStr()*0.01)
if you change that to
fCurrStrength = float(pUnit.airBaseCombatStr())*float(1.0-pUnit.getDamage()*0.01)
and also replace airMaxCombatStr by airBaseCombatStr in the next line (and remove the *0.01), it should work.
Best Regards,
Ace
I have noticed a significant delay when selecting units, not only late game but early BC's, can take anything from .5 sec to 1 sec in later AD's just to select a unit.
Also is there anyway to turn of the CRTL_ALT_O nag i see every turn?
i wasn't getting the info pane for air units. your tip got the info window for air units to show up for me. using 3.0_1046.
here is a new bug, maybe caused by CIV4lerts:
%s1 can hurry %s2 for %d3%s4 with %d5%s6 overflow
on the screen: Kyoto can hurry The Oracle for 3 ->> ? <-- with 1 Production overflow
3.0.........
<TEXT>
<Tag>TXT_KEY_CIV4LERTS_ON_CITY_CAN_HURRY_POP</Tag>
<English>[COLOR_YIELD_FOOD]%s1 can hurry %s2 for %d3[ICON_ANGRYPOP] with %d4[ICON_PRODUCTION] overflow and +1[ICON_UNHAPPY] for %d5 turns.[COLOR_REVERT]</English>
<French>[COLOR_YIELD_FOOD]%s1 peut précipiter %s2 pour %d3[ICON_ANGRYPOP] avec %d4[ICON_PRODUCTION] de débordement et +1[ICON_UNHAPPY] por %d5 tour.[COLOR_REVERT]</French>
<German>[COLOR_YIELD_FOOD]%s1 kann das Bauprojekt "%s2" unter Einsatz von %d3[ICON_ANGRYPOP] beschleunigen (Überschuss: %d4[ICON_PRODUCTION]), wobei für %d5 Runden +1[ICON_UNHAPPY] in der Stadt verursacht wird.[COLOR_REVERT]</German>
<Italian>[COLOR_YIELD_FOOD]%s1 può accelerare %s2 per %d3[ICON_ANGRYPOP] con un surplus di %d4[ICON_PRODUCTION] e 1[ICON_UNHAPPY] per %d5 turni.[COLOR_REVERT]</Italian>
<Spanish>[COLOR_YIELD_FOOD]%s1 puede acelerar %s2 para %d3[ICON_ANGRYPOP] con %d4[ICON_PRODUCTION] de desbordamiento y +1[ICON_UNHAPPY] para %d5 turnos.[COLOR_REVERT]</Spanish>
</TEXT>
<TEXT>
<Tag>TXT_KEY_CIV4LERTS_ON_CITY_CAN_HURRY_GOLD</Tag>
<English>[COLOR_YIELD_FOOD]%s1 can hurry %s2 for %d3[ICON_GOLD].[COLOR_REVERT]</English>
<French>[COLOR_YIELD_FOOD]%s1 peut précipiter %s2 pour %d3[ICON_GOLD].[COLOR_REVERT]</French>
<German>[COLOR_YIELD_FOOD]%s1 kann das Bauprojekt "%s2" unter Einsatz von %d3[ICON_GOLD] beschleunigen.[COLOR_REVERT]</German>
<Italian>[COLOR_YIELD_FOOD]%s1 può essere accelerare %s2 per %d3[ICON_GOLD].[COLOR_REVERT]</Italian>
<Spanish>[COLOR_YIELD_FOOD]%s1 puede acelerar %s2 para %d3[ICON_GOLD].[COLOR_REVERT]</Spanish>
</TEXT>
</Civ4GameText>