Jump to content

Recommended Posts

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 by Sidelekbrytro
Link to comment
https://metin2.dev/topic/30392-error-offline-shop/
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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
https://metin2.dev/topic/30392-error-offline-shop/#findComment-155365
Share on other sites

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
https://metin2.dev/topic/30392-error-offline-shop/#findComment-155372
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.