Statünün 90 verilmesine rağmen karakter alanındaki statülerin tam dolmamasını görmüşsünüzdür mutlaka bu gün size bunun nasıl düzeltileceğini anlatacağım.
Root/introselect.py Açılır
Aratılır:
self.destGauge =[
float(valueHTH)/380,
float(valueINT)/380,
float(valueSTR)/380,
float(valueDEX)/380
]
Değiştirilir:
self.destGauge =[
float(valueHTH)/90, # max statünüze göre değiştirebilrisiniz.
float(valueINT)/90, # max statünüze göre değiştirebilrisiniz.
float(valueSTR)/90, # max statünüze göre değiştirebilrisiniz.
float(valueDEX)/90 # max statünüze göre değiştirebilrisiniz.
]
Root/introcreate.py Açılır
Aratılır:
float(self.stat[0])/float(statSummary),
float(self.stat[1])/float(statSummary),
float(self.stat[2])/float(statSummary),
float(self.stat[3])/float(statSummary),
Değiştirilir:
float(self.stat[0])/90,# max statünüze göre değiştirebilrisiniz.
float(self.stat[1])/90,# max statünüze göre değiştirebilrisiniz.
float(self.stat[2])/90,# max statünüze göre değiştirebilrisiniz.
float(self.stat[3])/90,# max statünüze göre değiştirebilrisiniz.
Hata Alırsanız Mesaj Bırakınız Bakarız.
DipNot : Konu Alıntıdır.
DipNot : Kodlar Tab Ayarlı Değildir.
Root/introselect.py Açılır
Aratılır:
self.destGauge =[
float(valueHTH)/380,
float(valueINT)/380,
float(valueSTR)/380,
float(valueDEX)/380
]
Değiştirilir:
self.destGauge =[
float(valueHTH)/90, # max statünüze göre değiştirebilrisiniz.
float(valueINT)/90, # max statünüze göre değiştirebilrisiniz.
float(valueSTR)/90, # max statünüze göre değiştirebilrisiniz.
float(valueDEX)/90 # max statünüze göre değiştirebilrisiniz.
]
Root/introcreate.py Açılır
Aratılır:
float(self.stat[0])/float(statSummary),
float(self.stat[1])/float(statSummary),
float(self.stat[2])/float(statSummary),
float(self.stat[3])/float(statSummary),
Değiştirilir:
float(self.stat[0])/90,# max statünüze göre değiştirebilrisiniz.
float(self.stat[1])/90,# max statünüze göre değiştirebilrisiniz.
float(self.stat[2])/90,# max statünüze göre değiştirebilrisiniz.
float(self.stat[3])/90,# max statünüze göre değiştirebilrisiniz.
Hata Alırsanız Mesaj Bırakınız Bakarız.
DipNot : Konu Alıntıdır.
DipNot : Kodlar Tab Ayarlı Değildir.
Karakter Gauge Hata Giderme Rehberi
Metin2 özel sunucularında karşılaşılan en yaygın hatalardan birisi karakter gauge (can ve mana çubuğu) sorunlarıdır.
Bu hata, oyuncunun can ve mana çubuğunun doğru şekilde görüntülenmemesi ya da tamamen görünmememesi şeklinde ortaya çıkar.
Hatanın temel nedeni genellikle UI skriptlerindeki eksik veya yanlış yapılandırmalardır.
Öncelikle hatayı tespit edebilmek için client tarafında bulunan 'uiscript' dosyasının kontrol edilmesi gerekir.
Genelde 'playerinfo.py', 'game.py' gibi dosyalarda gauge elementlerinin tanımları yer alır.
Eğer bu dosyalarda eksik veya yanlış tanımlamalar varsa, karakter gauge hataları oluşabilir.
Bu durumda yapılması gereken ilk adım, gauge elementlerinin doğru şekilde tanımlandığından emin olmaktır.
Ayrıca bazı özel sunucularda gauge sistemine ekstra modifikasyonlar yapılmış olabilir.
Bu gibi durumlarda, gauge elementlerinin doğru çalışması için ilgili C++ veya Python sistemlerinin de kontrol edilmesi gerekir.
Hata, client tarafında değilse, server-side (auth veya game) tarafında da bir problem olabilir.
Özellikle can ve mana değerlerinin doğru şekilde client'a gönderilip gönderilmemesi önemlidir.
Server-side'da 'char.cpp', 'packet.h', 'entity.h' gibi kaynak dosyalarında gauge ile ilgili veri aktarımlarını kontrol etmek gerekir.
Geliştiriciler, gauge sistemini test etmeden önce her zaman 'compile' işlemini doğru yaptığından emin olmalıdır.
Compile sırasında hata alınmamasına rağmen runtime esnasında gauge eksikliği görülebilir.
Bu durumda log dosyaları incelenmelidir.
Loglarda 'gauge not found' ya da benzeri hatalar varsa, muhtemelen UI element isimleri yanlış yazılmıştır.
Yeni başlayan geliştiriciler genellikle 'gauge' isimlerini küçük harfle yazarken büyük harfe dikkat etmezler.
Bu tür durumlarda, XML veya UI scriptlerinde büyük-küçük harf duyarlılığına dikkat edilmelidir.
Ayrıca bazı özel sunucular, gauge sistemini Python GUI ile genişletmiş olabilir.
Bu gibi durumlarda PyRoot klasöründe bulunan GUI dosyaları da kontrol edilmelidir.
PyGUI ile yapılan özelleştirmelerde, gauge elementi yanlış sınıfa atanmış olabilir.
Bu tür hatalar için debugging yöntemleri kullanılmalıdır.
Python tarafında 'print' komutları ile değerlerin geçip geçmediği test edilebilir.
Ayrıca, gauge sistemine entegre edilen herhangi bir 'pack' veya 'system' dosyası da hata kaynağı olabilir.
Bu yüzden, özel sunucuya eklenen tüm ek modül ve sistemler gözden geçirilmelidir.
Sonuç olarak, gauge bug fix işlemi hem client hem de server tarafında titiz bir şekilde yapılmalıdır.
Doğru hata tespiti ve uygun çözümle bu sorunlar kolayca aşılabilir.
Daha fazla Metin2 geliştirme rehberi için Metin2Lobby'i takip edin.
Character Gauge Bug Fix Guide
One of the most common issues encountered in Metin2 private servers is character gauge (HP and MP bar) problems.
This error manifests itself as the player's HP and MP bars not displaying correctly or not appearing at all.
The root cause of this issue usually lies in missing or incorrect configurations within UI scripts.
Firstly, the 'uiscript' file located on the client side must be checked to detect the error.
Files such as 'playerinfo.py', 'game.py' typically contain gauge element definitions.
If there are incomplete or incorrect definitions in these files, character gauge errors may occur.
The first step should be ensuring that gauge elements are defined properly.
Additionally, some private servers might have additional modifications made to the gauge system.
In such cases, related C++ or Python systems must also be checked for the gauge elements to function properly.
If the issue is not on the client side, there might be a problem on the server-side (auth or game).
Especially important is whether HP and MP values are being sent correctly to the client.
On the server-side, data transfers related to gauges should be checked in source files like 'char.cpp', 'packet.h', 'entity.h'.
Developers should always ensure they compile correctly before testing the gauge system.
Even if no errors are received during compilation, gauge deficiencies may appear during runtime.
In such cases, log files should be examined.
If logs show errors such as 'gauge not found', likely the UI element names are misspelled.
New developers often neglect case sensitivity while writing 'gauge' names in lowercase letters.
In such cases, case sensitivity in XML or UI scripts must be carefully considered.
Also, some private servers may have extended the gauge system with Python GUI.
In such cases, GUI files in the PyRoot folder should also be checked.
In customizations made with PyGUI, the gauge element might be assigned to the wrong class.
Debugging methods should be used in such error cases.
Values can be tested using 'print' commands in Python to see if they are passing through correctly.
Moreover, any 'pack' or 'system' files integrated into the gauge system can also be a source of error.
Therefore, all added modules and systems to the private server should be reviewed.
In conclusion, the gauge bug fix process must be performed carefully on both client and server sides.
With proper error detection and appropriate solutions, these issues can be easily resolved.
For more Metin2 development guides, follow Metin2Lobby.
