• Announcement:
    In order to download VIP files, you need to UPGRADE your account.

[GUIDE] Fullscreen resolution overflow fix

Member
May
Threads
12
39
43
18
HubMoney
82
Hello,

As a certain someone pointed out with , a new fix has made its way onto the official binaries. This fix is really small and specific as it would almost never be triggered, unless you specifically trigger it yourself.

How to reproduce?

Basically, edit the file metin2.cfg and replace the resolution (WIDTH / HEIGHT) with those three lines.
Code:
WIDTH 32767
HEIGHT 32767
WINDOWED 0
Unless you have a very unusual and gigantic screen and resolution, it will basically crash, saying that your game doesn't support DirectX, stuff like that.

How to fix?
  • What the fix does is to extend the existing check, that prevents you to add crazy-high resolutions or just slightly higher (1921 / 1081) resolutions. In short, resolutions higher than your resolution. This check was for windowed mode only.
    In PythonSystem.cpp, after the existing if clause:​

Code:
if (m_Config.bWindowed)
{
    { ... }
}

add the following else clause (for fullscreen)

Code:
else
{
    const int32_t screen_width_1 = GetSystemMetrics(SM_CXSCREEN);
    const int32_t screen_height_1 = GetSystemMetrics(SM_CYSCREEN);

    if (m_Config.width >= screen_width_1)
        m_Config.width = screen_width_1;

    if (m_Config.height >= screen_height_1)
        m_Config.height = screen_height_1;
}

It should look like this

.png
 
Top
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock