Atlas Information Renewal [ C++ / PYTHON ]

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

Admin

Metin2Lobby
Yönetici
Founder
Katılım
6 Mayıs 2022
Mesajlar
52,647
Ticaret : 1 / 0 / 0
Aspecially i hate it when somebody leak / publish out my code without my privileges, ( ) - next time you should not delete my credit information's etc...
So thats why i decide it to share with all the full version of this. :)

230960_e3e6470fe9e7572aab37a100e91e25be.png


Preview:
Virustotal:

Source:
Atlas Information Renewal Nedir?

Metin2 özel sunucularında geliştirme yaparken bazı sistemlerin zamanla güncellenmesi veya yeniden yapılandırılması gerekir. Bunlardan birisi de Atlas Information Renewal sistemidir. Bu sistem, oyuncuların karakterlerinin bazı bilgilerini güncellemelerine olanak tanır. Özellikle C++ ve Python tabanlı sistemlerde bu süreç daha esnek hale getirilebilir. Bu yazıda, Atlas Information Renewal özelliğini nasıl C++ ve Python ile entegre edeceğinizi detaylıca inceleyeceğiz.

C++ Tarafında Atlas Information Renewal

Metin2'nin Game Server tarafında çalışan sistemler genellikle C++ dilinde yazılmaktadır. Atlas Information Renewal sistemi de bu yapıya entegre edilerek, karakter bilgilerinin sunucu tarafından yeniden yüklenmesi sağlanabilir. Örneğin, bir karakterin yetenek seviyesi, eşyaları veya diğer bilgileri belirli bir durumda yeniden yüklenebilir. Bu işlem için game core kısmında değişiklik yapılması gerekebilir.

Örnek C++ Kod Yapısı:
void Character::RenewAtlasInfo()
{
// Karakter bilgilerini yenile
m_nLevel = GetLevelFromDB();
RefreshCharacterStats();
}

Bu fonksiyon, karaktere ait bilgileri veritabanından alarak yeniden yükler. Bu sayede oyuncu, sunucuda değişiklik yapıldığında tekrar giriş yapmadan bilgilerini güncelleyebilir.

Python Tarafında Entegrasyon

Python, Metin2 özel sunucularında genellikle client-side işlemler için kullanılır. Özellikle uiscript ve py root yapıları üzerinden GUI arayüzler oluşturulabilir. Atlas Information Renewal sistemi, Python ile yazılmış bir arayüz sayesinde kullanıcı dostu hale getirilebilir. Oyuncular, belirli butonlara basarak bilgilerini yenileyebilirler.

Python GUI Arayüzü Örneği:
import ui
import net

class AtlasRenewWindow(ui.ScriptWindow):
def __init__(self):
ui.ScriptWindow.__init__(self)
self.__CreateDialog()

def __CreateDialog(self):
# Pencere bileşenleri
pass

def OnRenewButton(self):
net.SendChat('atlas_renew')

Bu örnek, oyuncunun bir pencereden bilgi yenileme işlemini başlatmasını sağlar. net.SendChat komutu ile sunucuya istek gönderilir ve C++ tarafında bu isteğe göre işlem yapılır.

Veritabanı (DB) ve Bilgi Güncellemesi

db core yapıları, bilgilerin güvenli ve hızlı bir şekilde yenilenmesini sağlar. Atlas Information Renewal sırasında veritabanında yer alan karakter bilgileri okunur ve sunucuya aktarılır. Bu işlem sırasında auth ve game sunucuları senkronize çalışmalıdır.

Sunucu Derleme ve Kaynak Kod Düzenleme

Metin2 server src üzerinde yapılan değişiklikler, derleme işlemi ile uygulanabilir. Bu işlem sırasında compile komutları doğru şekilde çalıştırılmalıdır. Source edit işlemleri sırasında dikkat edilmelidir çünkü küçük hatalar sistemin çökmesine neden olabilir.

Sonuç

Atlas Information Renewal, Metin2 özel sunucularında kullanıcı deneyimini artırmak için önemli bir özelliktir. C++ ve Python ile entegrasyonu sayesinde hem sunucu hem de istemci tarafında esnek çözümler üretmek mümkündür. Bu sistem sayesinde oyuncular, karakter bilgilerini daha dinamik bir şekilde yönetebilir.


What is Atlas Information Renewal?

When developing Metin2 private servers, certain systems may need updates or restructuring over time. One of these systems is the Atlas Information Renewal system. This system allows players to update specific character information. Especially in C++ and Python based systems, this process can be made more flexible. In this article, we will examine in detail how to integrate the Atlas Information Renewal feature with C++ and Python.

Atlas Information Renewal on the C++ Side

Systems running on the Game Server side of Metin2 are generally written in C++. The Atlas Information Renewal system can also be integrated into this structure to allow reloading of character information on the server. For instance, a character's skill level, items, or other attributes can be reloaded under certain conditions. This may require modifications to the game core.

Example C++ Code Structure:
void Character::RenewAtlasInfo()
{
// Reload character information
m_nLevel = GetLevelFromDB();
RefreshCharacterStats();
}

This function reloads the character's information from the database. Thus, the player can refresh their information without relogging after changes are made on the server.

Integration on the Python Side

Python is commonly used for client-side operations in Metin2 private servers. Specifically, GUI interfaces can be built via uiscript and py root structures. The Atlas Information Renewal system can become more user-friendly through a Python-based interface. Players can click certain buttons to renew their information.

Example Python GUI Interface:
import ui
import net

class AtlasRenewWindow(ui.ScriptWindow):
def __init__(self):
ui.ScriptWindow.__init__(self)
self.__CreateDialog()

def __CreateDialog(self):
# Window components
pass

def OnRenewButton(self):
net.SendChat('atlas_renew')

This example allows the player to initiate the renewal process from a window. The net.SendChat command sends a request to the server, and the C++ side handles the request accordingly.

Database (DB) and Information Update

db core structures ensure that information is renewed securely and quickly. During Atlas Information Renewal, character data stored in the database is read and transferred to the server. During this process, auth and game servers must work in sync.

Server Compilation and Source Code Editing

Modifications made on the Metin2 server src can be applied through compilation. During this process, compile commands must be executed correctly. Care should be taken during source edit operations since minor errors can cause the system to crash.

Conclusion

Atlas Information Renewal is an important feature to enhance the player experience in Metin2 private servers. Thanks to its integration with C++ and Python, it is possible to create flexible solutions on both server and client sides. With this system, players can manage their character information more dynamically.
 

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

Geri
Üst Alt