blackcatq8 0 Posted December 16, 2018 Share Posted December 16, 2018 1215 14:59:17062 :: UISCRIPT_LOAD_ERROR: 'module' object has no attribute 'NumberToMoneyString' [filename UIScript/CubeWindow.py] 1215 14:59:17062 :: uiCube.py(line:100) LoadWindow ui.py(line:2886) LoadScriptFile CubeWindow.LoadDialog.LoadScript - <type 'exceptions.KeyError'>:'window' 1215 14:59:17062 :: ============================================================================================================ 1215 14:59:17062 :: Abort!!!! ------------------- can someone tell why this error i want to understand pls pls pls Link to comment Share on other sites More sharing options...
OtherChoice 77 Posted December 16, 2018 Share Posted December 16, 2018 It could be a missing import if NumberToMoneyString is called from somewhere else or something wrong inside the function itself if you declared it inside CubeWindow.py. If you still have some question or can't find what's wrong please share your CubeWindow.py. Link to comment Share on other sites More sharing options...
Active Member Solution Exygo 1095 Posted December 16, 2018 Active Member Solution Share Posted December 16, 2018 2 hours ago, OtherChoice said: It could be a missing import if NumberToMoneyString is called from somewhere else or something wrong inside the function itself if you declared it inside CubeWindow.py. If you still have some question or can't find what's wrong please share your CubeWindow.py. Go to sleep man, you confuse him. @blackcatq8 post UIScript/CubeWindow.py we need to remove NumberToMoneyString from there. 1 https://www.youtube.com/channel/UCQ8mAeda9TWq6SsTzB53emw/videos Link to comment Share on other sites More sharing options...
OtherChoice 77 Posted December 16, 2018 Share Posted December 16, 2018 Just now, Exygo said: Go to sleep man, you confuse him. @blackcatq8 post UIScript/CubeWindow.py we need to remove NumberToMoneyString from there. If he does not need that function he could do this way, but he may want to display the cube cost formatted the way NumberToMoneyString does... Link to comment Share on other sites More sharing options...
Active Member Exygo 1095 Posted December 16, 2018 Active Member Share Posted December 16, 2018 46 minutes ago, OtherChoice said: If he does not need that function he could do this way, but he may want to display the cube cost formatted the way NumberToMoneyString does... He will do it the correct way in uicube.py not the retarded way in uiscript. https://www.youtube.com/channel/UCQ8mAeda9TWq6SsTzB53emw/videos Link to comment Share on other sites More sharing options...
blackcatq8 0 Posted December 16, 2018 Author Share Posted December 16, 2018 thanks this work Link to comment Share on other sites More sharing options...
tomika1997 2 Posted December 3, 2022 Share Posted December 3, 2022 (edited) 1203 08:59:00971 :: Traceback (most recent call last): 1203 08:59:00971 :: File "introLogo.py", line 60, in OnUpdate 1203 08:59:00971 :: File "networkModule.py", line 177, in SetLoginPhase 1203 08:59:00972 :: File "system.py", line 130, in __pack_import 1203 08:59:00972 :: File "system.py", line 110, in _process_result 1203 08:59:00972 :: File "introLogin.py", line 14, in <module> 1203 08:59:00973 :: File "system.py", line 130, in __pack_import 1203 08:59:00973 :: File "system.py", line 110, in _process_result 1203 08:59:00973 :: File "uiCommon.py", line 422, in <module> 1203 08:59:00974 :: AttributeError 1203 08:59:00974 :: : 1203 08:59:00974 :: 'module' object has no attribute 'BorderB' i add end of file this class OnlinePopup(ui.BorderB): def __init__(self): ui.BorderB.__init__(self) self.isActiveSlide = False self.isActiveSlideOut = False self.endTime = 0 self.wndWidth = 0 self.textLine = ui.TextLine() self.textLine.SetParent(self) self.textLine.SetWindowHorizontalAlignCenter() self.textLine.SetWindowVerticalAlignCenter() self.textLine.SetHorizontalAlignCenter() self.textLine.SetVerticalAlignCenter() self.textLine.SetPosition(13, 0) self.textLine.Show() self.onlineImage = ui.ImageBox() self.onlineImage.SetParent(self) self.onlineImage.SetPosition(8, self.onlineImage.LoadImage("d:/ymir work/ui/game/windows/messenger_list_online.sub") self.onlineImage.Show() def __del__(self): ui.BorderB.__del__(self) def SlideIn(self): self.SetTop() self.Show() self.isActiveSlide = True self.endTime = app.GetGlobalTimeStamp() + 5 def Close(self): self.Hide() def Destroy(self): self.Close() def SetUserName(self, name): self.textLine.SetText("Player %s is online." % str(name)) self.wndWidth = self.textLine.GetTextSize()[0] + 40 self.SetSize(self.wndWidth, 25) self.SetPosition(-self.wndWidth, wndMgr.GetScreenHeight() - 200) def OnUpdate(self): if self.isActiveSlide and self.isActiveSlide == True: x, y = self.GetLocalPosition() if x < 0: self.SetPosition(x + 4, y) if self.endTime - app.GetGlobalTimeStamp() <= 0 and self.isActiveSlideOut == False and self.isActiveSlide == True: self.isActiveSlide = False self.isActiveSlideOut = True if self.isActiveSlideOut and self.isActiveSlideOut == True: x, y = self.GetLocalPosition() if x > -(self.wndWidth): self.SetPosition(x - 4, y) if x <= -(self.wndWidth): self.isActiveSlideOut = False self.Close() Edited December 11, 2022 by Metin2 Dev Core X - External 2 Internal 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