Patchnote window - KeyError 'patchnotes_button'

Înainte de a posta o problemă, caută în acest forum și poate găsești rezolvare.
Închis
Avatar utilizator
Sathyr
Veteran

Veteran
Mesaje: 1187
Membru din: 14 Feb 2018, 18:23
Regat: Jinno
Aprecieri: 28  
Mulţumiri: 627  
Discord: Copiază ID
 Contact:
Medalii

*Problemă/Întrebare: Patchnote window - KeyError 'patchnotes_button'
Tipologie server: -
*Resursă folosită: -
*ServerFiles utilizat: -
*Syserr:
1020 10:08:09620 :: Traceback (most recent call last):

1020 10:08:09620 ::   File "networkModule.py", line 330, in SetGamePhase

1020 10:08:09621 ::   File "game.py", line 97, in __init__

1020 10:08:09621 ::   File "game.py", line 124, in __LoadingGamePhase

1020 10:08:09621 ::   File "interfaceModule.py", line 634, in MakeInterface

1020 10:08:09621 ::   File "interfaceModule.py", line 466, in __MakeDialogs

1020 10:08:09621 ::   File "uiSystem.py", line 39, in LoadDialog

1020 10:08:09621 ::   File "uiSystem.py", line 58, in __LoadSystemMenu_Default

1020 10:08:09621 ::   File "ui.py", line 7163, in GetChild

1020 10:08:09621 :: KeyError
1020 10:08:09621 :: : 
1020 10:08:09621 :: 'patchnotes_button'
1020 10:08:09621 :: 
Poză: -
*Detalii suplimentare: Am folosit deja tot ce am găsit și în acest topic: sursa/ingame-patchnote-window-t103713.html
Asta e ceea ce am pus în systemdialog.py:
				{
					"name" : "patchnotes_button",
					"type" : "button",

					"x" : 10,
					"y" : 247,

					"text_color" : 0xffF8BF24,
					"text" : "Patches",
					
					"default_image" : ROOT + "XLarge_Button_01.sub",
					"over_image" : ROOT + "XLarge_Button_02.sub",
					"down_image" : ROOT + "XLarge_Button_03.sub",
				},
Partea cu eroarea din uisystem.py:
		if app.ENABLE_MOVE_CHANNEL:
			self.GetChild("movechannel_button").SAFE_SetEvent(self.__ClickMoveChannelButton)
		self.GetChild("system_option_button").SAFE_SetEvent(self.__ClickSystemOptionButton)
		self.GetChild("game_option_button").SAFE_SetEvent(self.__ClickGameOptionButton)
		self.GetChild("change_button").SAFE_SetEvent(self.__ClickChangeCharacterButton)
		self.GetChild("logout_button").SAFE_SetEvent(self.__ClickLogOutButton)
		self.GetChild("exit_button").SAFE_SetEvent(self.__ClickExitButton)
		self.GetChild("help_button").SAFE_SetEvent(self.__ClickHelpButton)
		self.GetChild("cancel_button").SAFE_SetEvent(self.Close)
		#if constInfo.IN_GAME_SHOP_ENABLE:
			#self.GetChild("mall_button").SAFE_SetEvent(self.__ClickInGameShopButton)
		if app.ENABLE_PATCHNOTE_WINDOW:
			self.wndPatchnotes = uiPatchnotes.PatchNoteWindow()
			self.GetChild("patchnotes_button").SAFE_SetEvent(self.__ClickPatchnotesButton)
Imagine -> official.sathyr
Afișează semnătura
Avatar utilizator
Sathyr
Veteran

Veteran
Mesaje: 1187
Membru din: 14 Feb 2018, 18:23
Regat: Jinno
Aprecieri: 28  
Mulţumiri: 627  
Discord: Copiază ID
 Contact:
Medalii

Am rezolvat, la mine citește fișierul systemdialog.py din locale, iar eu pusesem în root. T/C!
Imagine -> official.sathyr
Afișează semnătura
Închis
Răspunsuri
4
Vizualizări
210
Răspunsuri
0
Vizualizări
170
Răspunsuri
2
Vizualizări
69

Înapoi la “Probleme rezolvate”

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 66 vizitatori