Jump to content

Problem OfflineShop


Recommended Posts

  • Premium

Hello guys,

I have a problem with offlineshop, the error

Spoiler

 

1019 02:43:11625 ::   File "networkModule.py", line 239, in SetGamePhase

1019 02:43:11626 ::   File "game.py", line 102, in __init__

1019 02:43:11626 ::   File "interfaceModule.py", line 321, in MakeInterface

1019 02:43:11626 ::   File "interfaceModule.py", line 237, in __MakeDialogs

1019 02:43:11626 ::   File "uiOfflineShop.py", line 998, in LoadDialog

1019 02:43:11627 ::   File "uiOfflineShop.py", line 966, in Refresh

1019 02:43:11627 ::   File "ui.py", line 1965, in SetItemSlot

1019 02:43:11627 :: TypeError
1019 02:43:11627 :: : 
1019 02:43:11627 :: 'NoneType' object is not iterable
1019 02:43:11627 :: 

 

and that's the definition of refresh

Spoiler

def Refresh(self):
        for i in xrange(shop.OFFLINE_SHOP_SLOT_COUNT):
            itemCount = shop.GetOfflineShopItemCount(i)
            if (itemCount <= 1):
                itemCount = 0
            self.itemSlotWindow.SetItemSlot(i, shop.GetOfflineShopItemID(i), itemCount)
            
        wndMgr.RefreshSlot(self.itemSlotWindow.GetWindowHandle())
        
    def LoadDialog(self):


I think the problem is from function GetOfflineShopItemID because it returns none but i don t have any idea what to do.

 

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

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.