Nitro Booster xLoGaN 26 Posted December 1, 2019 Nitro Booster Share Posted December 1, 2019 (edited) Hi metin2devs I added expanded money task-bar and it works fine ... the problem is that the gaya currency it is always appear on it's slot as I have 999,999 but actually I have 0 here is an image for it https://metin2.download/picture/ytCIiy6H4YV1G74m8Tzy5Zj3Htu22pZb/.png I tried to add refresh def in uiinventory.py like this def RefreshStatus(self): money = player.GetElk() self.wndMoney.SetText(localeInfo.NumberToMoneyString(money)) if app.ENABLE_CHEQUE_SYSTEM: cheque = player.GetCheque() self.wndCheque.SetText(str(cheque)) if app.ENABLE_GEM_SYSTEM: if self.wndGem: gem = player.GetGem() self.wndGem.SetText(localeInfo.NumberToMoneyString(gem)) ------------------------------------------------------------------------------------ self.wndGem.SetText(localeInfo.NumberToMoneyString(player.GetGem())) but this doesn't solve the problem every help is appreciated EDIT :solved by adding refresh def in class expanded money taskbar in uitaskbar.py . another problem ... if I make gaya I must change character to update the amount of gaya here is an image without changing character https://metin2.download/picture/XtTmZTI39ao6jFyDoD6kljP31a40G2eN/.png when I change character https://metin2.download/picture/520ZvxGDnmagtfVu9F751FGcHH01rr7o/.png Edited September 3, 2022 by Metin2 Dev Core X - External 2 Internal 1 2 Link to comment Share on other sites More sharing options...
Premium r00t 123 Posted December 2, 2019 Premium Share Posted December 2, 2019 @server/game/char.cpp Find: void CHARACTER::PointsPacket() Check if you added in this function pack.points[POINT_GEM] = GetGem(); 1 Link to comment Share on other sites More sharing options...
Nitro Booster xLoGaN 26 Posted December 2, 2019 Author Nitro Booster Share Posted December 2, 2019 24 minutes ago, r00t said: @server/game/char.cpp Find: void CHARACTER::PointsPacket() Check if you added in this function pack.points[POINT_GEM] = GetGem(); it's added @r00t Link to comment Share on other sites More sharing options...
Premium Hunger 471 Posted December 2, 2019 Premium Share Posted December 2, 2019 Something wrong with the source/db then. Link to comment Share on other sites More sharing options...
Nitro Booster xLoGaN 26 Posted December 2, 2019 Author Nitro Booster Share Posted December 2, 2019 1 minute ago, Anix said: Something wrong with the source/db then. I will check the source again thanks @r00t and @Anix for your reply Link to comment Share on other sites More sharing options...
Nitro Booster xLoGaN 26 Posted December 2, 2019 Author Nitro Booster Share Posted December 2, 2019 I tried to re-implement the source/db part but the result still the same also when I buy something from gaya market the gaya doesn't refresh till I change character any suggestion ? Link to comment Share on other sites More sharing options...
Nitro Booster xLoGaN 26 Posted December 4, 2019 Author Nitro Booster Share Posted December 4, 2019 UP Link to comment Share on other sites More sharing options...
Nitro Booster xLoGaN 26 Posted December 6, 2019 Author Nitro Booster Share Posted December 6, 2019 UP Link to comment Share on other sites More sharing options...
IGNEEL 24 Posted December 6, 2019 Share Posted December 6, 2019 send ClientManagerPlayer.cpp and char.cpp, uiTaskBar.py Link to comment Share on other sites More sharing options...
Nitro Booster xLoGaN 26 Posted December 6, 2019 Author Nitro Booster Share Posted December 6, 2019 @IGNEEL thanks for your answer https://gofile.io/?c=0bpi4y 1 1 Link to comment Share on other sites More sharing options...
IGNEEL 24 Posted December 6, 2019 Share Posted December 6, 2019 1 hour ago, xLoGaN said: @IGNEEL thanks for your answer https://gofile.io/?c=0bpi4y try this This is the hidden content, please Sign In or Sign Up 9 1 1 2 3 Link to comment Share on other sites More sharing options...
Nitro Booster xLoGaN 26 Posted December 6, 2019 Author Nitro Booster Share Posted December 6, 2019 11 minutes ago, IGNEEL said: try this This is the hidden content, please Sign In or Sign Up Thanks @IGNEEL but I have this error 1206 15:44:13612 :: Traceback (most recent call last): 1206 15:44:13612 :: File "networkModule.py", line 239, in SetGamePhase 1206 15:44:13612 :: File "game.py", line 98, in __init__ 1206 15:44:13612 :: File "interfaceModule.py", line 323, in MakeInterface 1206 15:44:13612 :: File "interfaceModule.py", line 159, in __MakeTaskBar 1206 15:44:13612 :: File "uiTaskBar.py", line 49, in __init__ 1206 15:44:13612 :: File "uiTaskBar.py", line 82, in LoadWindow 1206 15:44:13612 :: AttributeError 1206 15:44:13612 :: : 1206 15:44:13612 :: 'module' object has no attribute 'YANG_NEW' 1206 15:44:13612 :: also I don't use new character create or select I use the old one Link to comment Share on other sites More sharing options...
Solution IGNEEL 24 Posted December 6, 2019 Solution Share Posted December 6, 2019 59 minutes ago, xLoGaN said: Thanks @IGNEEL but I have this error 1206 15:44:13612 :: Traceback (most recent call last): 1206 15:44:13612 :: File "networkModule.py", line 239, in SetGamePhase 1206 15:44:13612 :: File "game.py", line 98, in __init__ 1206 15:44:13612 :: File "interfaceModule.py", line 323, in MakeInterface 1206 15:44:13612 :: File "interfaceModule.py", line 159, in __MakeTaskBar 1206 15:44:13612 :: File "uiTaskBar.py", line 49, in __init__ 1206 15:44:13612 :: File "uiTaskBar.py", line 82, in LoadWindow 1206 15:44:13612 :: AttributeError 1206 15:44:13612 :: : 1206 15:44:13612 :: 'module' object has no attribute 'YANG_NEW' 1206 15:44:13612 :: also I don't use new character create or select I use the old one open locale_interface.txt YANG_NEW Yang GAYA_NEW Gaya WON_NEW Won Link to comment Share on other sites More sharing options...
Nitro Booster xLoGaN 26 Posted December 6, 2019 Author Nitro Booster Share Posted December 6, 2019 4 minutes ago, IGNEEL said: open locale_interface.txt YANG_NEW Yang GAYA_NEW Gaya WON_NEW Won 1206 16:50:13136 :: Traceback (most recent call last): 1206 16:50:13136 :: File "networkModule.py", line 239, in SetGamePhase 1206 16:50:13136 :: File "game.py", line 98, in __init__ 1206 16:50:13136 :: File "interfaceModule.py", line 323, in MakeInterface 1206 16:50:13136 :: File "interfaceModule.py", line 162, in __MakeTaskBar 1206 16:50:13136 :: File "uiInventory.py", line 546, in SetExpandedMoneyBar 1206 16:50:13136 :: AttributeError 1206 16:50:13136 :: : 1206 16:50:13136 :: 'ExpandedMoneyTaskBar' object has no attribute 'GetMoneySlot' 1206 16:50:13136 :: if constInfo.ENABLE_EXPANDED_MONEY_TASKBAR: def SetExpandedMoneyBar(self, wndBar): self.wndExpandedMoneyBar = wndBar if self.wndExpandedMoneyBar: self.wndMoneySlot = self.wndExpandedMoneyBar.GetMoneySlot() self.wndMoney = self.wndExpandedMoneyBar.GetMoney() if app.ENABLE_CHEQUE_SYSTEM: ## 양 관련 self.wndMoneyIcon = self.wndExpandedMoneyBar.GetMoneyIcon() if self.wndMoneyIcon: self.wndMoneyIcon.SetEvent(ui.__mem_func__(self.EventProgress), "mouse_over_in", 0) self.wndMoneyIcon.SetEvent(ui.__mem_func__(self.EventProgress), "mouse_over_out", 0) if self.wndMoneySlot: self.wndMoneySlot.SetEvent(ui.__mem_func__(self.OpenPickMoneyDialog), 0) ## 2차화폐 관련 self.wndChequeIcon = self.wndExpandedMoneyBar.GetChequeIcon() if self.wndChequeIcon: self.wndChequeIcon.SetEvent(ui.__mem_func__(self.EventProgress), "mouse_over_in", 1) self.wndChequeIcon.SetEvent(ui.__mem_func__(self.EventProgress), "mouse_over_out", 1) self.wndChequeSlot = self.wndExpandedMoneyBar.GetChequeSlot() if self.wndChequeSlot: self.wndChequeSlot.SetEvent(ui.__mem_func__(self.OpenPickMoneyDialog), 1) self.wndCheque = self.wndExpandedMoneyBar.GetCheque() ## 보석 관련 self.wndGemIcon = self.wndExpandedMoneyBar.GetGemIcon() if self.wndGemIcon: self.wndGemIcon.SetEvent(ui.__mem_func__(self.EventProgress), "mouse_over_in", 2) self.wndGemIcon.SetEvent(ui.__mem_func__(self.EventProgress), "mouse_over_out", 2) self.wndGem = self.wndExpandedMoneyBar.GetGem() self.toolTip = uiToolTip.ToolTip() self.toolTip.ClearToolTip() else: if self.wndMoneySlot: self.wndMoneySlot.SetEvent(ui.__mem_func__(self.OpenPickMoneyDialog)) @IGNEEL Link to comment Share on other sites More sharing options...
IGNEEL 24 Posted December 6, 2019 Share Posted December 6, 2019 9 minutes ago, xLoGaN said: 1206 16:50:13136 :: Traceback (most recent call last): 1206 16:50:13136 :: File "networkModule.py", line 239, in SetGamePhase 1206 16:50:13136 :: File "game.py", line 98, in __init__ 1206 16:50:13136 :: File "interfaceModule.py", line 323, in MakeInterface 1206 16:50:13136 :: File "interfaceModule.py", line 162, in __MakeTaskBar 1206 16:50:13136 :: File "uiInventory.py", line 546, in SetExpandedMoneyBar 1206 16:50:13136 :: AttributeError 1206 16:50:13136 :: : 1206 16:50:13136 :: 'ExpandedMoneyTaskBar' object has no attribute 'GetMoneySlot' 1206 16:50:13136 :: if constInfo.ENABLE_EXPANDED_MONEY_TASKBAR: def SetExpandedMoneyBar(self, wndBar): self.wndExpandedMoneyBar = wndBar if self.wndExpandedMoneyBar: self.wndMoneySlot = self.wndExpandedMoneyBar.GetMoneySlot() self.wndMoney = self.wndExpandedMoneyBar.GetMoney() if app.ENABLE_CHEQUE_SYSTEM: ## 양 관련 self.wndMoneyIcon = self.wndExpandedMoneyBar.GetMoneyIcon() if self.wndMoneyIcon: self.wndMoneyIcon.SetEvent(ui.__mem_func__(self.EventProgress), "mouse_over_in", 0) self.wndMoneyIcon.SetEvent(ui.__mem_func__(self.EventProgress), "mouse_over_out", 0) if self.wndMoneySlot: self.wndMoneySlot.SetEvent(ui.__mem_func__(self.OpenPickMoneyDialog), 0) ## 2차화폐 관련 self.wndChequeIcon = self.wndExpandedMoneyBar.GetChequeIcon() if self.wndChequeIcon: self.wndChequeIcon.SetEvent(ui.__mem_func__(self.EventProgress), "mouse_over_in", 1) self.wndChequeIcon.SetEvent(ui.__mem_func__(self.EventProgress), "mouse_over_out", 1) self.wndChequeSlot = self.wndExpandedMoneyBar.GetChequeSlot() if self.wndChequeSlot: self.wndChequeSlot.SetEvent(ui.__mem_func__(self.OpenPickMoneyDialog), 1) self.wndCheque = self.wndExpandedMoneyBar.GetCheque() ## 보석 관련 self.wndGemIcon = self.wndExpandedMoneyBar.GetGemIcon() if self.wndGemIcon: self.wndGemIcon.SetEvent(ui.__mem_func__(self.EventProgress), "mouse_over_in", 2) self.wndGemIcon.SetEvent(ui.__mem_func__(self.EventProgress), "mouse_over_out", 2) self.wndGem = self.wndExpandedMoneyBar.GetGem() self.toolTip = uiToolTip.ToolTip() self.toolTip.ClearToolTip() else: if self.wndMoneySlot: self.wndMoneySlot.SetEvent(ui.__mem_func__(self.OpenPickMoneyDialog)) @IGNEEL send uiInventory.py Link to comment Share on other sites More sharing options...
Nitro Booster xLoGaN 26 Posted December 6, 2019 Author Nitro Booster Share Posted December 6, 2019 6 minutes ago, IGNEEL said: send uiInventory.py This is the hidden content, please Sign In or Sign Up 4 1 2 Link to comment Share on other sites More sharing options...
SussyFlore96 2 Posted June 19, 2021 Share Posted June 19, 2021 (edited) Hi! I have some problem with Refresh... Do you fixed the problem? Edited June 23, 2021 by SussyFlore96 Link to comment Share on other sites More sharing options...
nosacz26 1 Posted November 7, 2023 Share Posted November 7, 2023 I have the same problem as you - 999,999 now matter how much I got. Can you share the solution? 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