Jump to content

Recommended Posts

Hello,

 

I encounter a problem when deleting the character in the selection.

By clicking "delete," the customer closes and I get this error:


0113 00:15:14494 :: 
uicommon.py(line:263) __CreateDialog
ui.py(line:8065) GetChild

InputDialogWithDescription.LoadBoardDialog.BindObject - <type 'exceptions.KeyError'>:'special_bg' 

0113 00:15:14494 :: ============================================================================================================
0113 00:15:14494 :: Abort!!!!

 

Thanks in advance

Link to comment
https://metin2.dev/topic/22611-character-removal/
Share on other sites

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

You need to check your python files. Look at uicommon.py line 263, there you most likely using a key that's not defined (in this case 'special_bg'. So your script is faulty or missing something.

We are the tortured.
We're not your friends.
As long as we're not visible.
We are unfixable.

Link to comment
https://metin2.dev/topic/22611-character-removal/#findComment-122859
Share on other sites

Hello and thank you for responding,

 

At line 263 i have this :


            self.special_bg = getObject("special_bg")

 


        pyScrLoader = ui.PythonScriptLoader()
        pyScrLoader.LoadScriptFile(self, "uiscript/inputdialogwithdescription.py")

        try:
            getObject = self.GetChild
            self.board = getObject("Board")
            self.special_bg = getObject("special_bg")

 

 

and in uiscript then inputdialogwithdescription.py, i have this :


import uiScriptLocale

window = {
    "name" : "InputDialog_WithDescription",

    "x" : 0,
    "y" : 0,

    "style" : ("movable", "float",),

    "width" : 170,
    "height" : 106,

    "children" :
    (
        {
            "name" : "Board",
            "type" : "board_with_titlebar",

            "x" : 0,
            "y" : 0,

            "width" : 170,
            "height" : 106,

            "title" : "",

            "children" :
            (

                ## Text
                {
                    "name" : "Description",
                    "type" : "text",
                    "text" : "",
                    "horizontal_align" : "center",
                    "text_horizontal_align" : "center",
                    "x" : 0,
                    "y" : 34,
                },

                ## Input Slot
                {
                    "name" : "InputSlot",
                    "type" : "slotbar",

                    "x" : 0,
                    "y" : 51,
                    "width" : 90,
                    "height" : 18,
                    "horizontal_align" : "center",

                    "children" :
                    (
                        {
                            "name" : "InputValue",
                            "type" : "editline",

                            "x" : 3,
                            "y" : 3,

                            "width" : 90,
                            "height" : 18,

                            "input_limit" : 12,
                        },
                    ),
                },

                ## Button
                {
                    "name" : "AcceptButton",
                    "type" : "button",

                    "x" : - 61 - 5 + 30,
                    "y" : 74,
                    "horizontal_align" : "center",

                    "text" : "|cffb6a68dOK",

                    "default_image" : "d:/ymir work/ui/public/middle_button_01.sub",
                    "over_image" : "d:/ymir work/ui/public/middle_button_02.sub",
                    "down_image" : "d:/ymir work/ui/public/middle_button_03.sub",
                },
                {
                    "name" : "CancelButton",
                    "type" : "button",

                    "x" : 5 + 30,
                    "y" : 74,
                    "horizontal_align" : "center",

                    "text" : uiScriptLocale.CANCEL,

                    "default_image" : "d:/ymir work/ui/public/middle_button_01.sub",
                    "over_image" : "d:/ymir work/ui/public/middle_button_02.sub",
                    "down_image" : "d:/ymir work/ui/public/middle_button_03.sub",
                },

            ),
        },
    ),
}

 

No "special_bg" in this file, i don't know what to do...

 

Thank you in advance

 

 

Link to comment
https://metin2.dev/topic/22611-character-removal/#findComment-122872
Share on other sites

Well in that case you either have to fix the code or get it somewhere. I don't know what you downloaded and who did what on these script files but certainly they seem to be out of sync.

We are the tortured.
We're not your friends.
As long as we're not visible.
We are unfixable.

Link to comment
https://metin2.dev/topic/22611-character-removal/#findComment-122885
Share on other sites

 
Hello,
  
When I comment on the line # self.special_bg = getObject ("special_bg") in uicommon.py, the delete button no longer works but my client does not crash
I really don't know how to resolve this.
  
thank you in advance
Link to comment
https://metin2.dev/topic/22611-character-removal/#findComment-123147
Share on other sites

  • 2 weeks later...

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.