Jump to content
×
×
  • Create New...
  • 0

Bonuspage


Daymortel

Question

Salut

 

Version des files : 2016

Domaine (Base de données, Core, etc.) : Client

Votre niveau (débutant, intermédiaire, avancé) : Intermédiaire

 

Description du problème : J'essaye d'implanter le bonuspage et la page n’apparaît pas ... Comment faire ? Pouvez vous me dire comment faire pour la faire apparaître en appuyant sur U SVP ?

Comment reproduire le problème :

Recherches et tests effectué :

Résultat des recherches et tests :

 

Message d'erreur, capture d'écran :

 

En postant ma demande d'aide, j'affirme avoir lu et accepté le règlement des demandes d'aides.

Link to comment
  • Answers 15
  • Created
  • Last Reply

Top Posters For This Question

15 answers to this question

Recommended Posts

  • 0

Salut,

 

Est - ce que tu peux envoyer l'erreur dans ton syserr client ?

 

Vas dans ton Game.py (root) et dis moi en recherchant :

 

onPressKeyDict[app.DIK_F4]	= lambda : self.__PressQuickSlot(7)

 

si tu as bien déclarer la ligne pour ouvrir ta page de bonus

 

Parce que là c'est bien beau mais sans rien avoir sous les yeux c'est difficile.

 

Litchy

Link to comment
  • 0

J'ai réussi à le faire fonctionner, la page apparaît bien quand j'appuie sur U ... Mais le seul problème, c'est que la page est vierge, il n'y a rien dessus ... Comment je dois faire pour que la liste des bonus apparaisse quand j'ouvre le bonuspage ?

Link to comment
  • 0

Je n'ai suivi aucun tutoriel, et pour l'erreur, la voici : 

Mon syserr

0318 13:10:51571 :: AttributeError

0318 13:10:51571 :: :

0318 13:10:51571 :: 'Button' object has no attribute 'GetText'

0318 13:10:51571 ::

 

En espérant que quelqu'un puisse m'aider ...

Link to comment
  • 0

Mon syserr

0318 12:52:16850 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/etc/buff/buff_item6.mse) Error

0318 12:52:16850 :: CInstanceBase::RegisterEffect(eEftType=283, c_szEftAttachBone=, c_szEftName=d:/ymir work/effect/etc/buff/buff_item6.mse, isCache=1) - Error

0318 12:52:16850 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/etc/buff/buff_item7.mse) Error

0318 12:52:16850 :: CInstanceBase::RegisterEffect(eEftType=284, c_szEftAttachBone=, c_szEftName=d:/ymir work/effect/etc/buff/buff_item7.mse, isCache=1) - Error

0318 12:52:16850 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/etc/buff/buff_item7.mse) Error

0318 12:52:16850 :: CInstanceBase::RegisterEffect(eEftType=285, c_szEftAttachBone=, c_szEftName=d:/ymir work/effect/etc/buff/buff_item7.mse, isCache=1) - Error

0318 12:52:16850 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/etc/buff/buff_item7.mse) Error

0318 12:52:16850 :: CInstanceBase::RegisterEffect(eEftType=286, c_szEftAttachBone=, c_szEftName=d:/ymir work/effect/etc/buff/buff_item7.mse, isCache=1) - Error

0318 12:52:16850 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/etc/buff/buff_item7.mse) Error

0318 12:52:16850 :: CInstanceBase::RegisterEffect(eEftType=287, c_szEftAttachBone=, c_szEftName=d:/ymir work/effect/etc/buff/buff_item7.mse, isCache=1) - Error

0318 12:52:25779 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/warrior/effect/gihyeol_spark.mse) Error

0318 12:52:25779 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/warrior/effect/gihyeol_sword.mse) Error

0318 12:52:25835 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/warrior/effect/gihyeol_2_spark.mse) Error

0318 12:52:25835 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/warrior/effect/gihyeol_2_sword.mse) Error

0318 12:52:25835 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/warrior/effect/gihyeol_2.mse) Error

0318 12:52:25844 :: CRaceData::RegisterMotionData - LoadMotionData(c_szFileName=d:/ymir work/pc/warrior/skill/noegeom_2.msa) ERROR

0318 12:52:25855 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/warrior/effect/gihyeol_3_spark.mse) Error

0318 12:52:25855 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/warrior/effect/gihyeol_3_sword.mse) Error

0318 12:52:25855 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/warrior/effect/gihyeol_3.mse) Error

0318 12:52:25865 :: CRaceData::RegisterMotionData - LoadMotionData(c_szFileName=d:/ymir work/pc/warrior/skill/noegeom_3.msa) ERROR

0318 12:52:25876 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/warrior/effect/gihyeol_4_spark.mse) Error

0318 12:52:25876 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/warrior/effect/gihyeol_4_sword.mse) Error

0318 12:52:25876 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/warrior/effect/gihyeol_4.mse) Error

0318 12:52:25887 :: CRaceData::RegisterMotionData - LoadMotionData(c_szFileName=d:/ymir work/pc/warrior/skill/noegeom_4.msa) ERROR

0318 12:52:26217 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/warrior/effect/gihyeol_spark.mse) Error

0318 12:52:26217 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/warrior/effect/gihyeol_sword.mse) Error

0318 12:52:26263 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/warrior/effect/gihyeol_2_spark.mse) Error

0318 12:52:26263 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/warrior/effect/gihyeol_2_sword.mse) Error

0318 12:52:26263 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/warrior/effect/gihyeol_2.mse) Error

0318 12:52:26264 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/warrior/effect/noegeomdorae_2.mse) Error

0318 12:52:26264 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/warrior/effect/noegeomdorae_loop_2.mse) Error

0318 12:52:26267 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/warrior/effect/gihyeol_3_spark.mse) Error

0318 12:52:26267 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/warrior/effect/gihyeol_3_sword.mse) Error

0318 12:52:26267 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/warrior/effect/gihyeol_3.mse) Error

0318 12:52:26268 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/warrior/effect/noegeomdorae_3.mse) Error

0318 12:52:26268 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/warrior/effect/noegeomdorae_loop_3.mse) Error

0318 12:52:26270 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/warrior/effect/gihyeol_4_spark.mse) Error

0318 12:52:26270 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/warrior/effect/gihyeol_4_sword.mse) Error

0318 12:52:26270 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/warrior/effect/gihyeol_4.mse) Error

0318 12:52:26272 :: CEffectManager::RegisterEffect - LoadScript(d:/metin2data/season1/effect/pc/warrior/effect/noegeomdorae_4.mse) Error

0318 12:52:26272 :: CEffectManager::RegisterEffect - LoadScript(d:/metin2data/season1/effect/pc/warrior/effect/noegeomdorae_loop_4.mse) Error

0318 12:52:26586 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/assassin/effect/seomjeom_start.mse) Error

0318 12:52:26587 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/assassin/effect/seomjeom_end.mse) Error

0318 12:52:26587 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/assassin/effect/seomjeom_blow.mse) Error

0318 12:52:26587 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/assassin/effect/seomjeom_hand.mse) Error

0318 12:52:26629 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/assassin/effect/seomjeom_start_2.mse) Error

0318 12:52:26629 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/assassin/effect/seomjeom_end_2.mse) Error

0318 12:52:26629 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/assassin/effect/seomjeom_blow_2.mse) Error

0318 12:52:26629 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/assassin/effect/seomjeom_hand_2.mse) Error

0318 12:52:26654 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/assassin/effect/seomjeom_start_3.mse) Error

0318 12:52:26654 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/assassin/effect/seomjeom_end_3.mse) Error

0318 12:52:26654 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/assassin/effect/seomjeom_blow_3.mse) Error

0318 12:52:26654 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/assassin/effect/seomjeom_hand_3.mse) Error

0318 12:52:26681 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/assassin/effect/seomjeom_start_4.mse) Error

0318 12:52:26681 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/assassin/effect/seomjeom_end_4.mse) Error

0318 12:52:26681 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/assassin/effect/seomjeom_blow_4.mse) Error

0318 12:52:26681 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/assassin/effect/seomjeom_hand_4.mse) Error

0318 12:52:26694 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/assassin/effect/taeyang_blow_4.mse) Error

0318 12:52:27052 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/assassin/effect/seomjeom_start.mse) Error

0318 12:52:27052 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/assassin/effect/seomjeom_end.mse) Error

0318 12:52:27052 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/assassin/effect/seomjeom_blow.mse) Error

0318 12:52:27052 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/assassin/effect/seomjeom_hand.mse) Error

0318 12:52:27080 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/assassin/effect/seomjeom_start_2.mse) Error

0318 12:52:27080 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/assassin/effect/seomjeom_end_2.mse) Error

0318 12:52:27080 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/assassin/effect/seomjeom_blow_2.mse) Error

0318 12:52:27080 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/assassin/effect/seomjeom_hand_2.mse) Error

0318 12:52:27083 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/assassin/effect/seomjeom_start_3.mse) Error

0318 12:52:27083 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/assassin/effect/seomjeom_end_3.mse) Error

0318 12:52:27083 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/assassin/effect/seomjeom_blow_3.mse) Error

0318 12:52:27083 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/assassin/effect/seomjeom_hand_3.mse) Error

0318 12:52:27086 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/assassin/effect/seomjeom_start_4.mse) Error

0318 12:52:27086 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/assassin/effect/seomjeom_end_4.mse) Error

0318 12:52:27086 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/assassin/effect/seomjeom_blow_4.mse) Error

0318 12:52:27086 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/assassin/effect/seomjeom_hand_4.mse) Error

0318 12:52:27087 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/pc/assassin/effect/taeyang_blow_4.mse) Error

0318 12:52:29890 :: CRaceManager::RegisterRacePath : RACE[60003] LOAD MSMFILE[d:/ymir work/npc2/scholar_beige_M/scholar_beige_M.msm] ERROR. Will Find Another Path.

0318 12:55:06196 :: Damage is equal or below 0.

0318 12:55:06511 :: Damage is equal or below 0.

0318 12:55:08725 :: Damage is equal or below 0.

0318 12:55:10735 :: Damage is equal or below 0.

0318 12:55:10751 :: Damage is equal or below 0.

0318 12:57:33518 :: CMapOutdoor::Load - LoadMonsterAreaInfo ERROR

0318 13:09:26505 :: CRaceManager::GetRaceDataPointer: cannot load data by dwRaceIndex 8

0318 13:09:26505 :: CPythonCharacterManager::CreateInstance VID[6140] Race[8]

0318 13:09:30217 :: CRaceManager::GetRaceDataPointer: cannot load data by dwRaceIndex 14

0318 13:09:30217 :: CPythonCharacterManager::CreateInstance VID[6140] Race[14]

0318 13:09:34227 :: CRaceManager::GetRaceDataPointer: cannot load data by dwRaceIndex 24

0318 13:09:34227 :: CPythonCharacterManager::CreateInstance VID[6140] Race[24]

0318 13:10:48146 :: Traceback (most recent call last):

 

0318 13:10:48146 :: File "game.py", line 1253, in OnKeyDown

 

0318 13:10:48146 :: File "game.py", line 362, in

 

0318 13:10:48147 :: File "game.py", line 2486, in __BonusPage

 

0318 13:10:48147 :: File "uibonuspage.py", line 63, in __init__

 

0318 13:10:48147 :: File "uibonuspage.py", line 98, in LoadUI

 

0318 13:10:48147 :: AttributeError

0318 13:10:48147 :: :

0318 13:10:48147 :: 'Button' object has no attribute 'GetText'

0318 13:10:48147 ::

 

0318 13:10:48148 :: Traceback (most recent call last):

 

0318 13:10:48148 :: File "game.py", line 1253, in OnKeyDown

 

0318 13:10:48148 :: File "game.py", line 362, in

 

0318 13:10:48148 :: File "game.py", line 2486, in __BonusPage

 

0318 13:10:48149 :: File "uibonuspage.py", line 63, in __init__

 

0318 13:10:48149 :: File "uibonuspage.py", line 98, in LoadUI

 

0318 13:10:48149 :: AttributeError

0318 13:10:48149 :: :

0318 13:10:48149 :: 'Button' object has no attribute 'GetText'

0318 13:10:48149 ::

 

0318 13:10:51568 :: Traceback (most recent call last):

 

0318 13:10:51568 :: File "game.py", line 1253, in OnKeyDown

 

0318 13:10:51568 :: File "game.py", line 362, in

 

0318 13:10:51568 :: File "game.py", line 2486, in __BonusPage

 

0318 13:10:51569 :: File "uibonuspage.py", line 63, in __init__

 

0318 13:10:51569 :: File "uibonuspage.py", line 98, in LoadUI

 

0318 13:10:51569 :: AttributeError

0318 13:10:51569 :: :

0318 13:10:51569 :: 'Button' object has no attribute 'GetText'

0318 13:10:51569 ::

 

0318 13:10:51570 :: Traceback (most recent call last):

 

0318 13:10:51570 :: File "game.py", line 1253, in OnKeyDown

 

0318 13:10:51570 :: File "game.py", line 362, in

 

0318 13:10:51570 :: File "game.py", line 2486, in __BonusPage

 

0318 13:10:51570 :: File "uibonuspage.py", line 63, in __init__

 

0318 13:10:51570 :: File "uibonuspage.py", line 98, in LoadUI

 

0318 13:10:51571 :: AttributeError

0318 13:10:51571 :: :

0318 13:10:51571 :: 'Button' object has no attribute 'GetText'

0318 13:10:51571 ::

 

 

 

Link to comment
  • 0

ChangeBonusDict.GetText()

 

Tu fais appel à une fonction définis dans le ui.py .

 

Donc le soucis pourrait provenir du fait que celle-ci ne soit pas présente.

 

Pour confirmer cette hypothèse, cherche dans ton ui.py:

 

 

def SetOverVisual(self, filename): ## Dans la classe button ( logique ) 

 

 

Et définis la fonction GetText comme ceci:

    def GetText(self):
        if not self.ButtonText:
            return ""

        return self.ButtonText.GetText()

 

 

Link to comment
  • 0

J'ai cherché et ce que vous avez dit, Gin, n'y est pas ^^

ligne 63

self.LoadUI()

 

ligne 362

onPressKeyDict[app.DIK_U] = lambda : self.__BonusPage()

 

ligne 1253

self.onPressKeyDict[key]()

 

ligne 2486

self.wndBonus = uibonuspage.BonusBoardDialog()

 

Voilà, j'espère que ça va vous aider ^^

Link to comment
  • 0

Cherchez :

 

def SetOverVisual

il ce peux que celui ci soit différent.

 

Et ajoutez votre définition:

    def GetText(self):
       if not self.ButtonText:
           return ""

       return self.ButtonText.GetText()

 

Je tient à préciser que Funky-Emu ne prend pas en compte les tabulations.

 

Cordialement, History.

Link to comment
Guest
This topic is now closed to further replies.


Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.