Sıfırdan Alt Yapı Hazırlamak Ve Yararlı Notlar

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

Admin

Metin2Lobby
Yönetici
Founder
Katılım
6 Mayıs 2022
Mesajlar
52,647
Ticaret : 1 / 0 / 0
//
Metin2 Sunucu Geliştirme Serisi: Sıfırdan Alt Yapı Hazırlamak ve Yararlı Notlar

Giriş
Metin2 özel sunucuları (private server) geliştirmek isteyenler için bu altyapı hazırlığı temel adımlardan biridir. Bu rehberde, sıfırdan bir Metin2 sunucu altyapısının nasıl kurulacağını, hangi dosyaların nerede bulunması gerektiğini ve önemli notları detaylıca ele alacağız. Hedefimiz, Metin2Lobby gibi platformlarda paylaşılan kaynakları daha verimli kullanabilmek ve kendi sunucumuzu güvenli, hızlı ve stabil şekilde çalıştırmaktır.

Sunucu Altyapısı İçin Gerekli Bileşenler
Metin2 özel sunucu altyapısı genellikle üç ana bileşenden oluşur:
- Game Server: Oyun mantığını barındıran ve oyuncu eylemlerini yöneten sunucudur.
- Auth Server: Giriş işlemlerini yöneten kimlik doğrulama sunucusudur.
- Database (DB): Oyuncu verileri, envanter, karakter bilgileri gibi tüm verileri tutan MySQL veya MSSQL tabanlı veritabanıdır.

Game ve Auth Sunucularının Kurulumu
Oyun sunucusunu başlatmadan önce, gerekli olan yapılandırma dosyalarını doğru şekilde ayarlamalıyız. Bu dosyalar genellikle 'root', 'locale', 'pack' ve 'server_info.py' gibi dosyalardır. Root klasörü, oyun client'ının çalışması için gerekli olan görsel, ses ve arayüz dosyalarını içerir. Pack dosyaları sıkıştırılmış olarak gelir ve doğru şifre ile açılmalıdır. Yanlış şifre kullanıldığında sunucu açılmaz!

Python Script ve Py Root Kullanımı
Metin2 özel sunucularında Py Root, oyun arayüzünü (UI) oluşturmada kullanılır. Py Root dosyaları genellikle Python dilinde yazılmış GUI sistemleridir. Uiscript ile kullanıcı arayüzü tasarımları yapılır. Py Root ve UIscript düzenlemeleri, sunucu deneyimini özelleştirmek için büyük avantaj sağlar. Özellikle C++ sistemlerle entegre çalışan Py dosyaları, dinamik sistemler geliştirmeye olanak tanır.

Veritabanı (DB) Ayarları ve Bağlantılar
Veritabanı bağlantısı, auth ve game sunucuları için kritik öneme sahiptir. Server_info.py dosyasında belirtilen IP, kullanıcı adı ve parola bilgileri doğru şekilde girilmelidir. Yanlış bağlantı bilgileri sunucunun çalışmamasına neden olabilir. Martysama gibi kaynaklardan sağlanan DB dosyaları, genellikle önceden optimize edilmiş ve test edilmiş yapıdadır.

Kaynak Kod Derleme (Compile) ve Edit işlemleri[/COORD]
Metin2 sunucularında source edit yaparak kendi özel sistemlerimizi ekleyebiliriz. C++ dili kullanılarak geliştirilen sistemler, performans açısından oldukça etkilidir. Kaynak kodlar genellikle Visual Studio veya Code::Blocks gibi derleyicilerle derlenir. Compile işlemi sırasında dikkat edilmesi gereken bazı noktalar vardır. Örneğin, game server programming sırasında hata ayıklama modunda derleme yapılması, hataları erken tespit etmemizi sağlar.

Yararlı Notlar
- Server_src dosyaları, genellikle Martysama veya benzeri forumlardan indirilir. Bu dosyalar üzerinde değişiklik yapmadan önce mutlaka yedek alınmalıdır.
- Client_src ile client tarafında yapılan değişiklikler, oyun deneyimini tamamen değiştirebilir. Ancak bu işlem uzmanlık gerektirir.
- PvP sistemleri, genellikle C++ ile geliştirilir. Sistemlerin dengeli ve hilelere kapalı olması önemlidir.
- Paketlenmiş sunucular (fullpack), sıfırdan kurulum yapmayanlar için kolaylık sağlar. Ancak bu tür paketlerde güvenlik açıkları olabilir.

Sonuç
Sıfırdan bir Metin2 altyapısı oluşturmak, hem teknik hem de sistem bilgisi gerektiren bir iştir. Bu rehber sayesinde temel adımları öğrendiniz. Daha fazla bilgi ve kaynak için Metin2Lobby'i takip edin.


Metin2 Server Development Series: Building Infrastructure from Scratch and Useful Notes

Introduction
Building a Metin2 private server infrastructure is one of the fundamental steps for those who want to develop their own servers. In this guide, we will cover how to set up a Metin2 server infrastructure from scratch, where the required files should be located, and important notes in detail. Our goal is to utilize resources shared on platforms like Metin2Lobby more efficiently and run our own server securely, quickly, and stably.

Components Required for Server Infrastructure
The Metin2 private server infrastructure generally consists of three main components:
- Game Server: Contains the game logic and manages player actions.
- Auth Server: Handles login processes and authentication.
- Database (DB): Stores all data such as player information, inventory, character details, etc., typically using MySQL or MSSQL.

Installing Game and Auth Servers
Before starting the game server, you must configure the necessary files correctly. These usually include 'root', 'locale', 'pack', and 'server_info.py'. The root folder contains visual, audio, and interface files needed for the client to run. Pack files are compressed and must be opened with the correct password. Using the wrong password can prevent the server from starting!

Using Python Scripts and Py Root
In Metin2 private servers, Py Root is used to create the game UI. Py Root files are generally Python-based GUI systems. UIscript is used for designing user interfaces. Editing Py Root and UIscript allows customization of the server experience. Integrating Py files with C++ systems enables dynamic system development.

Database (DB) Settings and Connections
Database connections are critical for both auth and game servers. The IP, username, and password information in the server_info.py file must be entered correctly. Incorrect connection details may cause the server to fail to start. DB files provided from sources like Martysama are often pre-optimized and tested.

Source Code Compilation and Editing
In Metin2 servers, source edit allows us to add custom systems. Systems developed using the C++ language are highly effective in terms of performance. Source codes are typically compiled using compilers like Visual Studio or Code::Blocks. There are some points to consider during compilation. For example, compiling in debug mode during game server programming helps detect errors early.

Useful Notes
- Server_src files are usually downloaded from forums like Martysama. Always take a backup before making any changes to these files.
- Client_src modifications can completely change the gameplay experience, but require advanced knowledge.
- PvP systems are usually developed in C++. Ensuring balance and security against exploits is crucial.
- Pre-packaged servers (fullpack) offer convenience for those who do not prefer setting up from scratch. However, these packages may contain security vulnerabilities.

Conclusion
Building a Metin2 infrastructure from scratch requires both technical and system knowledge. With this guide, you have learned the basic steps. For more information and resources, follow Metin2Lobby.
 

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

Benzer konular

Geri
Üst Alt