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

Problem OfflineShop


Irregular

Question

  • 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
  • Answers 0
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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


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.