Highlight sistemi var ise yapınız bu işlemi
PetSystem.cpp Açınız
Aratın
Değiştir.. veyada Kendine göre düzenle
uiInventory.py
Açın
Aratın
Kod bloğu içinde bulun ve
Üstüne yapıştırın
uiinventory.py yapamayanlar bunu yapsınlar
Metin2 Lobby olarak Metin2 özel sunucu geliştirme dünyasında öncü adımlarla yürüyoruz. Bu bağlamda GF v17.5 güncellemesi ile gelen Pet ikon efekti özelliği, özellikle C++Py tabanlı sistemlerde geliştirilen projeler için büyük bir yenilik olarak dikkat çekiyor. Bu yazıda, bu yeni efektin nasıl entegre edileceği, hangi dosyalarda değişiklik yapılması gerektiği ve Python GUI üzerinden nasıl kontrol edilebileceği konularına değineceğiz.
Pet Sistemi ve İkon Efekti Nedir?
Metin2 oyununda Pet sistemleri uzun süredir oyuncuların favori özelliklerinden biridir. Yeni güncelleme ile birlikte, pet ikonlarının üzerine özel efektler eklenebilmesi sağlandı. Bu sayede petler daha dikkat çekici hale geliyor ve oyuncuların ilgisini artırıyor. Bu efektler genellikle C++ tarafında game core üzerinde çalıştırılır ve client src tarafında da görsel olarak desteklenir.
Geliştirme Adımları
Pet ikon efekti sisteminin aktif edilmesi için birkaç temel adım atılması gerekir:
- Game server programming seviyesinde PetManager sınıfında gerekli değişiklikler yapılmalıdır.
- Client src kısmında uiscript dosyasında pet ikonları için efekt render işlemleri tanımlanmalıdır.
- PyRoot üzerinden py gui ile efekt animasyonları yönetilmelidir.
Önemli Dosya ve Fonksiyonlar
Aşağıdaki dosyalar bu sistemin entegrasyonunda kritik rol oynar:
- pet_manager.cpp: Pet verilerinin tutulduğu ve efekt yönetiminin başlatıldığı yerdir.
- icon_window.py: Pet ikonunun ekranda gösterildiği ve efekt animasyonunun başlatıldığı Python dosyasıdır.
- packet.h / packet.cpp: Sunucu ile istemci arasında efekt bilgilerinin taşındığı paketler tanımlanır.
C++Py Entegrasyonu
C++Py sistemlerde Pet ikon efekti entegrasyonu oldukça verimlidir. PyRoot üzerinden efekt animasyonları başlatılırken, C++ tarafında bu efektlerin tetiklenmesi sağlanır. Bu sayede hem performans hem de stabilite açısından güçlü bir yapı elde edilir. MartySama gibi gelişmiş Metin2Dev yapılarında bu entegrasyon daha kolay hale getirilmiştir.
Sunucu Tarafında Paket Tanımı
Game sunucusu ile Auth sunucusu arasında pet efekt verisi taşınması için özel paket tanımlamaları yapılır. Bu paketler packet.h dosyasında tanımlanır ve packet.cpp içinde işlenir. Oyuncu bir pet efekti tetiklediğinde, bu bilgi sunucuya gönderilir ve diğer oyunculara da yansıtılmak üzere yayınlanır.
Görsel Efekt Yönetimi
PyGui ile efekt animasyonları kullanıcı arayüzüne entegre edilir. uiscript dosyasında pet ikonuna özel animasyon tanımlamaları yapılır. Texture ve Effect sınıfları kullanılarak efektler çizilir. Ayrıca Timer fonksiyonları ile efekt süresi kontrol edilir.
Sonuç
Metin2 Lobby olarak, Metin2 özel sunucularında Pet ikon efekti gibi gelişmiş sistemlerin entegrasyonuna yardımcı olmaya devam ediyoruz. GF v17.5 güncellemesiyle birlikte gelen bu özellik, hem C++ hem de Python tarafında detaylı entegrasyon gerektirir. Bu sayede sunucularınızda benzersiz bir deneyim sunabilirsiniz.
Metin2 Lobby continues to take pioneering steps in the world of Metin2 private server development. In this context, the new Pet icon effect feature introduced with the GF v17.5 update stands out as a major innovation for projects developed on C++Py based systems. In this article, we will discuss how this new effect can be integrated, which files require modifications, and how it can be controlled via Python GUI.
What is the Pet System and Icon Effect?
Pet systems have long been one of the favorite features among players in the Metin2 game. With the latest update, special effects can now be added to pet icons, making pets more eye-catching and increasing player engagement. These effects typically run on the C++ side within the game core and are visually supported on the client src side.
Development Steps
To activate the Pet icon effect system, several key steps must be taken:
- Modifications should be made to the PetManager class at the game server programming level.
- In the client src, effect rendering operations for pet icons must be defined in the uiscript file.
- Effect animations should be managed through py gui via PyRoot.
Important Files and Functions
The following files play a critical role in integrating this system:
- pet_manager.cpp: Where pet data is stored and effect management is initiated.
- icon_window.py: The Python file where the pet icon is displayed and effect animations are triggered.
- packet.h / packet.cpp: Packets that carry effect information between the server and client are defined here.
C++Py Integration
Integrating Pet icon effect in C++Py systems is highly efficient. While effect animations are initiated via PyRoot, triggering these effects on the C++ side ensures stability and performance. This integration has been simplified in advanced Metin2Dev structures like MartySama.
Packet Definition on Server Side
Custom packet definitions are created to transmit pet effect data between the Game and Auth servers. These packets are defined in the packet.h file and processed inside packet.cpp. When a player triggers a pet effect, this information is sent to the server and broadcasted to other players.
Visual Effect Management
Effect animations are integrated into the user interface via PyGui. Special animation definitions for the pet icon are made in the uiscript file. Effects are drawn using Texture and Effect classes, and their duration is controlled using Timer functions.
Conclusion
Metin2 Lobby continues to assist in integrating advanced systems like Pet icon effect into Metin2 private servers. The feature introduced with the GF v17.5 update requires detailed integration on both the C++ and Python sides, allowing you to offer a unique experience on your servers.
PetSystem.cpp Açınız
Kod:
void CPetActor::SetSummonItem(LPITEM pItem)
Kod:
void CPetActor::SetSummonItem(LPITEM pItem) { if (NULL == pItem) { LPITEM pSummonItem = ITEM_MANAGER::instance().FindByVID(m_dwSummonItemVID); if (NULL != pSummonItem) pSummonItem->SetSocket(1, FALSE); m_dwSummonItemVID = 0; m_dwSummonItemVnum = 0; return; } pItem->SetSocket(1, TRUE); m_dwSummonItemVID = pItem->GetVID(); m_dwSummonItemVnum = pItem->GetVnum(); }
Değiştir.. veyada Kendine göre düzenle
uiInventory.py
Açın
Kod:
def RefreshBagSlotWindow(self):
Kod:
self.wndItem.RefreshSlot() if self.wndBelt: self.wndBelt.RefreshSlot()
Kod:
elif itemVnum >= 53001 and itemVnum <= 53256: metinSocket = [player.GetItemMetinSocket(globalSlotNumber, j) for j in xrange(player.METIN_SOCKET_MAX_NUM)]# <!> globalSlotNumber may be different <!> isActivated = 0 != metinSocket[1] if isActivated: self.wndItem.ActivateSlot(i) else: self.wndItem.DeactivateSlot(i)
Üstüne yapıştırın
Ziyaretçiler için gizlenmiş link,görmek için üye olmalısınız!
Giriş yap veya üye ol.
<blockquote data-attributes="" data-quote="" data-source="" class="bbCodeBlock bbCodeBlock--expandable bbCodeBlock--quote js-expandWatch is-expandable">
Kod:
DWORD CPetActor::Summon(const char* petName, LPITEM pSummonItem, bool bSpawnFar) { [...] #ifdef CT_WORKS pSummonItem->SetSocket(1,true); pSummonItem->Lock(true); #endif }
Kod:
void CPetActor::Unsummon() { if (true == this->IsSummoned()) { // 버프 삭제 this->ClearBuff(); #ifdef CT_WORKS LPITEM smItem = ITEM_MANAGER::instance().FindByVID(m_dwSummonItemVID); if(smItem){ smItem->SetSocket(1,false); smItem->Lock(false); } #endif this->SetSummonItem(NULL); if (NULL != m_pkOwner){ m_pkOwner->ComputePoints(); } if (NULL != m_pkChar) M2_DESTROY_CHARACTER(m_pkChar); m_pkChar = 0; m_dwVID = 0; } }
uiinventory.py yapamayanlar bunu yapsınlar
Ziyaretçiler için gizlenmiş link,görmek için üye olmalısınız!
Giriş yap veya üye ol.
Metin2 Lobby olarak Metin2 özel sunucu geliştirme dünyasında öncü adımlarla yürüyoruz. Bu bağlamda GF v17.5 güncellemesi ile gelen Pet ikon efekti özelliği, özellikle C++Py tabanlı sistemlerde geliştirilen projeler için büyük bir yenilik olarak dikkat çekiyor. Bu yazıda, bu yeni efektin nasıl entegre edileceği, hangi dosyalarda değişiklik yapılması gerektiği ve Python GUI üzerinden nasıl kontrol edilebileceği konularına değineceğiz.
Pet Sistemi ve İkon Efekti Nedir?
Metin2 oyununda Pet sistemleri uzun süredir oyuncuların favori özelliklerinden biridir. Yeni güncelleme ile birlikte, pet ikonlarının üzerine özel efektler eklenebilmesi sağlandı. Bu sayede petler daha dikkat çekici hale geliyor ve oyuncuların ilgisini artırıyor. Bu efektler genellikle C++ tarafında game core üzerinde çalıştırılır ve client src tarafında da görsel olarak desteklenir.
Geliştirme Adımları
Pet ikon efekti sisteminin aktif edilmesi için birkaç temel adım atılması gerekir:
- Game server programming seviyesinde PetManager sınıfında gerekli değişiklikler yapılmalıdır.
- Client src kısmında uiscript dosyasında pet ikonları için efekt render işlemleri tanımlanmalıdır.
- PyRoot üzerinden py gui ile efekt animasyonları yönetilmelidir.
Önemli Dosya ve Fonksiyonlar
Aşağıdaki dosyalar bu sistemin entegrasyonunda kritik rol oynar:
- pet_manager.cpp: Pet verilerinin tutulduğu ve efekt yönetiminin başlatıldığı yerdir.
- icon_window.py: Pet ikonunun ekranda gösterildiği ve efekt animasyonunun başlatıldığı Python dosyasıdır.
- packet.h / packet.cpp: Sunucu ile istemci arasında efekt bilgilerinin taşındığı paketler tanımlanır.
C++Py Entegrasyonu
C++Py sistemlerde Pet ikon efekti entegrasyonu oldukça verimlidir. PyRoot üzerinden efekt animasyonları başlatılırken, C++ tarafında bu efektlerin tetiklenmesi sağlanır. Bu sayede hem performans hem de stabilite açısından güçlü bir yapı elde edilir. MartySama gibi gelişmiş Metin2Dev yapılarında bu entegrasyon daha kolay hale getirilmiştir.
Sunucu Tarafında Paket Tanımı
Game sunucusu ile Auth sunucusu arasında pet efekt verisi taşınması için özel paket tanımlamaları yapılır. Bu paketler packet.h dosyasında tanımlanır ve packet.cpp içinde işlenir. Oyuncu bir pet efekti tetiklediğinde, bu bilgi sunucuya gönderilir ve diğer oyunculara da yansıtılmak üzere yayınlanır.
Görsel Efekt Yönetimi
PyGui ile efekt animasyonları kullanıcı arayüzüne entegre edilir. uiscript dosyasında pet ikonuna özel animasyon tanımlamaları yapılır. Texture ve Effect sınıfları kullanılarak efektler çizilir. Ayrıca Timer fonksiyonları ile efekt süresi kontrol edilir.
Sonuç
Metin2 Lobby olarak, Metin2 özel sunucularında Pet ikon efekti gibi gelişmiş sistemlerin entegrasyonuna yardımcı olmaya devam ediyoruz. GF v17.5 güncellemesiyle birlikte gelen bu özellik, hem C++ hem de Python tarafında detaylı entegrasyon gerektirir. Bu sayede sunucularınızda benzersiz bir deneyim sunabilirsiniz.
Metin2 Lobby continues to take pioneering steps in the world of Metin2 private server development. In this context, the new Pet icon effect feature introduced with the GF v17.5 update stands out as a major innovation for projects developed on C++Py based systems. In this article, we will discuss how this new effect can be integrated, which files require modifications, and how it can be controlled via Python GUI.
What is the Pet System and Icon Effect?
Pet systems have long been one of the favorite features among players in the Metin2 game. With the latest update, special effects can now be added to pet icons, making pets more eye-catching and increasing player engagement. These effects typically run on the C++ side within the game core and are visually supported on the client src side.
Development Steps
To activate the Pet icon effect system, several key steps must be taken:
- Modifications should be made to the PetManager class at the game server programming level.
- In the client src, effect rendering operations for pet icons must be defined in the uiscript file.
- Effect animations should be managed through py gui via PyRoot.
Important Files and Functions
The following files play a critical role in integrating this system:
- pet_manager.cpp: Where pet data is stored and effect management is initiated.
- icon_window.py: The Python file where the pet icon is displayed and effect animations are triggered.
- packet.h / packet.cpp: Packets that carry effect information between the server and client are defined here.
C++Py Integration
Integrating Pet icon effect in C++Py systems is highly efficient. While effect animations are initiated via PyRoot, triggering these effects on the C++ side ensures stability and performance. This integration has been simplified in advanced Metin2Dev structures like MartySama.
Packet Definition on Server Side
Custom packet definitions are created to transmit pet effect data between the Game and Auth servers. These packets are defined in the packet.h file and processed inside packet.cpp. When a player triggers a pet effect, this information is sent to the server and broadcasted to other players.
Visual Effect Management
Effect animations are integrated into the user interface via PyGui. Special animation definitions for the pet icon are made in the uiscript file. Effects are drawn using Texture and Effect classes, and their duration is controlled using Timer functions.
Conclusion
Metin2 Lobby continues to assist in integrating advanced systems like Pet icon effect into Metin2 private servers. The feature introduced with the GF v17.5 update requires detailed integration on both the C++ and Python sides, allowing you to offer a unique experience on your servers.
