• 🎉 Hey there! I've just launched my brand new server voting platform — Metin2 P Servers 🚀

Not answered Tweeny animation bugs

Member
Jun
Threads
4
96
1
2
8

AD: Mt2009 - Mobile & PC - 30 January 2026 CHECK THE PRESENTATION!

Hi,

I have a bug with Tweeny Animation..

Problem #1:
Nearly every window animation work smooth but only windows with items like shop, safebox, offlineshop are glitching.. (inventory works)
They should close smoothly like other windows but instead of smooth close it glitch like it open,close,open,close,open,close.. below is .gif with exact problem.
It may not be easy to see on that .gif, but if someone uses the system they know.


Problem #2:
Second problem is with auto close windows as shop.. when you get far it wont close a window.

Decreasing or increasing this value do nothing.. bug will be still there..
C++:
        if (IsFlag(FLAG_ANIMATED_BOARD))
        {
            if (m_bShow)
            {
                m_sizeAnimation = tweeny::from(1.0f)
                    .to(0.0f)
                    .during(120)

Anyone find some fix for any of these problems?

Thanks in advance
 
Last edited:
Metin2Hub Bot
M2Hub Bot
Feb
Threads
66
2,380
2
1,307
113
Hi,

I have a bug with Tweeny Animation.. nearly every window animation work smooth but only windows with items like shop, safebox, offlineshop are glitching.. (inventory works)
They should close smoothly like other windows but instead of smooth close it glitch like it open,close,open,close,open,close.. below is .gif with exact problem.
It may not be easy to see on that .gif, but if someone uses the system they know.


Second problem is with auto close windows as shop.. when you get far it wont close a window.

Decreasing or increasing this value do nothing.. bug will be still there..
[CODE lang="cpp" title="PythonWindow.cpp" highlight="7"] if (IsFlag(FLAG_ANIMATED_BOARD))
{
if (m_bShow)
{
m_sizeAnimation = tweeny::from(1.0f)
.to(0.0f)
.during(120)[/CODE]

Anyone find some fix for any of these problems?

Thanks in advance

Hello dear user,

Your post will be under surveillance by bots for the next few hours.

Forum description : Metin2 private server, Metin2 download, Metin2 support, Metin2 Forum, Metin2 Pvp Servers, Errors, Bugs, Requests, Metin2 Pvp Forum, Everything About Metin2.
 
Member
Jul
Threads
3
258
1
134
43
uishop.py

# Add under the lowest part of "import" lines

TEXT_TIME = 3

# There are 2 pieces of code to add under 2

self.tooltipItem = 0

self.textCloseText = 0

# Completely change the code block

def OnUpdate(self):
if app.GetTime() >= self.textCloseText:
USE_SHOP_LIMIT_RANGE = 1000
(x, y, z) = player.GetMainCharacterPosition()
if abs(x - self.xShopStart) > USE_SHOP_LIMIT_RANGE or abs(y - self.yShopStart) > USE_SHOP_LIMIT_RANGE:
self.textCloseText = app.GetTime() + TEXT_TIME
self.Close()
 
Member
Jun
Threads
4
96
1
2
8
uishop.py

# Add under the lowest part of "import" lines

TEXT_TIME = 3

# There are 2 pieces of code to add under 2

self.tooltipItem = 0

self.textCloseText = 0

# Completely change the code block

def OnUpdate(self):
if app.GetTime() >= self.textCloseText:
USE_SHOP_LIMIT_RANGE = 1000
(x, y, z) = player.GetMainCharacterPosition()
if abs(x - self.xShopStart) > USE_SHOP_LIMIT_RANGE or abs(y - self.yShopStart) > USE_SHOP_LIMIT_RANGE:
self.textCloseText = app.GetTime() + TEXT_TIME
self.Close()
Thanks mate, this fixed Problem #2 👍 only Problem #1 still remaining
 
Member
Jun
Threads
0
102
1
18
It has something to do with net.SendShopEndPacket in uishop.py...

I dont know how to solve it
If ure need the fix there is how:
it fix the 2 problem (if you have some offline shop we have to cook somewhere else)
uishop.py:
you have to replace the single self.Hide() in def Close(self) with:

if app.GetTime() >= self.textCloseText:
self.textCloseText = app.GetTime() + TEXT_TIME
self.Hide()

and replace def OnUpdate(self):

def OnUpdate(self):
USE_SHOP_LIMIT_RANGE = 1000

(x, y, z) = player.GetMainCharacterPosition()
if abs(x - self.xShopStart) > USE_SHOP_LIMIT_RANGE or abs(y - self.yShopStart) > USE_SHOP_LIMIT_RANGE:
self.Close()
 
Last edited:
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock