tristano98 6 Posted September 6, 2017 Share Posted September 6, 2017 Hello guys, I have a problem: the problem is that I can't open my private shop Spoiler Traceback (most recent call last): File "ui.py", line 1034, in CallEvent File "ui.py", line 88, in __call__ File "ui.py", line 70, in __call__ File "interfaceModule.py", line 1425, in OpenPrivateShopBuilder TypeError: Open() takes exactly 3 arguments (2 given) Link to comment Share on other sites More sharing options...
tristano98 6 Posted September 12, 2017 Author Share Posted September 12, 2017 UP Link to comment Share on other sites More sharing options...
AllahPsico 24 Posted September 12, 2017 Share Posted September 12, 2017 Maybe you have any shop open? Link to comment Share on other sites More sharing options...
Premium North 1172 Posted September 12, 2017 Premium Share Posted September 12, 2017 Open() takes 3 arguments 2 given pass open 3 arguments, since you edited that function, if you don`t understand what you are doing don`t install new stuff and expect us to fix that for you. This problem can be solved with 3 min of reading on google Link to comment Share on other sites More sharing options...
tristano98 6 Posted September 15, 2017 Author Share Posted September 15, 2017 (edited) This is the bug https://metin2.download/picture/Xl0eY38I88tjm7OUDiU82v0vrAaZ12gH/.gif On 12/9/2017 at 3:52 PM, Fleon said: Open() takes 3 arguments 2 given pass open 3 arguments, since you edited that function, if you don`t understand what you are doing don`t install new stuff and expect us to fix that for you. This problem can be solved with 3 min of reading on google On 12/9/2017 at 3:22 PM, AllahPsico said: Maybe you have any shop open? Edited September 3, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Premium North 1172 Posted September 15, 2017 Premium Share Posted September 15, 2017 (edited) 30 minutes ago, tristano98 said: This is the bug https://metin2.download/picture/Xl0eY38I88tjm7OUDiU82v0vrAaZ12gH/.gif send on pastebin OpenPrivateShopBuilder + full interfaceModule.py Edited September 3, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
tristano98 6 Posted September 15, 2017 Author Share Posted September 15, 2017 On 15/9/2017 at 10:29 AM, Fleon said: send on pastebin OpenPrivateShopBuilder + full interfaceModule.py uiprivateshopbuilder.py = interfacemodule.py = Link to comment Share on other sites More sharing options...
Premium North 1172 Posted September 16, 2017 Premium Share Posted September 16, 2017 too high, sorry Link to comment Share on other sites More sharing options...
DarkAng3l 25 Posted September 17, 2017 Share Posted September 17, 2017 def Open(self, title,days): self.days = days self.title = title if len(title) > 25: title = title[:22] + "..." self.itemStock = {} shop.ClearPrivateShopStock() self.nameLine.SetText(title) self.SetCenterPosition() self.Refresh() self.Show() if app.WJ_ENABLE_TRADABLE_ICON: self.lockedItems = {i:(-1,-1) for i in range(shop.SHOP_SLOT_COUNT)} self.interface.SetOnTopWindow(player.ON_TOP_WND_PRIVATE_SHOP) self.interface.RefreshMarkInventoryBag() global g_isBuildingPrivateShop g_isBuildingPrivateShop = True Replace with this and remove self.days variable def Open(self, title): self.title = title if len(title) > 25: title = title[:22] + "..." self.itemStock = {} shop.ClearPrivateShopStock() self.nameLine.SetText(title) self.SetCenterPosition() self.Refresh() self.Show() if app.WJ_ENABLE_TRADABLE_ICON: self.lockedItems = {i:(-1,-1) for i in range(shop.SHOP_SLOT_COUNT)} self.interface.SetOnTopWindow(player.ON_TOP_WND_PRIVATE_SHOP) self.interface.RefreshMarkInventoryBag() global g_isBuildingPrivateShop g_isBuildingPrivateShop = True 2 Link to comment Share on other sites More sharing options...
Premium North 1172 Posted September 18, 2017 Premium Share Posted September 18, 2017 15 hours ago, DarkAng3l said: def Open(self, title,days): self.days = days self.title = title if len(title) > 25: title = title[:22] + "..." self.itemStock = {} shop.ClearPrivateShopStock() self.nameLine.SetText(title) self.SetCenterPosition() self.Refresh() self.Show() if app.WJ_ENABLE_TRADABLE_ICON: self.lockedItems = {i:(-1,-1) for i in range(shop.SHOP_SLOT_COUNT)} self.interface.SetOnTopWindow(player.ON_TOP_WND_PRIVATE_SHOP) self.interface.RefreshMarkInventoryBag() global g_isBuildingPrivateShop g_isBuildingPrivateShop = True Replace with this and remove self.days variable def Open(self, title): self.title = title if len(title) > 25: title = title[:22] + "..." self.itemStock = {} shop.ClearPrivateShopStock() self.nameLine.SetText(title) self.SetCenterPosition() self.Refresh() self.Show() if app.WJ_ENABLE_TRADABLE_ICON: self.lockedItems = {i:(-1,-1) for i in range(shop.SHOP_SLOT_COUNT)} self.interface.SetOnTopWindow(player.ON_TOP_WND_PRIVATE_SHOP) self.interface.RefreshMarkInventoryBag() global g_isBuildingPrivateShop g_isBuildingPrivateShop = True wow i must have been super high to forget the problem and look for errors lol ^ this guys is right Link to comment Share on other sites More sharing options...
tristano98 6 Posted September 20, 2017 Author Share Posted September 20, 2017 On 17/9/2017 at 10:59 PM, DarkAng3l said: def Open(self, title,days): self.days = days self.title = title if len(title) > 25: title = title[:22] + "..." self.itemStock = {} shop.ClearPrivateShopStock() self.nameLine.SetText(title) self.SetCenterPosition() self.Refresh() self.Show() if app.WJ_ENABLE_TRADABLE_ICON: self.lockedItems = {i:(-1,-1) for i in range(shop.SHOP_SLOT_COUNT)} self.interface.SetOnTopWindow(player.ON_TOP_WND_PRIVATE_SHOP) self.interface.RefreshMarkInventoryBag() global g_isBuildingPrivateShop g_isBuildingPrivateShop = True Replace with this and remove self.days variable def Open(self, title): self.title = title if len(title) > 25: title = title[:22] + "..." self.itemStock = {} shop.ClearPrivateShopStock() self.nameLine.SetText(title) self.SetCenterPosition() self.Refresh() self.Show() if app.WJ_ENABLE_TRADABLE_ICON: self.lockedItems = {i:(-1,-1) for i in range(shop.SHOP_SLOT_COUNT)} self.interface.SetOnTopWindow(player.ON_TOP_WND_PRIVATE_SHOP) self.interface.RefreshMarkInventoryBag() global g_isBuildingPrivateShop g_isBuildingPrivateShop = True Thanks solved 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