Jump to content

Recommended Posts

help pls

InventoryWindow.LoadWindow.BindObject - <type 'exceptions.AttributeError'>:'NoneType' object has no attribute 'SetEvent'
 

On 7/6/2019 at 21:18, cjunior2011 said:

@ Mali61  tengo un problema con v2

error:

  Ocultar contenidos

0607 23:00:06787 :: ui:2291: RuntimeWarning: tp_compare didn't return -1 or -2 for exception 0607 23:00:06789 :: uiInventory.py(line:519) __LoadWindow uiToolTip.py(line:514) AppendTextLine uiToolTip.py(line:207) AppendTextLine uiToolTip.py(line:243) ResizeToolTip ui.py(line:2291) SetSize InventoryWindow.LoadWindow.BindObject - <type 'exceptions.RuntimeError'>:Not yet select item data 0607 23:00:06789 :: ============================================================================================================ 0607 23:00:06789 :: Abort!!!!



   


 

 

código:

  Revelar contenidos ocultos

MN5RJ7X.png

códigos syserr:
 

  Revelar contenidos ocultos

Stm7Vf3.png

-

2Yh7CqU.png

¿qué hice mal?



UPPPP

Edited by Metin2 Dev
Core X - External 2 Internal
  • muscle 1
  • Love 1
Link to comment
https://metin2.dev/topic/18493-sort-inventory/page/3/#findComment-127023
Share on other sites

7 hours ago, Mali61 said:

Puede verificar las actualizaciones en lugar de escribir

for me not work v2, so i use a v1, but  i have proble with this 

https://metin2.download/picture/1qUJnu1yked7rgHaopL61Rk6acilbXqg/.gif 

 

the only solution i have is add on special storage, but i don't want this, and i try this 

&& item->GetVnum() != 70057

 char.cpp 

but i don't know how on  i need add the function.

you can help me?, the system work great this only problem. thanks

 

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 3

KH.jpg

Nicks: Nazox Krone Nagato Yahiko Yakiro
Proyecto: Trabajando en el.
Compañeros & firma: DreamHQ  - 2009-2015 [Nostalgia]

Link to comment
https://metin2.dev/topic/18493-sort-inventory/page/3/#findComment-127049
Share on other sites

  • Honorable Member
1 hour ago, nazox said:

for me not work v2, so i use a v1, but  i have proble with this 

https://metin2.download/picture/1qUJnu1yked7rgHaopL61Rk6acilbXqg/.gif 

 

the only solution i have is add on special storage, but i don't want this, and i try this 

&& item->GetVnum() != 70057

 char.cpp 

but i don't know how on  i need add the function.

you can help me?, the system work great this only problem. thanks

 

this is about proto. find 50 in 70057 and change

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 1
  • Love 1

 

Link to comment
https://metin2.dev/topic/18493-sort-inventory/page/3/#findComment-127055
Share on other sites

  • 4 weeks later...
On 4/30/2020 at 5:26 PM, Mali61 said:

this is about proto. find 50 in 70057 and change

Hey Mali! work great i fix 70057, but i look you have a bug with sun elixir.. if you use elixir, when you click short, your elixir have again 100% and books change name, you have solution???

KH.jpg

Nicks: Nazox Krone Nagato Yahiko Yakiro
Proyecto: Trabajando en el.
Compañeros & firma: DreamHQ  - 2009-2015 [Nostalgia]

Link to comment
https://metin2.dev/topic/18493-sort-inventory/page/3/#findComment-128772
Share on other sites

  • 1 month later...

HNfS5Eb.png

I did everything in the guide, but when i put the mouse over this i can't see the tooltip and it doesn't let me click it... i can't understand why... the syserr are empty too ?

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
https://metin2.dev/topic/18493-sort-inventory/page/3/#findComment-130184
Share on other sites

  • Premium
On 5/31/2020 at 6:55 PM, nazox said:

Hey Mali! work great i fix 70057, but i look you have a bug with sun elixir.. if you use elixir, when you click short, your elixir have again 100% and books change name, you have solution???

Create a new function where you pass the item and copy the sockets of the item, and in the sorting function, check if the item is an autorecovery potion and use your new autogiveitem function.

I had to do it even for other stackable items where knowing what the sockets are is important (don't mind the name's function, I started with the blend items and then I realized the other bugs):

S8RssCi.png

 

and then in the function, you take care of the stacking and shit:

zxhI6ai.png

Obviously it's gonna be different in your files server.

 

This is because the AutoGiveItem function doesn't know your item's sockets, so it's gonna create a new one, and the auto recovery potions are stackable.

Another option, if you don't wanna deal with it, in the sorting option, exclude the unique or sockets dependent stackable items in the first if, or directly checking the sockets in the sorting functions if you don't have anything special.

Edited by Metin2 Dev
Core X - External 2 Internal
  • Love 1
Link to comment
https://metin2.dev/topic/18493-sort-inventory/page/3/#findComment-130214
Share on other sites

  • 9 months later...
On 7/21/2019 at 5:29 PM, nonnorulez said:

Ty man, ho seguito il tuo consiglio e i syserrs ora dicono:

image.thumb.png.530c372b4ab3c2421c99d7315b2e5e36.png

Ho provato a scrivere "import uiToolTip" su uiinventory.py

Ma ho questo errore:

image.png.52dc24d67f7a2c033bdf0d7bc4b4f657.png

 

Come posso risolvere? Grazie a tutti per consigli e disponibilità.

you have resolved???

Link to comment
https://metin2.dev/topic/18493-sort-inventory/page/3/#findComment-138920
Share on other sites

  • 4 months later...

fix highlight system : find 

			AutoGiveItem(getitem->GetVnum(), getitem->GetCount(), -1, false);
			M2_DESTROY_ITEM(getitem);
		}
		else
			AutoGiveItem(getitem);

change with 

#ifdef ENABLE_HIGHLIGHT_SYSTEM
				AutoGiveItem(getitem->GetVnum(), getitem->GetCount(), -1, false, false);
				M2_DESTROY_ITEM(getitem);
#else
				AutoGiveItem(getitem->GetVnum(), getitem->GetCount(), -1, false);
				M2_DESTROY_ITEM(getitem);
#endif		}
			else
#ifdef ENABLE_HIGHLIGHT_SYSTEM
				AutoGiveItem(getitem, false, false);
#else
				AutoGiveItem(getitem, false);
#endif

not tested

Edited by Hysteria
Link to comment
https://metin2.dev/topic/18493-sort-inventory/page/3/#findComment-143574
Share on other sites

I have it all installed but it doesn t work... I get kicked whenever I click on sorting button. 

I also didn t have OnUpdate(self) function in my uiinvetory.py so I made one in Invetory class. 

Syserr is empty, what could be the issue? (I also installed textline emoji and they work).

Link to comment
https://metin2.dev/topic/18493-sort-inventory/page/3/#findComment-143655
Share on other sites

21 hours ago, narcisxb said:

Lo tengo todo instalado pero no funciona ... Me patean cada vez que hago clic en el botón de clasificación. 

Tampoco tenía la función OnUpdate (self) en mi uiinvetory.py, así que hice una en la clase Invetory. 

Syserr está vacío, ¿cuál podría ser el problema? (También instalé emoji de línea de texto y funcionan).

System work great, you have c++11 in src game? ( he delated old version, so the new only work with c++11),  and emoji is not necesesary to work, and you don't need def onUpdate, try to search this:

Quote

    def __LoadWindow(self):
        if self.isLoaded == 1:
            return

        self.isLoaded = 1

        try:
            pyScrLoader = ui.PythonScriptLoader()

            if ITEM_MALL_BUTTON_ENABLE:
                pyScrLoader.LoadScriptFile(self, uiScriptLocale.LOCALE_UISCRIPT_PATH + "InventoryWindow.py")
            else:
                pyScrLoader.LoadScriptFile(self, "UIScript/InventoryWindow.py")
        except:
            import exception
            exception.Abort("InventoryWindow.LoadWindow.LoadObject")

        try:
            wndItem = self.GetChild("ItemSlot")
            wndEquip = self.GetChild("EquipmentSlot")
            self.GetChild("TitleBar").SetCloseEvent(ui.__mem_func__(self.Close))
            self.wndMoney = self.GetChild("Money")
            self.wndMoneySlot = self.GetChild("Money_Slot")
            self.mallButton = self.GetChild2("MallButton")
            self.NazoxButton = self.GetChild2("NazoxButton")
            self.DSSButton = self.GetChild2("DSSButton")
            self.costumeButton = self.GetChild2("CostumeButton")
            
            self.inventoryTab = []
            self.inventoryTab.append(self.GetChild("Inventory_Tab_01"))
            self.inventoryTab.append(self.GetChild("Inventory_Tab_02"))
        #    self.inventoryTab.append(self.GetChild("Inventory_Tab_03"))
        #    self.inventoryTab.append(self.GetChild("Inventory_Tab_04"))

            self.equipmentTab = []
            self.equipmentTab.append(self.GetChild("Equipment_Tab_01"))
            self.equipmentTab.append(self.GetChild("Equipment_Tab_02"))

            if app.ENABLE_SORT_INVEN:
                self.yenilebutton = self.GetChild2("YenileButton")
                self.yenilebutton.SetEvent(ui.__mem_func__(self.ClickYenileButton))
                self.tooltipI = uiToolTip.ToolTip()
                self.tooltipI.Hide()
                self.tooltipInfo = [self.tooltipI]*4
                self.InformationText = [localeInfo.YENILE_BUTTON_TITLE,
                                        localeInfo.YENILE_BUTTON,
                                        localeInfo.YENILE_BUTTON2,
                                        localeInfo.YENILE_BUTTON3
                ]
                for i in xrange(len(self.tooltipInfo)):
                    self.tooltipInfo[i].SetFollow(True)
                    self.tooltipInfo[i].AlignHorizonalCenter()
                    if i == 0:
                        self.tooltipInfo[i].AppendTextLine(self.InformationText[i], 0xffffff00)
                    else:
                        self.tooltipInfo[i].AppendTextLine(self.InformationText[i])
                    self.tooltipInfo[i].Hide()

            if self.costumeButton and not app.ENABLE_COSTUME_SYSTEM:
                self.costumeButton.Hide()
                self.costumeButton.Destroy()
                self.costumeButton = 0

            # Belt Inventory Window
            self.wndBelt = None

i have this :

Quote

    if app.ENABLE_EXTENDED_SELL:
        def OnUpdate(self):
            if self.wndItem:
                self.RefreshExtendedSellCover()
            if app.ENABLE_SORT_INVEN and self.tooltipInfo:
                for i in xrange(len(self.tooltipInfo)):
                    if self.yenilebutton.IsIn():
                        self.tooltipInfo[i].Show()
                    else:
                        self.tooltipInfo[i].Hide()

but you cand add on something have "wndItem:"

KH.jpg

Nicks: Nazox Krone Nagato Yahiko Yakiro
Proyecto: Trabajando en el.
Compañeros & firma: DreamHQ  - 2009-2015 [Nostalgia]

Link to comment
https://metin2.dev/topic/18493-sort-inventory/page/3/#findComment-143681
Share on other sites

15 minutes ago, nazox said:

System work great, you have c++11 in src game? ( he delated old version, so the new only work with c++11),  and emoji is not necesesary to work, and you don't need def onUpdate, try to search this:

i have this :

but you cand add on something have "wndItem:"

I had figured it out in the meanwhile. I got it working yesterday but thx for info!.

Edited by narcisxb
Link to comment
https://metin2.dev/topic/18493-sort-inventory/page/3/#findComment-143682
Share on other sites

  • 1 month later...
  • 3 weeks later...
On 7/5/2020 at 4:47 PM, Cripplez said:

HNfS5Eb.png

I did everything in the guide, but when i put the mouse over this i can't see the tooltip and it doesn't let me click it... i can't understand why... the syserr are empty too ?

@ Mali i have this problem too. Any idea how to fix it ?

Edited by Metin2 Dev
Core X - External 2 Internal

“𝓐𝓵𝓵 𝔀𝓮 𝓱𝓪𝓿𝓮 𝓽𝓸 𝓭𝓮𝓬𝓲𝓭𝓮 𝓲𝓼 𝔀𝓱𝓪𝓽 𝓽𝓸 𝓭𝓸 𝔀𝓲𝓽𝓱 𝓽𝓱𝓮 𝓽𝓲𝓶𝓮 𝓽𝓱𝓪𝓽 𝓲𝓼 𝓰𝓲𝓿𝓮𝓷 𝓾𝓼.” ~ 𝓖𝓪𝓷𝓭𝓪𝓵𝓯 𝓽𝓱𝓮 𝓖𝓻𝓮𝔂

Link to comment
https://metin2.dev/topic/18493-sort-inventory/page/3/#findComment-145821
Share on other sites

15 hours ago, SteelskinVayne said:

It's easy to fix. Just re-do the installation because you clearly did something wrong. System works fine

Yeah i fixed it. The only problem is that it doesnt show the details of ctrl + right click etc when i hover the mouse into refresh button. I have installed emoji in textline..

“𝓐𝓵𝓵 𝔀𝓮 𝓱𝓪𝓿𝓮 𝓽𝓸 𝓭𝓮𝓬𝓲𝓭𝓮 𝓲𝓼 𝔀𝓱𝓪𝓽 𝓽𝓸 𝓭𝓸 𝔀𝓲𝓽𝓱 𝓽𝓱𝓮 𝓽𝓲𝓶𝓮 𝓽𝓱𝓪𝓽 𝓲𝓼 𝓰𝓲𝓿𝓮𝓷 𝓾𝓼.” ~ 𝓖𝓪𝓷𝓭𝓪𝓵𝓯 𝓽𝓱𝓮 𝓖𝓻𝓮𝔂

Link to comment
https://metin2.dev/topic/18493-sort-inventory/page/3/#findComment-145836
Share on other sites

  • 2 months later...

Hey @ Mali, i installed it but the only problem is when i drag the mouse into the sort button i cant see the tooltip. I can click on the button, i just cant see the information. Could you help me ?

“𝓐𝓵𝓵 𝔀𝓮 𝓱𝓪𝓿𝓮 𝓽𝓸 𝓭𝓮𝓬𝓲𝓭𝓮 𝓲𝓼 𝔀𝓱𝓪𝓽 𝓽𝓸 𝓭𝓸 𝔀𝓲𝓽𝓱 𝓽𝓱𝓮 𝓽𝓲𝓶𝓮 𝓽𝓱𝓪𝓽 𝓲𝓼 𝓰𝓲𝓿𝓮𝓷 𝓾𝓼.” ~ 𝓖𝓪𝓷𝓭𝓪𝓵𝓯 𝓽𝓱𝓮 𝓖𝓻𝓮𝔂

Link to comment
https://metin2.dev/topic/18493-sort-inventory/page/3/#findComment-147970
Share on other sites

  • 3 weeks later...
On 3/3/2022 at 12:57 PM, Jimmermania said:

Hey @ Mali, i installed it but the only problem is when i drag the mouse into the sort button i cant see the tooltip. I can click on the button, i just cant see the information. Could you help me ?

hey dude, could you please help me ? i have installed emoji system too @ Mali

“𝓐𝓵𝓵 𝔀𝓮 𝓱𝓪𝓿𝓮 𝓽𝓸 𝓭𝓮𝓬𝓲𝓭𝓮 𝓲𝓼 𝔀𝓱𝓪𝓽 𝓽𝓸 𝓭𝓸 𝔀𝓲𝓽𝓱 𝓽𝓱𝓮 𝓽𝓲𝓶𝓮 𝓽𝓱𝓪𝓽 𝓲𝓼 𝓰𝓲𝓿𝓮𝓷 𝓾𝓼.” ~ 𝓖𝓪𝓷𝓭𝓪𝓵𝓯 𝓽𝓱𝓮 𝓖𝓻𝓮𝔂

Link to comment
https://metin2.dev/topic/18493-sort-inventory/page/3/#findComment-148324
Share on other sites

  • 7 months 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.