Management Karbust 4888 Posted May 19, 2020 Management Share Posted May 19, 2020 Sup bois I implemented an ingame support system, it's working fine, but I noticed this error on syserr.txt 0519 15:52:25624 :: "'QuestDialog' object has no attribute 'hWnd'" 0519 15:52:25625 :: in 0519 15:52:25625 :: <bound method QuestDialog.__del__ of <uiQuest.QuestDialog object at 0x070911F0>> 0519 15:52:25625 :: ignored 0519 15:52:25626 :: Traceback (most recent call last): 0519 15:52:25626 :: File "System/game.py", line 716, in OpenQuestWindow 0519 15:52:25627 :: 0519 15:52:25627 :: self.interface.OpenQuestWindow(skin, idx) 0519 15:52:25628 :: File "System/interfaceModule.py", line 698, in OpenQuestWindow 0519 15:52:25628 :: 0519 15:52:25629 :: q.SetWindowName("QuestWindow" + str(idx)) 0519 15:52:25629 :: File "System/ui.py", line 145, in SetWindowName 0519 15:52:25630 :: 0519 15:52:25630 :: wndMgr.SetName(self.hWnd, Name) 0519 15:52:25630 :: AttributeError 0519 15:52:25630 :: : 0519 15:52:25631 :: 'QuestDialog' object has no attribute 'hWnd' 0519 15:52:25631 :: This only happens when I open or close the system's window. This are all the python changes (there also a single python file for the system): https://paste.karbust.me/view/9b77b0cb Any idea? Thank you Link to comment Share on other sites More sharing options...
Management Karbust 4888 Posted May 20, 2020 Author Management Share Posted May 20, 2020 BUMP Link to comment Share on other sites More sharing options...
⚡FlasH⚡ 65 Posted May 20, 2020 Share Posted May 20, 2020 def Enable(self): pass #wndMgr.Enable(self.hWnd) def Disable(self): pass #wndMgr.Disable(self.hWnd) try this , seems u dont have self.hWnd or import this maybe will work https://www.paste.tc/EWMDR8OTVW 1 Link to comment Share on other sites More sharing options...
Management Karbust 4888 Posted May 20, 2020 Author Management Share Posted May 20, 2020 25 minutes ago, FlasH said: def Enable(self): pass #wndMgr.Enable(self.hWnd) def Disable(self): pass #wndMgr.Disable(self.hWnd) def Enable(self): pass #wndMgr.Enable(self.hWnd) def Disable(self): pass #wndMgr.Disable(self.hWnd) try this , seems u dont have self.hWnd or import this maybe will work https://www.paste.tc/EWMDR8OTVW Tried the first part, didn't solve, the error keeps popping up but keeps working. The second part, this is my class: https://paste.karbust.me/view/e0ad43fe I already have a few edits. 1 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now