Sidelekbrytro 2 Posted February 17, 2023 Share Posted February 17, 2023 (edited) Spoiler 0217 13:12:41966 :: Traceback (most recent call last): 0217 13:12:41966 :: File "game.py", line 1938, in BINARY_ServerCommand_Run 0217 13:12:41967 :: File "stringCommander.py", line 63, in Run 0217 13:12:41967 :: File "stringCommander.py", line 31, in __call__ 0217 13:12:41967 :: File "stringCommander.py", line 20, in __call__ 0217 13:12:41967 :: File "game.py", line 2300, in gift_item 0217 13:12:41967 :: AttributeError 0217 13:12:41967 :: : 0217 13:12:41967 :: 'module' object has no attribute 'ENABLE_TRANSMUTE_SYSTEM' 0217 13:12:41967 :: 0217 13:12:41967 :: Unknown Server Command gift_item 13#1#1#0#1676639526#[SA]Admin_Shop#Closing_Shop#0|0|0#0,0|0,0|0,0|0,0|0,0|0,0|0,0 | gift_item Hello, implemented the offline shop but it doesn't work 100%. These are 2 errors that i have + my nickname from the character was gone and i don't have any error in that case. Here is the error code from game.py Spoiler ####GIFT SYSTEM##### def gift_clear(self): constInfo.gift_items={} self.interface.ClearGift() def gift_item(self, data): d=data.split("#") c = counter() data = {} for k in ["id", "vnum", "count", "pos", "date_add"]: data[k] = int(d[c.inc(k)]) for k in [ "give", "reason"]: data[k] = d[c.inc(k)].replace("_"," ") data["sockets"] = [int(x) for x in d[c.inc("sockets")].split("|")] data["attrs"] = [[int(y[0]), int(y[1])] for y in [x.split(",") for x in d[c.inc("attrs")].split("|")]] if app.ENABLE_TRANSMUTE_SYSTEM: data["look"] = int(d[c.inc("look")]) constInfo.gift_items[data["pos"]] = data def gift_load(self): self.interface.wndGiftBox.Refresh() def gift_show(self,pages): self.interface.wndGiftBox.pageNum=int(pages) self.interface.OpenGift() Edited February 17, 2023 by Sidelekbrytro Link to comment Share on other sites More sharing options...
Takuma 184 Posted February 18, 2023 Share Posted February 18, 2023 It tries to look for ENABLE TRANSMUTE SYSTEM in app module. But it seems to doesn't exist. Check if you haven't ENABLE_TRANSMUTE_SYSTEM with an other name. Else, remove this : if app.ENABLE_TRANSMUTE_SYSTEM: data["look"] = int(d[c.inc("look")]) Link to comment Share on other sites More sharing options...
Sidelekbrytro 2 Posted February 18, 2023 Author Share Posted February 18, 2023 1 hour ago, Takuma said: It tries to look for ENABLE TRANSMUTE SYSTEM in app module. But it seems to doesn't exist. Check if you haven't ENABLE_TRANSMUTE_SYSTEM with an other name. Else, remove this : if app.ENABLE_TRANSMUTE_SYSTEM: data["look"] = int(d[c.inc("look")]) This was the solution, in case someone else had this problem. Ty! 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