[C++] PM Log Sistemi Whisper

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

Admin

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

18efe9c02b4517024.jpg




Metin2 özel sunucularında C++ tabanlı gelişmiş sistemlerden biri olan PM Log Sistemi, oyuncuların özel mesajlaşmalarını kayıt altına alarak hem güvenlik hem de denetim açısından büyük önem taşır. Bu sistem, özellikle PvP sunucularında, kullanıcıların birbirleriyle yapmış oldukları özel sohbetlerin izini sürebilmek amacıyla geliştirilir. Metin2Lobby olarak bizler, bu tür güvenli ve gelişmiş sistemleri siz geliştiriciler için detaylıca ele alıyoruz.

PM Log Sistemi Nedir?
PM (Private Message), yani özel mesajlaşma özelliğidir. Oyuncular arasında doğrudan yapılan bu mesajlaşmalar, bazı sunucularda kayıt altına alınmayabilir. Ancak Whisper komutu üzerinden gönderilen mesajlar, bu sistem sayesinde veritabanına yazılır. Bu, oyun içi dolandırıcılıklar, küfür, taciz gibi durumların tespiti için kritik bir araçtır.

Neden PM Log Sistemine İhtiyaç Vardır?
Özel sunucularda oyun içi güvenliği sağlamak adına birçok sistem entegre edilir. PM log sistemi, bu güvenlik zincirinin önemli bir halkasıdır. Özellikle Metin2 PvP sunucularında, oyuncular arasındaki özel anlaşmalar, dolandırıcılıklar ya da hileli davranışlar, oyun dengesini bozabilecek niteliktedir. Bu sebeple, tüm özel mesajların loglanması büyük bir önem taşır.

Sistem Nasıl Çalışır?
C++ dilinde yazılmış game server üzerinde, Whisper komutu tetiklendiğinde, mesaj içeriği, gönderici ve alıcı bilgileri MySQL veya MongoDB gibi bir veritabanına gönderilir. Bu işlem sırasında encryption kullanılmaması halinde, verilerin güvenliği tehlikeye girebilir. Bu nedenle, log sistemi aynı zamanda şifreleme teknikleriyle de desteklenmelidir.

PM Log Sisteminin Kurulumu
Sistemin kurulumu, Metin2 server source code üzerinde değişiklik yapılmasını gerektirir. Öncelikle, WhisperHandler.cpp dosyasına özel bir fonksiyon eklenerek mesaj yakalama işlemi yapılır. Daha sonra bu mesaj, bir SQL sorgusuyla veritabanına yazılır. Bu işlem sırasında, auth server ile game server arasında senkronizasyonun sağlanması gerekir.

Log Verileri Neleri İçerir?
Her bir log kaydı şu bilgileri içerir:
- Gönderen karakter adı
- Alıcı karakter adı
- Mesaj içeriği
- Gönderim tarihi ve saati
- IP adresi (isteğe bağlı)
Bu veriler sayesinde, istenildiğinde belirli bir kullanıcıya ait tüm özel mesajlar sorgulanabilir.

Veritabanı Tasarımı
PM log sistemi için örnek bir veritabanı tablosu şu şekildedir:
Table: pm_logs
- id (INT, AUTO_INCREMENT)
- sender_name (VARCHAR)
- receiver_name (VARCHAR)
- message_content (TEXT)
- timestamp (DATETIME)
- ip_address (VARCHAR, optional)

Gizlilik ve Yasal Sorumluluk
Oyuncuların özel mesajlarının loglanması, gizlilik politikasına dikkat edilmeden yapıldığında yasal sorunlara yol açabilir. Bu nedenle, kullanıcılar sistem hakkında bilgilendirilmeli ve gerekli onaylar alınmalıdır. Ayrıca, log verileri sadece yetkili moderatörler veya yöneticiler tarafından görüntülenebilmelidir.

Sonuç
C++ tabanlı PM Log Sistemi, Metin2 özel sunucularında güvenlik ve denetim açısından kritik öneme sahiptir. Metin2Lobby olarak, bu tür gelişmiş sistemlerin nasıl geliştirileceği ve entegre edileceği konusunda size rehberlik etmeye devam edeceğiz. Gelişmelerden haberdar olmak için sitemizi takip etmeyi unutmayın.


Metin2 private servers, one of the advanced systems based on C++, the PM Log System, records players' private messages, which is crucial for both security and audit purposes. This system, especially in PvP servers, enables tracking of direct communications between users. At Metin2Lobby, we examine such secure and advanced systems in detail for you developers.

What is a PM Log System?
PM stands for Private Message, which refers to direct messaging between players. In some servers, these conversations might not be logged. However, messages sent via the Whisper command are recorded in the database thanks to this system. This serves as a critical tool for detecting fraud, insults, harassment, etc., within the game.

Why Is a PM Log System Needed?
Many systems are integrated into private servers to ensure in-game security. The PM log system is a vital component of this security chain. Especially in Metin2 PvP servers, private agreements, scams, or cheating behaviors among players can disrupt the game balance. Therefore, logging all private messages is highly important.

How Does the System Work?
Within the C++ based game server, when the Whisper command is triggered, message content along with sender and receiver information is sent to a database like MySQL or MongoDB. If encryption is not used during this process, data security may be compromised. Therefore, the log system should also be supported by encryption techniques.

Installing the PM Log System
Installing the system requires modifications to the Metin2 server source code. First, a custom function is added to the WhisperHandler.cpp file to capture the message. Then, this message is written to the database via an SQL query. During this process, synchronization between the auth server and the game server must be ensured.

What Data Do Logs Contain?
Each log entry includes:
- Sender character name
- Receiver character name
- Message content
- Date and time of sending
- IP address (optional)
With this data, all private messages of a specific user can be queried whenever needed.

Database Design
An example table for the PM log system looks like this:
Table: pm_logs
- id (INT, AUTO_INCREMENT)
- sender_name (VARCHAR)
- receiver_name (VARCHAR)
- message_content (TEXT)
- timestamp (DATETIME)
- ip_address (VARCHAR, optional)

Privacy and Legal Responsibility
Logging private messages of players can lead to legal issues if privacy policies are not carefully adhered to. Therefore, users must be informed about the system and necessary consents must be obtained. Additionally, log data should only be viewable by authorized moderators or administrators.

Conclusion
The C++ based PM Log System is critically important for security and monitoring in Metin2 private servers. As Metin2Lobby, we will continue to guide you on how to develop and integrate such advanced systems. Don’t forget to follow our site to stay updated on developments.
 

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

Benzer konular

Geri
Üst Alt