Code
- 1121 22:11:24952 :: File "ui.py", line 1407, in CallEvent
- 1121 22:11:24952 :: File "ui.py", line 87, in __call__
- 1121 22:11:24952 :: File "ui.py", line 69, in __call__
- 1121 22:11:24953 :: File "uiTarget.py", line 539, in OnPressedInfoButton
- 1121 22:11:24953 :: File "uiTarget.py", line 140, in Open
- 1121 22:11:24953 :: File "uiTarget.py", line 164, in __LoadInformation
- 1121 22:11:24953 :: File "uiTarget.py", line 231, in __LoadInformation_Race
- 1121 22:11:24953 :: ValueError
- 1121 22:11:24953 :: :
- 1121 22:11:24953 :: incomplete format
- 1121 22:11:24953 ::
Code
- def __LoadInformation_Race(self, race):
- dwRaceFlag = nonplayer.GetMonsterRaceFlag(race)
- self.AppendSeperator()
- mainrace = ""
- subrace = ""
- for i in xrange(17):
- curFlag = 1 << i
- if HAS_FLAG(dwRaceFlag, curFlag):
- if self.RACE_FLAG_TO_NAME.has_key(curFlag):
- mainrace += self.RACE_FLAG_TO_NAME[curFlag] + ", "
- elif self.SUB_RACE_FLAG_TO_NAME.has_key(curFlag):
- subrace += self.SUB_RACE_FLAG_TO_NAME[curFlag] + ", "
- if nonplayer.IsMonsterStone(race):
- mainrace += localeInfo.TARGET_INFO_RACE_METIN + ", "
- if mainrace == "":
- mainrace = localeInfo.TARGET_INFO_NO_RACE
- else:
- mainrace = mainrace[:-2]
- if subrace == "":
- subrace = localeInfo.TARGET_INFO_NO_RACE
- else:
- subrace = subrace[:-2]
- self.AppendTextLine(localeInfo.TARGET_INFO_MAINRACE % mainrace)
- self.AppendTextLine(localeInfo.TARGET_INFO_SUBRACE % subrace)
Code
- TARGET_INFO_DAMAGE Damage : %s - %s
- TARGET_INFO_DEFENSE Defence : %s
- TARGET_INFO_EXP Expierence : %s
- TARGET_INFO_MAINRACE Race : %s
- TARGET_INFO_MAX_HP Max. HP : %s
- TARGET_INFO_NO_ITEM_TEXT No Items droppable.
- TARGET_INFO_NO_RACE None
- TARGET_INFO_RACE_METIN Stone
- TARGET_INFO_RACE_ANIMAL Animal
- TARGET_INFO_RACE_DARK Darkness
- TARGET_INFO_RACE_DEVIL Devil
- TARGET_INFO_RACE_EARTH Earth
- TARGET_INFO_RACE_ELEC Lightning
- TARGET_INFO_RACE_FIRE Fire
- TARGET_INFO_RACE_HUMAN Half Human
- TARGET_INFO_RACE_ICE Ice
- TARGET_INFO_RACE_MILGYO Mystic
- TARGET_INFO_RACE_ORC Orcs
- TARGET_INFO_RACE_UNDEAD Undead
- TARGET_INFO_RACE_WIND Wind
- TARGET_INFO_STONE_NAME Ghoststone
- TARGET_INFO_SUBRACE Subspecies : %s
Tabs passen alle verstehe nicht wieso der Fehler dann kommt... Ideen ?
#EDIT Metin2 ließt die letzte Zeile nicht wenn man keine frei lässt danke Lead0b110010100