[Py&C++] Inventory Slot Marking System

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

Admin

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

It's a good day to share an old code with you.

First of all you need to know:
  1. <li data-xf-list-type="ol">I don't help to install it. Don't even take the contact with me about it. <li data-xf-list-type="ol">The whole code is written by me, and reversed from official binaries. <li data-xf-list-type="ol">At the beginning do a backup for your files(srcs+pys) and READ CAREFULLY the readme. <li data-xf-list-type="ol">W/o brain.exe please close this tab, or your browser, thank you for your understanding.

Preview:

[/CENTER]

Türkçe Olarakda
Arkadaslar Tr Var Bu Sistemler Zaten Video Detaylı Anlatım Yapılmıs Ordan Bakarsınız


indirme link

tarama

Enjoy &amp; #h4v3fun,
pngr
Py&C++ ile Envanter Slot İşaretleme Sistemi

Metin2 özel sunucularında kullanıcı deneyimini artırmak ve oyun içi yönetim süreçlerini kolaylaştırmak adına geliştirilen Envanter Slot İşaretleme Sistemi, hem C++ hem de Python tarafında entegrasyon gerektiren gelişmiş bir özelliktir. Bu sistem sayesinde oyuncular, envanterlerindeki belirli slotları görsel olarak işaretleyebilir, bu sayede önemli eşyaları hızlıca tanımlayabilir veya takip edebilirler. Özellikle PvP sunucularında bu tür sistemler, oyuncuların stratejik hazırlıklarını destekler.

Sistem Mimarisi

Bu sistem, iki ana bileşenden oluşur: Python GUI tarafında kullanıcı arayüzüne entegre edilen slot işaretleme mekanizması ve C++ Game Core tarafında bu işaretlemelerin veritabanında saklanması ve oyun sırasında doğru şekilde işlenmesidir. Python tarafında uiscript ile oluşturulan arayüzde, her slot için sağ tık menüsüne eklenebilecek bir 'İşaretle' veya 'İşareti Kaldır' seçeneği yer alır. Bu seçenek, Python üzerinden C++ tarafına bir mesaj göndererek slot durumunu günceller.

Python Tarafında Uygulama

Öncelikle, py root dosyalarında bulunan envanter arayüzüne, her slot nesnesi için sağ tık menüsüne bir işaretleyici fonksiyon eklenir. Bu işlem sırasında UIScript dosyası değiştirilir. İşaretlenen slot bilgisi, bir ID ile birlikte bir diziye kaydedilir. Bu dizi daha sonra oyun sunucusuna gönderilir. Py GUI ile yapılan bu entegrasyon, kullanıcı dostu bir arayüz sunarak oyuncuların kolayca bu işlemi yapabilmesini sağlar.

C++ Tarafında Entegrasyon

C++ tarafında, gelen slot işaretleme istekleri, Game Server tarafından alınır ve oyuncunun karakterine özel olarak veritabanına yazılır. Bu veri, oyuncu tekrar giriş yaptığında envanteri yeniden yüklenirken kontrol edilir ve ilgili slotlara özel görsel efektler uygulanır. Bu sistem, Martysama gibi gelişmiş sunucuların da kullandığı yöntemlerden biridir ve source edit ile özelleştirilebilir.

Veritabanı Yapısı

Her oyuncunun işaretlediği slotlar, DB Core içinde ayrı bir tabloya yazılır. Bu tablo, oyuncu ID, slot numarası ve işaret türü gibi alanlardan oluşur. Bu sayede hem performanslı hem de esnek bir yapı sağlanır. Ayrıca, bu tabloya yapılacak düzenlemeler, auth server ile senkronize edilerek veri bütünlüğü sağlanır.

Geliştirme ve Derleme

Bu sistemi özel sunucunuza entegre etmek için Metin2 Server Src üzerinde değişiklik yapmanız gerekir. Öncelikle client src ve game src dosyaları üzerinde çalışılır. Gerekli derleme işlemleri sonrasında, sistem test ortamında denenmelidir. Metin2 Compile işlemleri sırasında hata ayıklama yapılmalı ve tüm modüller uyumlu şekilde çalıştırılmalıdır.

Sonuç

Py&C++ ile geliştirilen bu envanter slot işaretleme sistemi, Metin2 özel sunucularında kullanıcı dostu ve stratejik bir araçtır. Oyuncuların envanterlerini daha verimli yönetmelerine olanak tanır. Geliştiriciler için ise, hem game core hem de db core üzerinde çalışarak gelişmiş bir entegrasyon sunar. Bu tür sistemler, Metin2 Development sürecinde kullanıcı memnuniyetini artırır ve oyun deneyimini zenginletir.


Py&C++ Inventory Slot Marking System

To enhance user experience and simplify in-game management processes in Metin2 private servers, the Inventory Slot Marking System is an advanced feature requiring integration on both the C++ and Python sides. With this system, players can visually mark certain slots in their inventory, allowing them to quickly identify or track important items. Such systems especially support strategic preparations for players on PvP servers.

System Architecture

This system consists of two main components: The slot marking mechanism integrated into the user interface on the Python GUI side and the storage and processing of these markings in the database on the C++ Game Core side. On the Python side, within the inventory UI created with uiscript, a 'Mark' or 'Unmark' option is added to the right-click menu for each slot. This option sends a message to the C++ side to update the slot status.

Implementation on the Python Side

Firstly, in the py root files, a marking function is added to the right-click menu for each slot object in the inventory UI. During this process, the UIScript file is modified. The marked slot information is saved into an array with its ID and sent to the game server. This integration via Py GUI provides a user-friendly interface, allowing players to easily perform this action.

Integration on the C++ Side

On the C++ side, the incoming slot marking requests are received by the Game Server and written to the database specifically for the player's character. When the player logs in again, this data is checked during the inventory reload, and special visual effects are applied to the corresponding slots. This system is one of the methods used by advanced servers like Martysama and can be customized through source edit.

Database Structure

Each player's marked slots are written into a separate table within the DB Core. This table includes fields such as player ID, slot number, and mark type. This ensures both performance and flexibility. Additionally, updates to this table are synchronized with the auth server to maintain data integrity.

Development and Compilation

To integrate this system into your private server, modifications must be made to the Metin2 Server Src. Initially, work is done on the client src and game src files. After necessary compilation procedures, the system should be tested in a test environment. Debugging should be performed during Metin2 Compile operations, and all modules should run in a compatible manner.

Conclusion

The inventory slot marking system developed with Py&C++ is a user-friendly and strategic tool in Metin2 private servers. It allows players to manage their inventories more efficiently. For developers, it offers an advanced integration working on both game core and db core. Such systems increase user satisfaction and enrich the gaming experience during the Metin2 Development process.​
 

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

Benzer konular

Geri
Üst Alt