Jump to content
×
×
  • Create New...
  • 0

Little Bug PRIVATE SHOP


tristano98

Question

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

10 answers to this question

Recommended Posts

  • 0
  • Premium

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

  • 0

This is the bug https://gyazo.com/056903d0131f3d59b354935ceef71ef7 

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?

 

Link to comment
Share on other sites

  • 0
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

 

  • Love 1
Link to comment
Share on other sites

  • 0
  • Premium
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

  • 0
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.


Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.