Merhabalar soru cevapta karşılaştım çözümü paylaşmak istedim sorun şu şekilde, great shop ekledikten sonra normal shop kapat denildiğinde kapanmıyordu.
Çözüm :
Uishop.py
Arat:
Değiştir:
GetResourcePointer:NOT SUPPORT FILE Hatası ve Çözüm Yöntemleri
Metin2 özel sunucu geliştirme sürecinde birçok geliştirici zaman zaman çeşitli hata mesajlarıyla karşılaşabilmektedir. Bu hatalardan biri olan GetResourcePointer:NOT SUPPORT FILE hatası, genellikle kaynak dosya (resource file) yüklenemediğinde veya belirli bir format desteklenmediğinde ortaya çıkar. Bu yazıda, bu hatanın neden oluştuğunu ve nasıl çözüleceğini detaylıca ele alacağız.
Hatanın Neden Kaynağı
Bu hata genellikle Metin2 client tarafında karşılaşılan bir durumdur. Özellikle .gr2, .msm, .spt gibi 3D model formatları veya texture dosyaları gibi kaynaklar yüklenirken, dosyanın biçimi desteklenmiyorsa ya da dosya bozulmuşsa bu hata görülebilir. Ayrıca, C++ kaynak kod[/COORD] tarafında yapılan değişikliklerde, resource pointer'ların doğru şekilde tanımlanmaması da bu hatayı tetikleyebilir.
Genel Nedenler
- Dosya uzantısı desteklenmiyor olabilir (örneğin .jpg yerine .tga kullanılması gerekir).
- Dosya bozuk veya eksik kopyalanmış olabilir.
- Kaynak dosya yolu yanlış tanımlanmış olabilir.
- Client tarafında resource loader eksik veya hatalı yapılandırılmış olabilir.
Çözüm Adımları
Adım 1: Dosya Formatlarını Kontrol Et
Öncelikle hata veren dosyanın uzantısının Metin2 tarafından desteklenip desteklenmediğini kontrol edin. Örneğin texture dosyaları genellikle .dds formatında olmalıdır. Model dosyaları ise [.gr2] formatında olabilir. Eğer farklı bir formatta ise, uygun formata dönüştürülmesi gerekir.
Adım 2: Dosya Yollarını Doğrula
Client tarafında kullanılan tüm kaynak dosyalar, doğru yol üzerinde yer almalıdır. uiscript veya py root içinde tanımlanan yolların, 실제 dosya konumları ile eşleştiğinden emin olun. Bu yollar genellikle pack dosyaları içinde de tanımlanabilir. Pack dosyası doğru şekilde oluşturulduysa ve dosya içeriği bozulmadıysa, hata ortadan kalkabilir.
Adım 3: Resource Pointer Tanımlarını Kontrol Et
Eğer hata client src tarafında meydana geliyorsa, C++ kodunda tanımlanan resource pointer fonksiyonlarının doğru çalışıp çalışmadığı incelenmelidir. Özellikle GetResourcePointer fonksiyonunun çağrıldığı yerde, dosya adı ve uzantısı doğru şekilde aktarılıyor mu kontrol edilmelidir.
Adım 4: Pack Dosyasını Kontrol Et
Metin2 client tarafında kaynak dosyalar genellikle pack olarak adlandırılan arşiv dosyaları içinde yer alır. Bu pack dosyası doğru şekilde derlenmiş mi? Pack dosyası içindeki dosya adları, kod tarafında çağrılan isimlerle aynı mı? Bu kontrol önemlidir. Pack dosyası yanlış derlenirse veya içindeki dosyalar bozulursa NOT SUPPORT FILE hatası alınabilir.
Adım 5: Client ve Server Uyumunu Kontrol Et
Bazen client sürümü ile sunucudan gelen dosya türleri arasında uyumsuzluk olabilir. Özellikle Martysama veya diğer Metin2Dev sistemleriyle çalışan projelerde, client ve server kaynakları senkronize edilmelidir. Sunucu tarafında kullanılan kaynaklar, client tarafından da desteklenmelidir.
Sonuç
GetResourcePointer:NOT SUPPORT FILE hatası, Metin2 özel sunucularında karşılaşılabilecek yaygın hatalardan biridir. Genellikle dosya formatı, yol tanımlaması veya kaynak yükleme mekanizmasıyla ilgilidir. Bu adımları takip ederek hatayı büyük ihtimalle çözebilirsiniz. Geliştirme sırasında dikkat edilmesi gereken en önemli konulardan biri, client-server uyumu ve resource yönetimidir. Metin2Lobby olarak sizlere daha fazla kaynak ve rehber sunmaya devam edeceğiz.
GetResourcePointer:NOT SUPPORT FILE Error and Solution Methods
During Metin2 private server development, developers may encounter various error messages from time to time. One of these errors is the GetResourcePointer:NOT SUPPORT FILE error, which typically occurs when a resource file cannot be loaded or a certain format is not supported. In this article, we will examine in detail why this error occurs and how it can be resolved.
Source of the Error
This error usually appears on the Metin2 client side. Especially when loading 3D model formats like .gr2, .msm, .spt or texture files, if the file format is not supported or the file is corrupted, this error might occur. Additionally, changes made in C++ source code may trigger this error if resource pointers are not defined correctly.
Common Causes
- The file extension may not be supported (e.g., .tga might be required instead of .jpg).
- The file may be corrupted or incompletely copied.
- The resource file path may have been incorrectly defined.
- The resource loader on the client side may be missing or misconfigured.
Solution Steps
Step 1: Check File Formats
Firstly, check whether the file extension of the problematic file is supported by Metin2. For instance, texture files should generally be in .dds format. Model files may be in [.gr2] format. If they are in a different format, they must be converted to the appropriate one.
Step 2: Verify File Paths
All resource files used on the client side must be located at the correct paths. Ensure that the paths defined in uiscript or py root match the actual file locations. These paths can also be defined within pack files. If the pack file is created correctly and its contents are not corrupted, the error may disappear.
Step 3: Check Resource Pointer Definitions
If the error occurs on the client src side, examine whether the resource pointer functions defined in C++ code are working properly. Specifically, ensure that the filename and extension are passed correctly where the GetResourcePointer function is called.
Step 4: Check the Pack File
In Metin2 clients, resource files are usually located inside archive files called packs. Is the pack file compiled correctly? Are the filenames inside the pack file the same as those called in the code? This check is important. If the pack file is compiled incorrectly or its contents are corrupted, a NOT SUPPORT FILE error may occur.
Step 5: Check Client-Server Compatibility
Sometimes there may be incompatibility between the client version and the file types coming from the server. Particularly in projects running with Martysama or other Metin2Dev systems, client and server resources must be synchronized. Resources used on the server side must also be supported by the client.
Conclusion
The GetResourcePointer:NOT SUPPORT FILE error is one of the common errors encountered in Metin2 private servers. It is usually related to file formats, path definitions, or resource loading mechanisms. By following these steps, you can most likely resolve the issue. One of the most important aspects to consider during development is client-server compatibility and resource management. At Metin2Lobby, we will continue to provide more resources and guides for you.
Çözüm :
Uishop.py
Arat:
Kod:
def OnClosePrivateShop(self): net.SendChatPacket("/close_shop"+str(self.vid)) self.OnCloseQuestionDialog() return True
Değiştir:
Kod:
def OnClosePrivateShop(self): net.SendChatPacket("/close_shop") self.OnCloseQuestionDialog() return True
GetResourcePointer:NOT SUPPORT FILE Hatası ve Çözüm Yöntemleri
Metin2 özel sunucu geliştirme sürecinde birçok geliştirici zaman zaman çeşitli hata mesajlarıyla karşılaşabilmektedir. Bu hatalardan biri olan GetResourcePointer:NOT SUPPORT FILE hatası, genellikle kaynak dosya (resource file) yüklenemediğinde veya belirli bir format desteklenmediğinde ortaya çıkar. Bu yazıda, bu hatanın neden oluştuğunu ve nasıl çözüleceğini detaylıca ele alacağız.
Hatanın Neden Kaynağı
Bu hata genellikle Metin2 client tarafında karşılaşılan bir durumdur. Özellikle .gr2, .msm, .spt gibi 3D model formatları veya texture dosyaları gibi kaynaklar yüklenirken, dosyanın biçimi desteklenmiyorsa ya da dosya bozulmuşsa bu hata görülebilir. Ayrıca, C++ kaynak kod[/COORD] tarafında yapılan değişikliklerde, resource pointer'ların doğru şekilde tanımlanmaması da bu hatayı tetikleyebilir.
Genel Nedenler
- Dosya uzantısı desteklenmiyor olabilir (örneğin .jpg yerine .tga kullanılması gerekir).
- Dosya bozuk veya eksik kopyalanmış olabilir.
- Kaynak dosya yolu yanlış tanımlanmış olabilir.
- Client tarafında resource loader eksik veya hatalı yapılandırılmış olabilir.
Çözüm Adımları
Adım 1: Dosya Formatlarını Kontrol Et
Öncelikle hata veren dosyanın uzantısının Metin2 tarafından desteklenip desteklenmediğini kontrol edin. Örneğin texture dosyaları genellikle .dds formatında olmalıdır. Model dosyaları ise [.gr2] formatında olabilir. Eğer farklı bir formatta ise, uygun formata dönüştürülmesi gerekir.
Adım 2: Dosya Yollarını Doğrula
Client tarafında kullanılan tüm kaynak dosyalar, doğru yol üzerinde yer almalıdır. uiscript veya py root içinde tanımlanan yolların, 실제 dosya konumları ile eşleştiğinden emin olun. Bu yollar genellikle pack dosyaları içinde de tanımlanabilir. Pack dosyası doğru şekilde oluşturulduysa ve dosya içeriği bozulmadıysa, hata ortadan kalkabilir.
Adım 3: Resource Pointer Tanımlarını Kontrol Et
Eğer hata client src tarafında meydana geliyorsa, C++ kodunda tanımlanan resource pointer fonksiyonlarının doğru çalışıp çalışmadığı incelenmelidir. Özellikle GetResourcePointer fonksiyonunun çağrıldığı yerde, dosya adı ve uzantısı doğru şekilde aktarılıyor mu kontrol edilmelidir.
Adım 4: Pack Dosyasını Kontrol Et
Metin2 client tarafında kaynak dosyalar genellikle pack olarak adlandırılan arşiv dosyaları içinde yer alır. Bu pack dosyası doğru şekilde derlenmiş mi? Pack dosyası içindeki dosya adları, kod tarafında çağrılan isimlerle aynı mı? Bu kontrol önemlidir. Pack dosyası yanlış derlenirse veya içindeki dosyalar bozulursa NOT SUPPORT FILE hatası alınabilir.
Adım 5: Client ve Server Uyumunu Kontrol Et
Bazen client sürümü ile sunucudan gelen dosya türleri arasında uyumsuzluk olabilir. Özellikle Martysama veya diğer Metin2Dev sistemleriyle çalışan projelerde, client ve server kaynakları senkronize edilmelidir. Sunucu tarafında kullanılan kaynaklar, client tarafından da desteklenmelidir.
Sonuç
GetResourcePointer:NOT SUPPORT FILE hatası, Metin2 özel sunucularında karşılaşılabilecek yaygın hatalardan biridir. Genellikle dosya formatı, yol tanımlaması veya kaynak yükleme mekanizmasıyla ilgilidir. Bu adımları takip ederek hatayı büyük ihtimalle çözebilirsiniz. Geliştirme sırasında dikkat edilmesi gereken en önemli konulardan biri, client-server uyumu ve resource yönetimidir. Metin2Lobby olarak sizlere daha fazla kaynak ve rehber sunmaya devam edeceğiz.
GetResourcePointer:NOT SUPPORT FILE Error and Solution Methods
During Metin2 private server development, developers may encounter various error messages from time to time. One of these errors is the GetResourcePointer:NOT SUPPORT FILE error, which typically occurs when a resource file cannot be loaded or a certain format is not supported. In this article, we will examine in detail why this error occurs and how it can be resolved.
Source of the Error
This error usually appears on the Metin2 client side. Especially when loading 3D model formats like .gr2, .msm, .spt or texture files, if the file format is not supported or the file is corrupted, this error might occur. Additionally, changes made in C++ source code may trigger this error if resource pointers are not defined correctly.
Common Causes
- The file extension may not be supported (e.g., .tga might be required instead of .jpg).
- The file may be corrupted or incompletely copied.
- The resource file path may have been incorrectly defined.
- The resource loader on the client side may be missing or misconfigured.
Solution Steps
Step 1: Check File Formats
Firstly, check whether the file extension of the problematic file is supported by Metin2. For instance, texture files should generally be in .dds format. Model files may be in [.gr2] format. If they are in a different format, they must be converted to the appropriate one.
Step 2: Verify File Paths
All resource files used on the client side must be located at the correct paths. Ensure that the paths defined in uiscript or py root match the actual file locations. These paths can also be defined within pack files. If the pack file is created correctly and its contents are not corrupted, the error may disappear.
Step 3: Check Resource Pointer Definitions
If the error occurs on the client src side, examine whether the resource pointer functions defined in C++ code are working properly. Specifically, ensure that the filename and extension are passed correctly where the GetResourcePointer function is called.
Step 4: Check the Pack File
In Metin2 clients, resource files are usually located inside archive files called packs. Is the pack file compiled correctly? Are the filenames inside the pack file the same as those called in the code? This check is important. If the pack file is compiled incorrectly or its contents are corrupted, a NOT SUPPORT FILE error may occur.
Step 5: Check Client-Server Compatibility
Sometimes there may be incompatibility between the client version and the file types coming from the server. Particularly in projects running with Martysama or other Metin2Dev systems, client and server resources must be synchronized. Resources used on the server side must also be supported by the client.
Conclusion
The GetResourcePointer:NOT SUPPORT FILE error is one of the common errors encountered in Metin2 private servers. It is usually related to file formats, path definitions, or resource loading mechanisms. By following these steps, you can most likely resolve the issue. One of the most important aspects to consider during development is client-server compatibility and resource management. At Metin2Lobby, we will continue to provide more resources and guides for you.
