Errorlog.txt düzeltme

  • 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
EterBase/error.cpp aç

Ben github kullanıyorum github kullanırken başıma cok bela oluyodu bu txt güncellemeler sırasında bu şekilde bi çözüm uyguladım.
ErrorLog_04-02-2024_03-17-18.txt

Kod:
BUL: LONG __stdcall EterExceptionFilter(_EXCEPTION_POINTERS* pExceptionInfo) KOD BLOGUNU DEĞİŞTİR: LONG __stdcall EterExceptionFilter(_EXCEPTION_POINTERS* pExceptionInfo) {     HANDLE hProcess = GetCurrentProcess();     HANDLE hThread = GetCurrentThread();     time_t rawtime;     struct tm* timeinfo;     char buffer[80];     time(&rawtime);     timeinfo = localtime(&rawtime);     strftime(buffer, sizeof(buffer), "errorlog\\ErrorLog_%d-%m-%Y_%H-%M-%S.txt", timeinfo); // errorlog klasörünü oluştur     FILE* fException = fopen(buffer, "wt");     if (fException)     {         char module_name[256];         time_t module_time;         HMODULE hModule = GetModuleHandle(NULL);         GetModuleFileName(hModule, module_name, sizeof(module_name));         module_time = (time_t)GetTimestampForLoadedLibrary(hModule);         fprintf(fException, "Module Name: %s\n", module_name);         fprintf(fException, "Time Stamp: 0x%08x - %s\n", module_time, ctime(&module_time));         fprintf(fException, "\n");         fprintf(fException, "Exception Type: 0x%08x\n", pExceptionInfo->ExceptionRecord->ExceptionCode);         fprintf(fException, "\n");         CONTEXT& context = *pExceptionInfo->ContextRecord;         fprintf(fException, "eax: 0x%08x\tebx: 0x%08x\n", context.Eax, context.Ebx);         fprintf(fException, "ecx: 0x%08x\tedx: 0x%08x\n", context.Ecx, context.Edx);         fprintf(fException, "esi: 0x%08x\tedi: 0x%08x\n", context.Esi, context.Edi);         fprintf(fException, "ebp: 0x%08x\tesp: 0x%08x\n", context.Ebp, context.Esp);         fprintf(fException, "\n");         STACKFRAME stackFrame = { 0, };         stackFrame.AddrPC.Offset = context.Eip;         stackFrame.AddrPC.Mode = AddrModeFlat;         stackFrame.AddrStack.Offset = context.Esp;         stackFrame.AddrStack.Mode = AddrModeFlat;         stackFrame.AddrFrame.Offset = context.Ebp;         stackFrame.AddrFrame.Mode = AddrModeFlat;         for (int i = 0; i < 512 && stackFrame.AddrPC.Offset; ++i)         {             if (StackWalk(IMAGE_FILE_MACHINE_I386, hProcess, hThread, &stackFrame, &context, NULL, NULL, NULL, NULL) != FALSE)             {                 fprintf(fException, "0x%08x\t", stackFrame.AddrPC.Offset);                 EnumerateLoadedModules(hProcess, (PENUMLOADED_MODULES_CALLBACK)EnumerateLoadedModulesProc, &stackFrame.AddrPC.Offset);                 fprintf(fException, "\n");             }             else             {                 break;             }         }         fprintf(fException, "\n");         fflush(fException);         fclose(fException);         fException = NULL;         WinExec("errorlog.exe", SW_SHOW);     }     return EXCEPTION_EXECUTE_HANDLER; }

Metin2 Sunucularında Errorlog.txt Düzeltme Yöntemleri

Giriş
Metin2 özel sunucuları geliştirirken karşılaşılan en yaygın sorunlardan birisi errorlog.txt dosyasında görülen hatalardır. Bu hatalar, sistemsel arızalar, eksik yapılandırmalar veya kodlama hataları nedeniyle oluşabilir. Bu metinde, errorlog.txt dosyasındaki hataları nasıl düzelteceğinizi adım adım anlatacağız. Bu rehber özellikle Metin2 özel sunucu geliştiricileri, C++ ve Python sistemleri üzerinde çalışanlar için faydalı olacaktır.

Errorlog.txt Nedir?
Errorlog.txt dosyası, Metin2 sunucu yazılımı tarafından otomatik olarak üretilen bir günlük dosyasıdır. Bu dosya, sunucu çalışırken oluşan hataları, sistemsel uyarıları ve olası çökme nedenlerini içerir. Geliştiriciler için önemli bir araçtır çünkü hataların kökenini belirlemeye yardımcı olur. Bu dosya genellikle game, auth veya db sunucularında bulunabilir.

Hataların Kaynağını Belirleme
Öncelikle errorlog.txt dosyasını dikkatlice okumalısınız. Hatalar genellikle şu şekillerde görünür:
- Connection failed: Veritabanı bağlantısı sorunu
- Missing file: Eksik dosya hatası
- Memory leak: Bellek sızıntısı
- Script error: Python veya C++ script hataları

Hataları Düzeltme Adımları
1. Log Dosyasını Analiz Et: Errorlog.txt dosyasını açın ve hata mesajlarını not alın. Hangi modülde (game, auth, db) hata oluştuğunu belirleyin.

2. Veritabanı Bağlantılarını Kontrol Et: Eğer bağlantı hataları varsa, db sunucusundaki yapılandırmaları gözden geçirin. DBCore ayarlarını kontrol edin.

3. Python ve C++ Scriptlerini Kontrol Et: Py Root ve UIScript dosyalarında hata olabilir. Özellikle Martysama veya kendi geliştirdiğiniz sistemlerde hata çıkabilir. Scriptlerde eksik fonksiyonlar, tanımsız değişkenler veya yanlış dosya yolları olabilir.

4. Sunucu Derleme Sorunlarını Gider: Eğer compile sırasında hata oluşmuşsa, kaynak kodun derlenmesini tekrar yapın. Derleme esnasında oluşan hatalar loglarda da görünür.

5. Kaynak Kodları Güncelle: Eğer server src eskiysa, yeni sürümleri kontrol edin. Bazı hatalar eski kod yapısından kaynaklanabilir. Özellikle PvP sistemleri için güncellenmiş kodlar kullanmak önemlidir.

Gelişmiş Ayarlamalar
Metin2 özel sunucularında core sistemlerin doğru çalışması için bazı gelişmiş ayarlamalar gerekebilir. Örneğin, channel yapılandırması, pack dosyalarının doğruluğu veya client src ile uyumsuzluk gibi durumlar hata oluşturabilir. Bu nedenle, tüm sistem bileşenlerinin senkronize olduğundan emin olun.

Sonuç
Errorlog.txt dosyası, Metin2 özel sunucu geliştiricileri için değerli bir bilgi kaynağıdır. Doğru analiz edildiğinde, sunucu performansını artırabilir ve olası çökmeleri önleyebilirsiniz. Hataları düzelterek daha kararlı ve güçlü bir Metin2 PvP deneyimi sunabilirsiniz. Metin2Lobby.com olarak bu tür teknik konularda destek sağlıyoruz.


Fixing Errorlog.txt Issues on Metin2 Servers

Introduction
One of the most common issues encountered when developing Metin2 private servers is errors found in the errorlog.txt file. These errors may stem from system failures, missing configurations, or coding mistakes. In this article, we will explain step by step how to fix errors in the errorlog.txt file. This guide will be particularly useful for developers working with Metin2 private servers and those using C++ and Python systems.

What is Errorlog.txt?
Errorlog.txt is a log file automatically generated by the Metin2 server software. It contains errors, warnings, and potential crash causes that occur while the server is running. It serves as an important tool for developers because it helps identify the origin of errors. The file can typically be found in game, auth, or db server folders.

Identifying the Source of Errors
Firstly, carefully read the errorlog.txt file. Errors usually appear in the following forms:
- Connection failed: Database connection issue
- Missing file: Missing file error
- Memory leak: Memory leak issue
- Script error: Python or C++ script errors

Steps to Fix Errors
1. Analyze the Log File: Open the errorlog.txt file and note down the error messages. Determine which module (game, auth, db) the error originates from.

2. Check Database Connections: If there are connection errors, review the configurations in the db server. Check your DBCore settings.

3. Review Python and C++ Scripts: There might be errors in Py Root and UIScript files. Particularly in systems developed by Martysama or your own custom systems, issues such as missing functions, undefined variables, or incorrect file paths may occur.

4. Resolve Compilation Issues: If errors occurred during compile, recompile the source code. Errors occurring during compilation may also appear in logs.

5. Update Source Codes: If your server src is outdated, check for newer versions. Some errors may arise due to older code structures. Especially for PvP systems, using updated codes is crucial.

Advanced Configurations
Some advanced adjustments may be required for core systems in Metin2 private servers to function properly. For example, misconfigurations in channel setups, inaccuracies in pack files, or incompatibilities with client src may cause errors. Therefore, ensure that all system components are synchronized.

Conclusion
Errorlog.txt is a valuable source of information for Metin2 private server developers. When analyzed correctly, it can help improve server performance and prevent potential crashes. By fixing these errors, you can provide a more stable and robust Metin2 PvP experience. At Metin2Lobby.com, we offer support for such technical topics.
 

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

Benzer konular

Geri
Üst Alt