Jump to content

Recommended Posts

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Contributor

You have 3 errors (all AttributeErrors), the first of which is: 'module' object has no attribute 'OFFLINE_SHOP_SLOT_COUNT' the root of the problems.

So, in the uiOfflineShop.py's Refresh function, you used the OFFLINE_SHOP_SLOT_COUNT attribute and that does not exist. Check the tutorial agin and find out if OFFLINE_SHOP_SLOT_COUNT is included. It will be there, because I have installed Ken's offshop about 3 times so far. It's a simple constant, found in PythonShop.cpp.

PyModule_AddIntConstant(poModule, "OFFLINE_SHOP_SLOT_COUNT", OFFLINE_SHOP_HOST_ITEM_MAX_NUM);

You don't have to deal with errors number 2 and 3 for the time being, because they were only caused by this, if you fix this OFFLINE_SHOP_SLOT_COUNT, they will also disappear.

Link to comment
Share on other sites

  • 2 weeks later...

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.