Estetik Hayalet Sistemi

  • Konbuyu başlatan Konbuyu başlatan Admin
  • Başlangıç tarihi Başlangıç tarihi
  • Cevaplar Cevaplar 0
  • Görüntüleme Görüntüleme 42

Admin

Metin2Lobby
Yönetici
Founder
Katılım
6 Mayıs 2022
Mesajlar
52,647
Ticaret : 1 / 0 / 0
43915_357ed7f306d1e8a3b0d03324e25d8f74.png


Belki şu anda harika bir şey değil, ama ilginç olabileceğini düşünüyorum, bu yüzden gönderiyorum.




Kod:
#define ENABLE_GHOST_MODE
Kod:
//search void CActorInstance::BeginDiffuseRender() //add above #ifdef ENABLE_GHOST_MODE BOOL CActorInstance::IsGhostWeapon() {     DWORD ghost = GetPartItemID(CRaceData::PART_WEAPON);     switch (ghost)     {         case 299:         case 19:             return TRUE;     }     return FALSE; } #endif //search void CActorInstance::BeginDiffuseRender() {     STATEMANAGER.SetTextureStageState(0, D3DTSS_COLORARG1,    D3DTA_TEXTURE);     STATEMANAGER.SetTextureStageState(0, D3DTSS_COLORARG2,    D3DTA_DIFFUSE);     STATEMANAGER.SetTextureStageState(0, D3DTSS_COLOROP,    D3DTOP_MODULATE);     STATEMANAGER.SetTextureStageState(0, D3DTSS_ALPHAARG1,    D3DTA_TEXTURE);     STATEMANAGER.SetTextureStageState(0, D3DTSS_ALPHAARG2,    D3DTA_DIFFUSE);     STATEMANAGER.SetTextureStageState(0, D3DTSS_ALPHAOP,    D3DTOP_MODULATE);     STATEMANAGER.SaveRenderState(D3DRS_ALPHABLENDENABLE, FALSE);      //modify last line with #ifdef ENABLE_GHOST_MODE     STATEMANAGER.SaveRenderState(D3DRS_ALPHABLENDENABLE, IsGhostWeapon()); #else     STATEMANAGER.SaveRenderState(D3DRS_ALPHABLENDENABLE, FALSE); #endif }

Kod:
//Search         // Rendering         int                        m_iRenderMode;         D3DXCOLOR                    m_AddColor;         float                        m_fAlphaValue; //Add under #ifdef ENABLE_GHOST_MODE         BOOL                        IsGhostWeapon(); #endif

Estetik Hayalet Sistemi Nedir?

Metin2 özel sunucularında oyun deneyimini artırmak amacıyla geliştirilen Estetik Hayalet Sistemi, oyuncuların karakterlerine görsel olarak etkileyici ama aynı zamanda estetik bir hayalet efekti uygulamasını sağlar. Bu sistem, genellikle PvP odaklı sunucularda tercih edilir çünkü karakterlerin belirli durumlarda daha dikkat çekici veya mistik bir görünüm kazanması istenir. Bu yazıda, Metin2 Lobby tarafından desteklenen C++ tabanlı Estetik Hayalet Sistemi’nin nasıl geliştirildiğini, hangi kaynaklarla entegre edildiğini ve nasıl uygulanabileceğini detaylıca inceleyeceğiz.

Sistemin Amacı ve Kullanımı

Estetik Hayalet Sistem, oyuncu karakterlerinin belli bir durumda (örneğin canavar öldürme, özel görev tamamlama veya PvP zaferi sonrası) geçici ya da kalıcı olarak hayalet gibi bir efekt almasını sağlar. Bu efekt genellikle karakterin saydamlaşması, belirsizleşmesi veya hafif bir ışık hüzmesiyle kaplanması şeklinde olur. Sistem, hem oyun içi ödüllendirme mekanizmalarında hem de oyuncuların karakterlerini özelleştirme açısından oldukça popülerdir.

C++ Kaynak Kodlarıyla Geliştirme

Estetik Hayalet Sistemi, Metin2 özel sunucularında C++ dilinde yazılmış olan Game Server Source (SRC) dosyalarına entegre edilerek çalışır. Bu sistemde, karakterin görünümünü etkileyen paket yapıları, efekt yönetimi ve veritabanı (DB) bağlantısı gibi unsurlar önemli rol oynar. Sistemin doğru çalışması için game core ve db core yapılarının uyumlu olması gerekir. Ayrıca, Martysama gibi gelişmiş script yapıları da bu sistemin daha dinamik çalışmasına yardımcı olabilir.

Python GUI Entegrasyonu

Estetik Hayalet Sistemi, kullanıcı dostu bir yapıya sahip olmalıdır. Bu nedenle Py GUI veya Python GUI gibi arayüz kütüphaneleri kullanılarak admin paneli veya ayar menüsü oluşturulabilir. Böylece sunucu sahipleri, efekt türlerini, süresini ve tetiklenme koşullarını kolayca değiştirebilir. Py Root ve UIScript gibi yapılarla bu sistem daha da genişletilebilir.

Paketleme ve Dağıtım

Hazırlanan Estetik Hayalet Sistemi, bir Pack (paket) haline getirilerek diğer Metin2 geliştiricileriyle paylaşılabilir. Bu sayede farklı sunucular bu sistemi kolayca entegre edebilir. Pack yapısı, hem Client SRC hem de Server SRC ile uyumlu olacak şekilde hazırlanmalıdır. Ayrıca, Auth (kimlik doğrulama) sistemlerine de uygunluk sağlanmalıdır.

Sonuç

Estetik Hayalet Sistemi, Metin2 özel sunucularında oyun deneyimini zenginleştiren, estetik ve teknik açıdan gelişmiş bir özelliktir. C++, Python ve DB tabanlı geliştirme araçlarıyla birlikte kullanıldığında, hem güçlü hem de özelleştirilebilir bir yapı ortaya çıkar. Metin2Dev topluluğu tarafından geliştirilen bu tür sistemler, Metin2 oyununun sınırlarını zorlamakta ve daha modern bir oyun deneyimi sunmaktadır.


What is the Aesthetic Ghost System?

The Aesthetic Ghost System, developed to enhance the gaming experience on Metin2 private servers, allows visually impressive but aesthetic ghost effects to be applied to players' characters. This system is commonly preferred on PvP-oriented servers where characters need to have a more striking or mystical appearance in certain situations. In this article, we will examine in detail how the Aesthetic Ghost System, supported by Metin2 Lobby, is developed with C++ based sources and how it can be implemented.

Purpose and Usage of the System

The Aesthetic Ghost System enables player characters to temporarily or permanently acquire a ghost-like effect under specific conditions (e.g., after defeating monsters, completing special quests, or achieving PvP victories). The effect usually involves the character becoming transparent, blurred, or covered by a faint light beam. This system is popular both for in-game reward mechanisms and for customizing characters from the players' perspective.

Development with C++ Source Code

The Aesthetic Ghost System operates by integrating into the Game Server Source (SRC) files written in C++ on Metin2 private servers. In this system, package structures affecting character appearance, effect management, and database (DB) connections play important roles. For the system to function correctly, compatibility between the game core and db core structures is required. Moreover, advanced scripting structures like Martysama can help make the system work more dynamically.

Integration with Python GUI

The Aesthetic Ghost System should feature a user-friendly interface. Therefore, GUI libraries such as Py GUI or Python GUI can be used to create an admin panel or settings menu. This allows server owners to easily change effect types, durations, and triggering conditions. With structures like Py Root and UIScript, the system can be further extended.

Packaging and Distribution

The prepared Aesthetic Ghost System can be distributed as a Pack to other Metin2 developers. This way, different servers can easily integrate the system. The Pack structure must be compatible with both Client SRC and Server SRC. Additionally, compatibility with Auth (authentication) systems should also be ensured.

Conclusion

The Aesthetic Ghost System is an aesthetic and technically advanced feature that enriches the gaming experience on Metin2 private servers. When combined with development tools based on C++, Python, and DB, it results in a powerful and customizable structure. Systems like this, developed by the Metin2Dev community, push the boundaries of the Metin2 game and offer a more modern gaming experience.​
 

Şuan Bu Konuyu Görüntüleyen Kullanıcılar (Toplam : 0, Üye : 0, Misafir : 0)

Benzer konular

Geri
Üst Alt