Jump to content

Font & ThinBoard bug


Recommended Posts

  • Former Staff

Hello guys ...

 

i got little problem

see this line on the left side of the thinboard this is the problem ... this problem is with the quests too T_T

jpx6Ehj.jpg?1

 

now about the font problem

the font sometimes is hard to read  i mean the letters are corrupted 

 

sorry for bad english

    FlyGun :)

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

  • Replies 19
  • Created
  • Last Reply

Top Posters In This Topic

  • Former Staff

Or your client, because my vc sucks and I don't have that kind of problem.

maybe the client too i'm using 40k test client .. and i'm cleaning it atm

 

Thtas just failed coordinates in Thinboard class. Show me your ui.py please

oh ok ... thanks

it's about 3k lines ... so i can't copy it here

https://mega.co.nz/#!XRlxEbzS!MSH_5imxkui4QE42M1FZZB470DH7-t6bT1c-DHBWdz4

class ThinBoard

class ThinBoard(Window):

	CORNER_WIDTH = 16
	CORNER_HEIGHT = 16
	LINE_WIDTH = 16
	LINE_HEIGHT = 16
	BOARD_COLOR = grp.GenerateColor(0.0, 0.0, 0.0, 0.51)

	LT = 0
	LB = 1
	RT = 2
	RB = 3
	L = 0
	R = 1
	T = 2
	B = 3

	def __init__(self, layer = "UI"):
		Window.__init__(self, layer)

		CornerFileNames = [ "d:/ymir work/ui/pattern/ThinBoard_Corner_"+dir+".tga" for dir in ["LeftTop","LeftBottom","RightTop","RightBottom"] ]
		LineFileNames = [ "d:/ymir work/ui/pattern/ThinBoard_Line_"+dir+".tga" for dir in ["Left","Right","Top","Bottom"] ]

		self.Corners = []
		for fileName in CornerFileNames:
			Corner = ExpandedImageBox()
			Corner.AddFlag("attach")
			Corner.AddFlag("not_pick")
			Corner.LoadImage(fileName)
			Corner.SetParent(self)
			Corner.SetPosition(0, 0)
			Corner.Show()
			self.Corners.append(Corner)

		self.Lines = []
		for fileName in LineFileNames:
			Line = ExpandedImageBox()
			Line.AddFlag("attach")
			Line.AddFlag("not_pick")
			Line.LoadImage(fileName)
			Line.SetParent(self)
			Line.SetPosition(0, 0)
			Line.Show()
			self.Lines.append(Line)

		Base = Bar()
		Base.SetParent(self)
		Base.AddFlag("attach")
		Base.AddFlag("not_pick")
		Base.SetPosition(self.CORNER_WIDTH, self.CORNER_HEIGHT)
		Base.SetColor(self.BOARD_COLOR)
		Base.Show()
		self.Base = Base

		self.Lines[self.L].SetPosition(0, self.CORNER_HEIGHT)
		self.Lines[self.T].SetPosition(self.CORNER_WIDTH, 0)

	def __del__(self):
		Window.__del__(self)

	def SetSize(self, width, height):

		width = max(self.CORNER_WIDTH*2, width)
		height = max(self.CORNER_HEIGHT*2, height)
		Window.SetSize(self, width, height)

		self.Corners[self.LB].SetPosition(0, height - self.CORNER_HEIGHT)
		self.Corners[self.RT].SetPosition(width - self.CORNER_WIDTH, 0)
		self.Corners[self.RB].SetPosition(width - self.CORNER_WIDTH, height - self.CORNER_HEIGHT)
		self.Lines[self.R].SetPosition(width - self.CORNER_WIDTH, self.CORNER_HEIGHT)
		self.Lines[self.B].SetPosition(self.CORNER_HEIGHT, height - self.CORNER_HEIGHT)

		verticalShowingPercentage = float((height - self.CORNER_HEIGHT*2) - self.LINE_HEIGHT) / self.LINE_HEIGHT
		horizontalShowingPercentage = float((width - self.CORNER_WIDTH*2) - self.LINE_WIDTH) / self.LINE_WIDTH
		self.Lines[self.L].SetRenderingRect(0, 0, 0, verticalShowingPercentage)
		self.Lines[self.R].SetRenderingRect(0, 0, 0, verticalShowingPercentage)
		self.Lines[self.T].SetRenderingRect(0, 0, horizontalShowingPercentage, 0)
		self.Lines[self.B].SetRenderingRect(0, 0, horizontalShowingPercentage, 0)
		self.Base.SetSize(width - self.CORNER_WIDTH*2, height - self.CORNER_HEIGHT*2)

	def ShowInternal(self):
		self.Base.Show()
		for wnd in self.Lines:
			wnd.Show()
		for wnd in self.Corners:
			wnd.Show()

	def HideInternal(self):
		self.Base.Hide()
		for wnd in self.Lines:
			wnd.Hide()
		for wnd in self.Corners:
			wnd.Hide()

Link to comment
Share on other sites

  • Active Member

Hello guys ...

 

i got little problem

see this line on the left side of the thinboard this is the problem ... this problem is with the quests too T_T

jpx6Ehj.jpg?1

 

now about the font problem

the font sometimes is hard to read  i mean the letters are corrupted 

 

sorry for bad english

    FlyGun :)

That is becouse you graphics, i've got that too yesterday and tried any client and after i rebooted my pc the problem got solved :)

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

  • Former Staff

 

Hello guys ...

 

i got little problem

see this line on the left side of the thinboard this is the problem ... this problem is with the quests too T_T

jpx6Ehj.jpg?1

 

now about the font problem

the font sometimes is hard to read  i mean the letters are corrupted 

 

sorry for bad english

    FlyGun :)

That is becouse you graphics, i've got that too yesterday and tried any client and after i rebooted my pc the problem got solved :)

 

i tried every thing :) i changed the screen with 32" led screen and same problem :/

... and the problem is now with one open window :/

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

  • Active Member

 

 

Hello guys ...

 

i got little problem

see this line on the left side of the thinboard this is the problem ... this problem is with the quests too T_T

jpx6Ehj.jpg?1

 

now about the font problem

the font sometimes is hard to read  i mean the letters are corrupted 

 

sorry for bad english

    FlyGun :)

That is becouse you graphics, i've got that too yesterday and tried any client and after i rebooted my pc the problem got solved :)

 

i tried every thing :) i changed the screen with 32" led screen and same problem :/

... and the problem is now with one open window :/

 

Video card not monitor omg.. 

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

  • Former Staff

 

 

 

Hello guys ...

 

i got little problem

see this line on the left side of the thinboard this is the problem ... this problem is with the quests too T_T

jpx6Ehj.jpg?1

 

now about the font problem

the font sometimes is hard to read  i mean the letters are corrupted 

 

sorry for bad english

    FlyGun :)

That is becouse you graphics, i've got that too yesterday and tried any client and after i rebooted my pc the problem got solved :)

 

i tried every thing :) i changed the screen with 32" led screen and same problem :/

... and the problem is now with one open window :/

 

Video card not monitor omg.. 

 

lol i know i just gave an example :P ...

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

  • 7 years later...
  • Premium

Having the same problem too. Running Windows 10 21H2 build 19044.1645. It seems that on older versions it doesn't happen

 

//Edit

 

The problem seems to be from the settings of the graphics card driver. My solution was letting the application decide what to choose.
In my case, i'm using NVIDIA. The fix is easy to do through the nvidia's control panel:spacer.png

 

Now, you can either use "Let the 3D Application decide" or "Use my preference emphasizing" and scroll to Quality.

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

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.