Jump to content

Official Character Details


Recommended Posts

  • Honorable Member

M2 Download Center

This is the hidden content, please
( Internal )

This is the hidden content, please
( GitHub )

 

Spoiler

174151giphy-2-.gif

 

Renewal Version:

 

Edited by Mali
  • Metin2 Dev 315
  • kekw 1
  • Eyes 7
  • Dislove 2
  • Angry 2
  • Not Good 2
  • Cry 1
  • Think 10
  • Confused 1
  • Scream 5
  • Lmao 4
  • Good 84
  • Love 21
  • Love 194

 

Link to comment
Share on other sites

  • Premium

@Mali61

Spoiler

 

Any idea?

I'm using martysama.


0115 11:53:22242 ::   File "ui.py", line 1067, in CallEvent

0115 11:53:22243 ::   File "ui.py", line 88, in __call__

0115 11:53:22243 ::   File "ui.py", line 70, in __call__

0115 11:53:22243 ::   File "uiCharacter.py", line 388, in __ClickExpandButton

0115 11:53:22243 ::   File "uiCharacterDetails.py", line 15, in __init__

0115 11:53:22244 ::   File "uiCharacterDetails.py", line 57, in __LoadScript

0115 11:53:22244 ::   File "ui.py", line 2823, in GetChild

0115 11:53:22244 :: KeyError
0115 11:53:22244 :: : 
0115 11:53:22244 :: 'label0'
0115 11:53:22244 :: 
 

 

 

252310GreenCheck.pngSolved

 

Edited by DemOnJR
  • Metin2 Dev 1
  • Love 2

plague.png.1f5de75b42146262dcd655a5a8078

Link to comment
Share on other sites

  • Honorable Member
3 minutes ago, DemOnJR said:

@Mali61

Any idea?

I'm using martysama.

 

 

They are official classes. I've added root parts now. For ymir files, you can check the official packs

  • Love 1

 

Link to comment
Share on other sites

  • Premium
6 minutes ago, xP3NG3Rx said:

Do you have the ThinBoardCircle class in your ui.py file?

Not.

  

6 minutes ago, Mali61 said:

 

They are official classes. I've added root parts now. For ymir files, you can check the official packs

Ok i will try  now.

 

252310GreenCheck.pngNow is working with the ThinBoardCircle

  

 

Edited by DemOnJR
  • Metin2 Dev 2
  • kekw 1

plague.png.1f5de75b42146262dcd655a5a8078

Link to comment
Share on other sites

  • Premium

root > uitooltip.py

Search:

  def AppendTextLine(self, text, color = FONT_COLOR, centerAlign = True):

Add above:

  def SetThinBoardSize(self, width, height = 12) :
    self.toolTipWidth = width 
    self.toolTipHeight = height

 

Fix for:

0115 15:00:41188 :: Traceback (most recent call last):

0115 15:00:41188 ::   File "ui.py", line 958, in OnMouseOverIn

0115 15:00:41188 ::   File "ui.py", line 88, in __call__

0115 15:00:41189 ::   File "ui.py", line 79, in __call__

0115 15:00:41189 ::   File "uiCharacterDetails.py", line 277, in __ButtonOverIn

0115 15:00:41189 :: AttributeError
0115 15:00:41189 :: : 
0115 15:00:41189 :: 'ToolTip' object has no attribute 'SetThinBoardSize'
0115 15:00:41189 :: 

 

Edited by DemOnJR
  • Good 1

plague.png.1f5de75b42146262dcd655a5a8078

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 months later...
  • 6 months later...

how to fix start position details?

SS: 

 

uicharacter.py

Spoiler

Find:

    def OnUpdate(self):
        self.__UpdateQuestClock()

Add under:

        if app.ENABLE_DETAILS_UI:
            if self.chDetailsWnd:
                self.UpdateDetailsPosition()

Find:

        def OnMoveWindow(self, x, y):
            if self.chDetailsWnd:
                self.chDetailsWnd.AdjustPosition(x, y)

 

Add under:

 

        def UpdateDetailsPosition(self):
            x, y = self.GetGlobalPosition()
            self.chDetailsWnd.SetPosition(x + 250, y)

 

 

Spoiler

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 1
Link to comment
Share on other sites

  • Contributor
1 hour ago, granpa123 said:

anyone know a fix for when you click the open button client disappears as checked everything and seems correct

 

Granpa123

 

 

Maybe you missing some image file, the tutorial does not include the images. It's in your syserr.txt if that the case.
Take them from here: 

This is the hidden content, please

(Otherwise still check syserr.txt, it will still writes what your error is)

Edited by TMP4
  • Metin2 Dev 40
  • Eyes 1
  • Not Good 1
  • Lmao 1
  • Good 8
  • Love 14
Link to comment
Share on other sites

  • 2 months later...
  • Honorable Member
3 hours ago, Debloat said:

Guys I'm getting this error when I click on the button. I double-checked that I did the installation correct and I have the .tga files. What might be the problem?

spacer.png

123053Ekran-Al-nt-s-.PNG

edit POINT_MAX_NUM parts for your server or remove

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

 

Link to comment
Share on other sites

  • Honorable Member
5 hours ago, Debloat said:

Strangely, without changing any code, the system works perfectly fine in release build. But in Debug, no matter what I do, it always gives that error. Do you have an idea why this might be?

 

If it cannot find the bonus, it will also give an error. Delete the things you delete on the client side, on the py side as well.

 

Link to comment
Share on other sites

  • 5 months later...
  • Active Member

The official implementation has a recursion that can cause window elements to leak.
 

#file uicharacter.py
def OnTop(self):
  if self.chDetailsWnd:
    self.chDetailsWnd.SetTop() #We are trying to raise the child window up


#file uicharacterdetails.py
def OnTop(self):
	if self.uiCharacterStatus:
		self.uiCharacterStatus.SetTop() #We are trying to raise the parent window up (After that, OnTop will be called for the parent window and we will get here again. This will continue up to the maximum recursion level)

You may have noticed that the client sometimes closes with an error when you try to open the character details window.

You can make a stupid, but working solution. Copy the SetTop function, but do not call "pWin->OnTop()" in it. And then use this function for the parent element. If you are a genius, you can try to make a IsTop function or solve this problem in some other way.

Edited by Helia01
  • Metin2 Dev 1
Link to comment
Share on other sites

  • 4 weeks later...
1 hour ago, lmaohw said:

Where is tga ? 

ı need help 

CharacterDetailsUI.__LoadScript - <type 'exceptions.RuntimeError'>:Failed to load image (filename: d:/ymir work/ui/pattern/thinboardcircle/ThinBoard_Corner_RightBottom_Circle.tga)

This is the hidden content, please

VirusTotal: 

This is the hidden content, please

The download link will be automatically removed after 30 days.

Edited by Calypso2
  • Metin2 Dev 23
  • Eyes 1
  • Dislove 1
  • Good 1
  • Love 9
Link to comment
Share on other sites

  • 3 months later...

IDK if it's bug or if has been resolved. However once you let the Character window open and teleport using Teleport ring, custom quest or just go through the Teleporter NPC, the window remains on the screen as a ghost, without a chance to close.

9491dc588bc7b741c2a1b556cef98078.png

In syserr you will see something like this: 

1214 13:20:31842 :: Traceback (most recent call last):

1214 13:20:31843 ::   File "ui.py", line 1096, in CallEvent

1214 13:20:31843 ::   File "ui.py", line 88, in __call__

1214 13:20:31843 ::   File "ui.py", line 70, in __call__

1214 13:20:31843 ::   File "uiCharacter.py", line 472, in Close

1214 13:20:31843 :: AttributeError
1214 13:20:31843 :: : 
1214 13:20:31843 :: 'NoneType' object has no attribute 'Hide'
1214 13:20:31843 :: 

To resolve... Go into the interfacemodule.py. Search in def Close(self): for:

		if self.wndCharacter:
			self.wndCharacter.Destroy()

and replace/edit to:

		if self.wndCharacter:
			if app.ENABLE_DETAILS_UI:
				self.wndCharacter.Hide()
			self.wndCharacter.Destroy()

 

Edited by Metin2 Dev
Core X - External 2 Internal
  • Love 1
Link to comment
Share on other sites

  • 4 weeks later...

Announcements



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