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

Solved float division by zero

Metin2Hub New World
Co-Admin
Aug
Threads
104
1,644
1
1,878
113
Papua New Guinea

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

hello everyone, When dismantling the offline shop, I get a syserr like this;

Code:
1022 04:26:18243 :: Traceback (most recent call last):







1022 04:26:18243 :: File "uiPhaseCurtain.py", line 61, in OnUpdate







1022 04:26:18243 :: File "networkModule.py", line 150, in __ChangePhaseWindow







1022 04:26:18244 :: File "game.py", line 230, in Open







1022 04:26:18244 :: File "uiofflineshop.py", line 2795, in __init__







1022 04:26:18244 :: File "uiofflineshop.py", line 2988, in __loadWindow







1022 04:26:18245 :: File "uiofflineshop.py", line 3254, in __MakeMyShopItemsTable







1022 04:26:18245 :: File "uiofflineshop.py", line 829, in __init__







1022 04:26:18245 :: File "uiofflineshop.py", line 890, in __loadScrollbar







1022 04:26:18245 :: File "ui.py", line 4794, in __init__







1022 04:26:18245 :: File "ui.py", line 4877, in __SetAlign







1022 04:26:18245 :: File "ui.py", line 4885, in SetScrollBarLength







1022 04:26:18246 :: ZeroDivisionError



1022 04:26:18246 :: :



1022 04:26:18246 :: float division by zero



1022 04:26:18246 ::



I included both the py's of the files I removed and my own py's, thanks in advance to those who will help.
 
Solution
Let me first state that the memfuncs in avenor and the memfuncs in your file do not match, probably check them

TR:
şunu ilk başta belirteyim avenordaki memfunclar ve sizin dosyanızdaki memfunclar uyuşmuyordur büyük ihtimal bunları kontrol edin
Thank you, the problem was not caused there, I forgot to mention it under the topic. It was giving the error due to the lack of visuals, but when the missing visuals were completed, the problem disappeared.

TR;
teşekkür ederim, sorun oradan kaynaklı değildi konu altında belirtmeyi unutmuşum. Görsel eksikliğinden dolayı hatayı veriyormuş eksik görselleri tamamlayınca sorun ortadan kalktı.
Developer
Member
Feb
Threads
15
104
632
93
Avenor dan offline shop dosyalarını almış gibisiniz anladığım kadarıyla uiscript dosyasını açarak ui.py de eksik olan class ları eklemen gerekiyor
 
Developer
Member
Feb
Threads
32
120
820
93
defalarca kontrol ettim herhangi bir eksiklik göremedim :/
Let me first state that the memfuncs in avenor and the memfuncs in your file do not match, probably check them

TR:
şunu ilk başta belirteyim avenordaki memfunclar ve sizin dosyanızdaki memfunclar uyuşmuyordur büyük ihtimal bunları kontrol edin
 
Metin2Hub New World
Co-Admin
Aug
Threads
104
1,644
1
1,878
113
Papua New Guinea
Let me first state that the memfuncs in avenor and the memfuncs in your file do not match, probably check them

TR:
şunu ilk başta belirteyim avenordaki memfunclar ve sizin dosyanızdaki memfunclar uyuşmuyordur büyük ihtimal bunları kontrol edin
Thank you, the problem was not caused there, I forgot to mention it under the topic. It was giving the error due to the lack of visuals, but when the missing visuals were completed, the problem disappeared.

TR;
teşekkür ederim, sorun oradan kaynaklı değildi konu altında belirtmeyi unutmuşum. Görsel eksikliğinden dolayı hatayı veriyormuş eksik görselleri tamamlayınca sorun ortadan kalktı.
 
Solution
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