Jump to content

kodepiko

Member
  • Posts

    397
  • Joined

  • Last visited

  • Days Won

    2
  • Feedback

    0%

Posts posted by kodepiko

  1. Hello, I'm experiencing weird problem about color of item count in inventory window... they aren't white but little bit red transparent:

    8e37c366e7144dc7b5ad3b405763934d.png

    Tried to find some way to hard code color of them but failed, because there are only diffusecolor of slot image. :(

    PS. Not only I got this problem, I'm sure it's client problem, not for ex. graphic issue.

  2. 3 minutes ago, VegaS said:

    Since eternexus etc. can not find certain characters unpack eg 01.¼º / ³ª¹ "and then be renamed locations and made new ones.

    This is in the property, some of its folders/files have Chinese chars in its names. 

    Here are resolved:

    This is the hidden content, please
    !mUpUbnlzFcJaltR7nKBaLuiIUifpKIVX8WFxHGbl1eI

    You can go in property/property and creates a file named for * list * like that:

    http://pastebin.com/ee7RJ35v

    Thank you, I saw yours older reply, but there's link goes down so I needed to ask :)

     

    Thread solved.

    • Metin2 Dev 2
    • Love 1
    • Love 2
  3. Hello guys,

    maybe someone have packer (which takes arguments by .bat file) or know how to create .bat for EterNexus to automatic pack of defined folder in script, without .xml of folder contains - because I want it automatic, without editing xml with new files I add?

    just pack whole folder by running .bat script or something?

    I think EterNexus don't take arguments it needs to be done manually by program gui, and he can't pack multiple folders

     

  4. 51 minutes ago, VegaS said:

    I see you want to use for description in refine, you can start with this:

     

        

    
    	def OverInItem(self, value_t):
    		global description_refine
    		import grp
    		if description_refine:
    			table_description = {
    							30501 : ["[1] Value text","[2] Value text","[3] Value text"],	
    							30502 : ["[1] Value text","[2] Value text","[3] Value text"],	
    							30503 : ["[1] Value text","[2] Value text","[3] Value text"],	
    							30504 : ["[1] Value text","[2] Value text","[3] Value text"],	
    							30505 : ["[1] Value text","[2] Value text","[3] Value text"],	
    							30506 : ["[1] Value text","[2] Value text","[3] Value text"],								
    			}
    			try:
    				self.tooltipItem.ClearToolTip()
    				item.SelectItem(description_refine[value_t])
    				self.tooltipItem.AutoAppendTextLine("%s" % item.GetItemName(), self.tooltipItem.TITLE_COLOR)
    				self.tooltipItem.AppendSpace(5)
    				self.tooltipItem.AutoAppendTextLine("Test value:", self.SPECIAL_POSITIVE_COLOR)			
    				for i in xrange(len(table_description[description_refine[value_t]])):
    					self.tooltipItem.AutoAppendTextLine("%s" % table_description[description_refine[value_t]][i])
    				self.tooltipItem.AlignHorizonalCenter()
    				self.tooltipItem.ShowToolTip()
    			except:
    				pass
    
    
     

     

    Yes but at ImageBox class I can't pass functions any arguments like vnum so I can't show description correctly for the item, so this is only table, of course I can storage itemdescription of item and his vnum and at tooltip just show it, but I don't know how to get icon name or vnum

    (so I can't get description from array because I don't know index of item I'm pointing and cant pass argument like this: itemImage.SAFE_SetStringEvent("MOUSE_OVER_IN", self.ShowTip(index))    ) which I'm pointing on with cursor

  5. Do you guys have idea how to get item vnum or icon name of image I point with cursor? because I can't select item at this tooltip, I can't pass any arguments through the MOUSE_OVER function yep? like itemImage.SAFE_SetStringEvent("MOUSE_OVER_IN", self.ShowTip("description")) - any ideas how to do item description of materials when I point them?

    I just need to select item, but when I point material image I can't get any informations like vnum, is there a function which can get icon name by pointing on them? (without select item)

    When I use item.getdescription directly at ShowTip function it just uses last selected item (for ex weapon or blessing scroll)

  6. 1 hour ago, PACI said:

    That's right, I haven't seen your tooltip events, so you must edit those sentences with your tooltip events' name.

    Of course I do, my tooltip functions are

     

    def ShowTip(self):
            self.txttooltip.ClearToolTip()
            self.txttooltip.AppendTextLine("Description")
            self.txttooltip.Show()
            
        def HideTip(self):
            self.txttooltip.Hide()

     

    and I use at def AppendMaterial():

     

    self.itemImage.SAFE_SetStringEvent("MOUSE_OVER_IN", self.ShowTip)
    self.itemImage.SAFE_SetStringEvent("MOUSE_OVER_OUT", self.HideTip)

     

    1 hour ago, metin2-factory said:

    Well,if you copied paste what PACI wrote of course it wouldn't work.

    Modify it to match your functions..

    
    self.itemImage.SAFE_SetStringEvent("MOUSE_OVER_IN", self.ShowTip)
    self.itemImage.SAFE_SetStringEvent("MOUSE_OVER_OUT", self.HideTip)

    Does it appear like this in your code?

    Also,make sure not to add () in the end.

    Obviously if I would do that syserr will not be clear because I don't have that defs, I said syserr is clear

    I try with chat function to see it correctly triggering those functions or not

    @update

    Okay, it doesn't trigger so it must be bad trigger on itemImage (but it should work for item material icons)

    DONE.

    #Thread solved.

    Thanks for trying to help guys, SAFE_SetStringEvent("MOUSE_OVER_OUT") works like a charm in this case :)

    @metin2-factory - it worked as described in this topic, nothing more to add

    • Love 1
  7. 44 minutes ago, PACI said:

    OnMouseOverIn() and OnMouseOverOut() are the called to run the MouseEvent functions, you can't use them to set a mouse event.

    You better use:

    
    self.itemImage.SAFE_SetStringEvent("MOUSE_OVER_IN", self.ShowToolTip)
    self.itemImage.SAFE_SetStringEvent("MOUSE_OVER_OUT", self.HideToolTip)

     

    Thanks, now syserr is clear but nothing happens when I point at image of weapon or pearl

    34b975650e4d21ef088a6d4584729dce.gif

    I just want to put tooltip item description when you point at materials of upgrading

  8. Hello,
    I'm trying to add MouseIn tooltip to ImageBox at uiRefine.py
    (I want hover tooltip with item description on refine materials icon for ex. red pearl etc)

    I try this code at AppendMaterial()


    slot = self.__MakeSlot()
            slot.SetParent(self)
            slot.SetPosition(15, self.dialogHeight)

            itemImage = self.__MakeItemImage()
            itemImage.SetParent(slot)
            item.SelectItem(vnum)
            itemImage.LoadImage(item.GetIconImageFileName())

            # self.itemImage = itemImage # this is defined somewhere else
            self.itemImage.OnMouseOverIn(self.ShowTip())
            self.itemImage.OnMouseOverOut(self.HideTip())

    I init tooltip at def Open():


    self.txttooltip = uiToolTip.ToolTip()
    self.txttooltip.HideToolTip()
    
    

    but get syserr:


    0529 13:54:42313 :: TypeError
    0529 13:54:42313 :: : 
    0529 13:54:42313 :: OnMouseOverIn() takes exactly 1 argument (2 given)
    0529 13:54:42313 :: 
    
    

    When I do self.itemImage.OnMouseOverIn = self.ShowTip()
    syserr is clear but there's no tooltip, so I think it's bad use of this function

    My defs:


    def ShowTip(self):
            self.txttooltip.ClearToolTip()
            self.txttooltip.AppendTextLine("Description")
            self.txttooltip.Show()
            
    def HideTip(self):
            self.txttooltip.Hide()
    
    

    Anyone know how to do this?
    Greetings.

  9. On 15.05.2016 at 4:52 PM, Shang said:

    self.txttooltip = uiToolTip.ToolTip()
    self.txttooltip.AutoAppendTextLine(text)
    self.txttooltip.HideToolTip()

    self.image.SAFE_SetEvent("MOUSE_OVER_IN", self.txttooltip.ShowToolTip)
    self.image.SAFE_SetEvent("MOUSE_OVER_OUT", self.txttooltip.HideToolTip)

    It doesn't work for ImageBox class, but there's OnMouseOverIn / Out - I got problem (I want to add tooltip with itemdescription of material at uiRefine.py)

    def ShowTip(self):
            self.txttooltip.ClearToolTip()
            self.txttooltip.AppendTextLine("Description")
            self.txttooltip.Show()
            
        def HideTip(self):
            self.txttooltip.Hide()

     

    At def Open(): I initiate uiTooltip for self.txttooltip and further this code:

    itemImage = self.__MakeItemImage()
            itemImage.SetParent(slot)
            item.SelectItem(vnum)
            itemImage.LoadImage(item.GetIconImageFileName())
            self.itemImage.OnMouseOverIn(self.ShowTip())
            self.itemImage.OnMouseOverOut(self.HideTip())

     

    I got error:

    TypeError
    0528 20:17:26082 :: OnMouseOverIn() takes exactly 1 argument (2 given)

     

    Anyone can help? I suck at python

  10. Hello,

    I noticed that when guild have land and leader try login to game screen freezes and there's no visible character... character, mobs etc are not loaded, just empty screen

    I do @masodikbela https://metin2dev.org/board/index.php?/topic/7718-cexpand-maximum-level/ tutorial and he change also some guild packets so I think there's problem.

    What I do?: I buy guild land and then login again to game and problem appears... just when new packets are being send.

    client syserr: 

    Spoiler

    0512 11:48:04684 :: 처리되지 않은 패킷 헤더 116, state Loading

    0512 11:48:04700 :: TPacketGCCharacterAdd2는 쓰지 않는 패킷입니다.
    0512 11:48:04700 :: Unknown packet header: 142, last: 122 120

    Anyone can fix it?

  11. 1 hour ago, Aerrow said:

    "59" in the setsk command? The highest skill level is 40, so then why everyone use 59? This is nonsense...

    It doesn't matter man, just my wrong habit.

    57 minutes ago, Shed said:

    I think its from a new system which you added , maybe its a setmotion in instancebase or something when update packet for effect comes.

     

    15 minutes ago, alondark said:

    i think you added shoulder sash system, i know this problem's fix, skype add me : bekirakdemir27

    Yes, that's true.

  12. On 11.04.2016 at 7:28 AM, Rainbow3D said:

    Open animation in PC/warrior/skill with world editor and resave .msa file. I think it's wrong time of animation

    This problem appears because of adding sash system
    here is gif: https://metin2.download/picture/p9qdxVsz4WAApsVMZPphrkEy65F8RhIo/.gif
    aura, berserk etc skills are very short... not full motion, when I do /setjob 0 and /setsk 4 59 then use aura it works like normal, but when I choose my job to BODY and now use aura it doesnt work...

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