İzin alınıp paylaşılmıştır.
By Sanii
Ekleyenler kanıt atarsa sevinirim.
Sistemi kısaca anlatmak gerekirse locale tarafında shiningtable.txt dosyasında itemin kodunu ve yanına efekt yerlerini belirtip oyunda efekt gelmesini sağlayabilirsiniz. İyi forumlar.
Pack Tarafından Parlama Efekti Ekleme Rehberi - Sanii Tarafından
Metin2 özel sunucularında kullanıcı deneyimini artırmak adına görsel efektler oldukça önemlidir. Bu efektlerden birisi olan 'parlama efekti', karakterlerin veya objelerin dikkat çekici hale gelmesini sağlar. Bu makalede, pack dosyası üzerinden nasıl parlama efekti ekleyebileceğinizi adım adım anlatacağız. Bu işlem doğrudan sunucu kaynak koduna dokunmadan sadece client tarafında yapılabilecek basit bir işlemdir.
Parlama Efekti Nedir?
Parlama efekti, bir nesnenin üzerine geldiğinizde ya da belirli durumlarda ekranda parlayan bir ışık efekti olarak gözle görülür. Bu efekt genellikle özel itemler, karakterler ya da PvP sistemlerinde önemli roller oynar. Özellikle PvP sunucularında güçlü karakterlerin belirgin olması için kullanılır.
Gereksinimler
- Metin2 client kaynak kodları (martysama vb.)
- Python ve py root bilgisi
- Uiscript bilgisi
- Pack dosyası oluşturma ve düzenleme bilgisi
Adım Adım Kurulum
Öncelikle efekti uygulamak istediğiniz nesneye özel bir texture veya efekt dosyası tanımlamalısınız. Bu dosya genellikle .gr2 formatında olur ve client tarafında render edilir.
1. Efekt Dosyasını Hazırlama
Efekt dosyanız (.gr2) hazır olduğunda, bunu client'in erişebileceği bir konuma kopyalayın. Örneğin: root/texture/effect/blink_effect.gr2.
2. Pack Dosyasına Dahil Etme
Client tarafında efektin kullanılabilmesi için ilgili texture ve efekt dosyalarının pack dosyasına dahil edilmesi gerekir. Pack dosyası genellikle client.pack gibi bir isimdir ve sıkıştırılmış halde tutulur. Bu dosyayı açmak için uygun araçlar (örneğin: Martysama Pack Editor) kullanabilirsiniz.
3. Python Script Tarafında Tanımlama
Efektin çalışması için py root içindeki script dosyalarında uygun fonksiyon çağrısı yapılmalıdır. Bu genellikle game.py, interfaceModule.py veya özel bir efekt yönetimi yapan modülde olur. Efektin tetikleneceği durumu belirleyip, effectManager.RegisterEffect gibi bir fonksiyonla efektin yüklendiğinden emin olun.
Efekt Tetikleme Yöntemleri
Parlama efekti, bir karakterin PvP durumuna göre, bir itemin özel bir niteliğe sahip olmasına göre ya da bir GUI elemanına tıklanmasına göre tetiklenebilir. Bu tür durumlar için Py GUI ve uiscript bilgisi önemlidir. Örneğin bir item tooltip'ine tıklanınca efekt çalışacaksa, bu olayı yakalayan bir fonksiyon yazılmalıdır.
Sunucu Tarafında Entegrasyon
Eğer efekt, sunucudan gelen bir komutla tetikleniyorsa, game server[/CODE] tarafında uygun paket gönderimi yapılmalıdır. Bu sayede client, efektin ne zaman çalışacağını bilir. Bu işlem için C++ bilgisi gerekebilir.
Sonuç
Pack üzerinden parlama efekti eklemek, Metin2 özel sunucularında kullanıcı deneyimini artıran küçük ama etkili bir özelliktir. Bu rehber sayesinde hem client hem de server tarafında yapılması gereken adımları öğrendiniz. Daha fazla bilgi için Metin2Lobby sitemizi takip etmeyi unutmayın.
Adding Glow Effect via Pack File - By Sanii
In Metin2 private servers, visual effects are crucial for enhancing user experience. One of these effects, the 'glow effect', makes characters or objects more noticeable. In this article, we will explain step-by-step how to add a glow effect through the pack file. This process is a simple client-side modification that does not require touching the server source code.
What Is a Glow Effect?
A glow effect appears as a bright light animation when hovering over an object or under certain conditions. It is often used for special items, characters, or important roles in PvP systems. Particularly on PvP servers, it helps highlight powerful characters.
Requirements
- Metin2 client source codes (e.g., martysama)
- Knowledge of Python and py root
- Understanding of Uiscript
- Pack file creation and editing knowledge
Step-by-Step Installation
First, prepare a custom texture or effect file for the object you wish to apply the glow effect to. The file is usually in .gr2 format and rendered on the client side.
1. Preparing the Effect File
Once your effect file (.gr2) is ready, copy it to a location accessible by the client, such as: root/texture/effect/blink_effect.gr2.
2. Including in the Pack File
To make the effect usable on the client side, the relevant texture and effect files must be included in the pack file. The pack file is usually named something like client.pack and stored in compressed form. You can use appropriate tools (e.g., Martysama Pack Editor) to open the pack file.
3. Defining in Python Scripts
To run the effect, appropriate function calls must be made within the py root scripts. This is typically done in files like game.py, interfaceModule.py, or a custom module managing effects. Identify the condition that triggers the effect and ensure the effect is loaded using functions like effectManager.RegisterEffect.
Methods of Triggering Effects
The glow effect can be triggered based on a character's PvP status, a special attribute of an item, or clicking on a GUI element. For such scenarios, knowledge of Py GUI and uiscript is essential. For example, if the effect should play upon clicking an item tooltip, a function must be written to catch that event.
Integration with Server Side
If the effect is triggered by a command sent from the server, appropriate packet transmission must be implemented on the game server side. This allows the client to know when the effect should run. This may require C++ knowledge.
Conclusion
Adding a glow effect via pack files is a small but impactful feature that enhances user experience on Metin2 private servers. With this guide, you have learned the necessary steps on both client and server sides. For more information, don't forget to follow our site Metin2Lobby.
By Sanii
Ziyaretçiler için gizlenmiş link,görmek için üye olmalısınız!
Giriş yap veya üye ol.
Ekleyenler kanıt atarsa sevinirim.
Sistemi kısaca anlatmak gerekirse locale tarafında shiningtable.txt dosyasında itemin kodunu ve yanına efekt yerlerini belirtip oyunda efekt gelmesini sağlayabilirsiniz. İyi forumlar.
Ziyaretçiler için gizlenmiş link,görmek için üye olmalısınız!
Giriş yap veya üye ol.
Ziyaretçiler için gizlenmiş link,görmek için üye olmalısınız!
Giriş yap veya üye ol.
Pack Tarafından Parlama Efekti Ekleme Rehberi - Sanii Tarafından
Metin2 özel sunucularında kullanıcı deneyimini artırmak adına görsel efektler oldukça önemlidir. Bu efektlerden birisi olan 'parlama efekti', karakterlerin veya objelerin dikkat çekici hale gelmesini sağlar. Bu makalede, pack dosyası üzerinden nasıl parlama efekti ekleyebileceğinizi adım adım anlatacağız. Bu işlem doğrudan sunucu kaynak koduna dokunmadan sadece client tarafında yapılabilecek basit bir işlemdir.
Parlama Efekti Nedir?
Parlama efekti, bir nesnenin üzerine geldiğinizde ya da belirli durumlarda ekranda parlayan bir ışık efekti olarak gözle görülür. Bu efekt genellikle özel itemler, karakterler ya da PvP sistemlerinde önemli roller oynar. Özellikle PvP sunucularında güçlü karakterlerin belirgin olması için kullanılır.
Gereksinimler
- Metin2 client kaynak kodları (martysama vb.)
- Python ve py root bilgisi
- Uiscript bilgisi
- Pack dosyası oluşturma ve düzenleme bilgisi
Adım Adım Kurulum
Öncelikle efekti uygulamak istediğiniz nesneye özel bir texture veya efekt dosyası tanımlamalısınız. Bu dosya genellikle .gr2 formatında olur ve client tarafında render edilir.
1. Efekt Dosyasını Hazırlama
Efekt dosyanız (.gr2) hazır olduğunda, bunu client'in erişebileceği bir konuma kopyalayın. Örneğin: root/texture/effect/blink_effect.gr2.
2. Pack Dosyasına Dahil Etme
Client tarafında efektin kullanılabilmesi için ilgili texture ve efekt dosyalarının pack dosyasına dahil edilmesi gerekir. Pack dosyası genellikle client.pack gibi bir isimdir ve sıkıştırılmış halde tutulur. Bu dosyayı açmak için uygun araçlar (örneğin: Martysama Pack Editor) kullanabilirsiniz.
3. Python Script Tarafında Tanımlama
Efektin çalışması için py root içindeki script dosyalarında uygun fonksiyon çağrısı yapılmalıdır. Bu genellikle game.py, interfaceModule.py veya özel bir efekt yönetimi yapan modülde olur. Efektin tetikleneceği durumu belirleyip, effectManager.RegisterEffect gibi bir fonksiyonla efektin yüklendiğinden emin olun.
Efekt Tetikleme Yöntemleri
Parlama efekti, bir karakterin PvP durumuna göre, bir itemin özel bir niteliğe sahip olmasına göre ya da bir GUI elemanına tıklanmasına göre tetiklenebilir. Bu tür durumlar için Py GUI ve uiscript bilgisi önemlidir. Örneğin bir item tooltip'ine tıklanınca efekt çalışacaksa, bu olayı yakalayan bir fonksiyon yazılmalıdır.
Sunucu Tarafında Entegrasyon
Eğer efekt, sunucudan gelen bir komutla tetikleniyorsa, game server[/CODE] tarafında uygun paket gönderimi yapılmalıdır. Bu sayede client, efektin ne zaman çalışacağını bilir. Bu işlem için C++ bilgisi gerekebilir.
Sonuç
Pack üzerinden parlama efekti eklemek, Metin2 özel sunucularında kullanıcı deneyimini artıran küçük ama etkili bir özelliktir. Bu rehber sayesinde hem client hem de server tarafında yapılması gereken adımları öğrendiniz. Daha fazla bilgi için Metin2Lobby sitemizi takip etmeyi unutmayın.
Adding Glow Effect via Pack File - By Sanii
In Metin2 private servers, visual effects are crucial for enhancing user experience. One of these effects, the 'glow effect', makes characters or objects more noticeable. In this article, we will explain step-by-step how to add a glow effect through the pack file. This process is a simple client-side modification that does not require touching the server source code.
What Is a Glow Effect?
A glow effect appears as a bright light animation when hovering over an object or under certain conditions. It is often used for special items, characters, or important roles in PvP systems. Particularly on PvP servers, it helps highlight powerful characters.
Requirements
- Metin2 client source codes (e.g., martysama)
- Knowledge of Python and py root
- Understanding of Uiscript
- Pack file creation and editing knowledge
Step-by-Step Installation
First, prepare a custom texture or effect file for the object you wish to apply the glow effect to. The file is usually in .gr2 format and rendered on the client side.
1. Preparing the Effect File
Once your effect file (.gr2) is ready, copy it to a location accessible by the client, such as: root/texture/effect/blink_effect.gr2.
2. Including in the Pack File
To make the effect usable on the client side, the relevant texture and effect files must be included in the pack file. The pack file is usually named something like client.pack and stored in compressed form. You can use appropriate tools (e.g., Martysama Pack Editor) to open the pack file.
3. Defining in Python Scripts
To run the effect, appropriate function calls must be made within the py root scripts. This is typically done in files like game.py, interfaceModule.py, or a custom module managing effects. Identify the condition that triggers the effect and ensure the effect is loaded using functions like effectManager.RegisterEffect.
Methods of Triggering Effects
The glow effect can be triggered based on a character's PvP status, a special attribute of an item, or clicking on a GUI element. For such scenarios, knowledge of Py GUI and uiscript is essential. For example, if the effect should play upon clicking an item tooltip, a function must be written to catch that event.
Integration with Server Side
If the effect is triggered by a command sent from the server, appropriate packet transmission must be implemented on the game server side. This allows the client to know when the effect should run. This may require C++ knowledge.
Conclusion
Adding a glow effect via pack files is a small but impactful feature that enhances user experience on Metin2 private servers. With this guide, you have learned the necessary steps on both client and server sides. For more information, don't forget to follow our site Metin2Lobby.
