Yardım OWSAP FİLES NESNE MARKET PROBLEMİ

  • Konuyu açan Konuyu açan CyberCan
  • Açılış Tarihi Açılış Tarihi
  • Yanıt Yanıt 9
  • Gösterim Gösterim 364
Konu sahibi bu konuda soru soruyor. Sorusu ile ilgili bilgisi olanların yanıtlamasını bekliyor.

CyberCan

Üye
Üye
Mesaj
36
Çözümler
2
Beğeni
7
Puan
59
Ticaret Puanı
0
Konu başlıklarını tamamen büyük harfle yazmayınız.
1755845604063.webp


Owsap Files malumunuz CEF Browser kullanıyor, sunucuda hataları tespit ederek fixlemeye devam ediyordum, bi de nesne markete bakınayım dedim, böyle bir siyah ekran problemi hiç bir şekilde sayfa felan açılmıyor. Neden kaynaklı olabilir?

PythonApplicationWebPage.cpp kod bloğu bu şekilde.


C++:
Genişlet Daralt Kopyala
void CPythonApplication::ShowWebPage(const BYTE c_bType, const char* c_szURL, const RECT& c_rcWebPage)
{
#if defined(ENABLE_CEF_BROWSER)
    if (CefWebBrowser::IsVisible(c_bType))
        return;

    m_grpDevice.EnableWebBrowserMode(c_rcWebPage);
    if (!CefWebBrowser::Show(c_bType, GetWindowHandle(), c_szURL, &c_rcWebPage))
        TraceError("CREATE_WEBBROWSER_ERROR:%d", GetLastError());
#else
    if (WebBrowser_IsVisible())
        return;

    m_grpDevice.EnableWebBrowserMode(c_rcWebPage);
    if (!WebBrowser_Show(GetWindowHandle(), c_szURL, &c_rcWebPage))
        TraceError("CREATE_WEBBROWSER_ERROR:%d", GetLastError());
#endif

    SetCursorMode(CURSOR_MODE_HARDWARE);
}
 
25381 eklentisini görüntüle

Owsap Files malumunuz CEF Browser kullanıyor, sunucuda hataları tespit ederek fixlemeye devam ediyordum, bi de nesne markete bakınayım dedim, böyle bir siyah ekran problemi hiç bir şekilde sayfa felan açılmıyor. Neden kaynaklı olabilir?

PythonApplicationWebPage.cpp kod bloğu bu şekilde.


C++:
Genişlet Daralt Kopyala
void CPythonApplication::ShowWebPage(const BYTE c_bType, const char* c_szURL, const RECT& c_rcWebPage)
{
#if defined(ENABLE_CEF_BROWSER)
    if (CefWebBrowser::IsVisible(c_bType))
        return;

    m_grpDevice.EnableWebBrowserMode(c_rcWebPage);
    if (!CefWebBrowser::Show(c_bType, GetWindowHandle(), c_szURL, &c_rcWebPage))
        TraceError("CREATE_WEBBROWSER_ERROR:%d", GetLastError());
#else
    if (WebBrowser_IsVisible())
        return;

    m_grpDevice.EnableWebBrowserMode(c_rcWebPage);
    if (!WebBrowser_Show(GetWindowHandle(), c_szURL, &c_rcWebPage))
        TraceError("CREATE_WEBBROWSER_ERROR:%d", GetLastError());
#endif

    SetCursorMode(CURSOR_MODE_HARDWARE);
}
Merhaba, PyhtonApplicationWebPage tarafında bir sorun görümüyor. Nesne market index kısmında sorun var sanırım.
 
Genel olarak artık metin2'de tarayıcılı nesne market kullanma taraftarı değilim, bu yüzden şahsi bir fikir olarak sağlam bir tane oyun içi nesne market sistemi kullanmanı öneririm. CEF Browser (metin2'de) lüzumsuz yere bellek kullanımını arttırıyor.
 
Files üzerinde henüz nesne markete başlamadım fakat nesne market alanına web sitesi girdiniz mi bunu kontrol edin.
2. olarak http veya https olarak kabul etmeme durumu olabilir başka bir yere bakarken bunu görmüştüm, ip tabanlı sorunsuz çalışması gerekiyor bunu düzeltmek için cef tarafında düzeltmeler yapmanız gerekir.

Benim önerim web tabanlı birşey eklemek pek mantıklı değil, officaldeki bir çok şikayet web tabanı ile alakalı, oyun içi nesne market veya türevler yapmanız en sağlıklısı olur.
 
Ben şu şekilde çözdüm burdaki dosyaları client içine at, userinterface.cpp içinde
Kod:
Genişlet Daralt Kopyala
 #if defined(ENABLE_CEF_BROWSER)
     { "cef.pak", "290f0060612f305b075f92b7fd1ad036" },
     { "cef_100_percent.pak", "0a20cb807b4c606db89fe14cae041885" },
     { "cef_200_percent.pak", "a3d62f9485070ca84ca074a12b3fb4e8" },
     { "cef_extensions.pak", "a60a12468870b84fffee8d9dea64ff74" },
     { "d3dcompiler_43.dll", "1c9b45e87528b8bb8cfa884ea0099a85" },
     { "d3dcompiler_47.dll", "8d5695f0b0a0330fe07802e4f3576b15" },
     { "icudtl.dat", "3ed56e55ff45ab973ffc483e5d483a5a" },
     { "libcef.dll", "e5f94b992adddb5a08b36bfab4420e0f" },
     { "libEGL.dll", "da896a0034a9f4f18f510e4a37a2dff0" },
     { "libGLESv2.dll", "9da02ce63ef4433c12eb854cc98dc75f" },
     { "natives_blob.bin", "03dc57f8a76d2a781ba2d8b3777b58d1" },
     { "snapshot_blob.bin", "4fde446a9303d60f7eb76438cab8ba30" },
 #endif
bu bloğu yorum satırı yap clienti tekrar derle. Ek olarak cmd_general.cpp içindeki
Kod:
Genişlet Daralt Kopyala
ACMD(do_in_game_mall)
{
    if (LC_IsYMIR() == true || LC_IsKorea() == true)
    {
        ch->ChatPacket(CHAT_TYPE_COMMAND, "mall http://metin2.co.kr/04_mall/mall/login.htm");
        return;
    }

    if (true == LC_IsTaiwan())
    {
        ch->ChatPacket(CHAT_TYPE_COMMAND, "mall http://203.69.141.203/mall/mall/item_main.htm");
        return;
    }

    if (LC_IsJapan() == true)
    {
        ch->ChatPacket(CHAT_TYPE_COMMAND, "mall http://mt2.oge.jp/itemmall/itemList.php");
        return;
    }

    if (LC_IsNewCIBN() == true && test_server)
    {
        ch->ChatPacket(CHAT_TYPE_COMMAND, "mall http://218.99.6.51/04_mall/mall/login.htm");
        return;
    }

    if (LC_IsSingapore() == true)
    {
        ch->ChatPacket(CHAT_TYPE_COMMAND, "mall http://www.metin2.sg/ishop.php");
        return;
    }

    /*
    if (LC_IsCanada() == true)
    {
        ch->ChatPacket(CHAT_TYPE_COMMAND, "mall http://mall.z8games.com/mall_entry.aspx?tb=m2");
        return;
    }*/
    //

    if (LC_IsEurope() == true)
    {
        char country_code[3];

        switch (LC_GetLocalType())
        {
            case LC_GERMANY: country_code[0] = 'd'; country_code[1] = 'e'; country_code[2] = '\0'; break;
            case LC_FRANCE: country_code[0] = 'f'; country_code[1] = 'r'; country_code[2] = '\0'; break;
            case LC_ITALY: country_code[0] = 'i'; country_code[1] = 't'; country_code[2] = '\0'; break;
            case LC_SPAIN: country_code[0] = 'e'; country_code[1] = 's'; country_code[2] = '\0'; break;
            case LC_UK: country_code[0] = 'e'; country_code[1] = 'n'; country_code[2] = '\0'; break;
            case LC_TURKEY: country_code[0] = 't'; country_code[1] = 'r'; country_code[2] = '\0'; break;
            case LC_POLAND: country_code[0] = 'p'; country_code[1] = 'l'; country_code[2] = '\0'; break;
            case LC_PORTUGAL: country_code[0] = 'p'; country_code[1] = 't'; country_code[2] = '\0'; break;
            case LC_GREEK: country_code[0] = 'g'; country_code[1] = 'r'; country_code[2] = '\0'; break;
            case LC_RUSSIA: country_code[0] = 'r'; country_code[1] = 'u'; country_code[2] = '\0'; break;
            case LC_DENMARK: country_code[0] = 'd'; country_code[1] = 'k'; country_code[2] = '\0'; break;
            case LC_BULGARIA: country_code[0] = 'b'; country_code[1] = 'g'; country_code[2] = '\0'; break;
            case LC_CROATIA: country_code[0] = 'h'; country_code[1] = 'r'; country_code[2] = '\0'; break;
            case LC_MEXICO: country_code[0] = 'm'; country_code[1] = 'x'; country_code[2] = '\0'; break;
            case LC_ARABIA: country_code[0] = 'a'; country_code[1] = 'e'; country_code[2] = '\0'; break;
            case LC_CZECH: country_code[0] = 'c'; country_code[1] = 'z'; country_code[2] = '\0'; break;
            case LC_ROMANIA: country_code[0] = 'r'; country_code[1] = 'o'; country_code[2] = '\0'; break;
            case LC_HUNGARY: country_code[0] = 'h'; country_code[1] = 'u'; country_code[2] = '\0'; break;
            case LC_NETHERLANDS: country_code[0] = 'n'; country_code[1] = 'l'; country_code[2] = '\0'; break;
            case LC_USA: country_code[0] = 'u'; country_code[1] = 's'; country_code[2] = '\0'; break;
            case LC_CANADA: country_code[0] = 'c'; country_code[1] = 'a'; country_code[2] = '\0'; break;
            default:
            {
                if (test_server)
                {
                    country_code[0] = 'u'; country_code[1] = 's'; country_code[2] = '\0';
                }
                break;
            }
        }

#if defined(__LOCALE_CLIENT__)
        snprintf(country_code, sizeof(country_code),
            "%s", LocaleService_GetCountry(ch->GetCountry()));
#endif

        char buf[512 + 1];
        char sas[33];
        MD5_CTX ctx;
        const char sas_key[] = "GF9001";

        snprintf(buf, sizeof(buf), "%u%u%s", ch->GetPlayerID(), ch->GetAID(), sas_key);

        MD5Init(&ctx);
        MD5Update(&ctx, (const unsigned char*)buf, strlen(buf));
#ifdef __FreeBSD__
        MD5End(&ctx, sas);
#else
        static const char hex[] = "0123456789abcdef";
        unsigned char digest[16];
        MD5Final(digest, &ctx);
        int i;
        for (i = 0; i < 16; ++i)
        {
            sas[i + i] = hex[digest[i] >> 4];
            sas[i + i + 1] = hex[digest[i] & 0x0f];
        }
        sas[i + i] = '\0';
#endif

        snprintf(buf, sizeof(buf), "mall http://google.com");
        // snprintf(buf, sizeof(buf), "mall http://%s/ishop?pid=%u&c=%s&sid=%d&sas=%s",
            // g_strWebMallURL.c_str(), ch->GetPlayerID(), country_code, g_server_id, sas);

        ch->ChatPacket(CHAT_TYPE_COMMAND, buf);
    }
}
şeklinde değiştirip kullanabilirsin
 
Hocam CEF browser kullanmayın bu hatanın kaynaklarından biride bu. Aynısını bende yaşadım komple kaldırmıştım. Bunun yerine oyun için python tabanlı bir nesne market her zaman daha hızlı ve performanslı olur.
 
Geri
Üst