Jump to content

Recommended Posts

  • Premium

This is the hidden content, please

This is the hidden content, please

Not my code (authors Tunga and @ Koray i think), i offer no further support, i already tested it on win 10, 11 and is working.

Update for the in game "browser" called also WebView, with this update you don't need to use the CEF Browser anymore.

Important:
Remember to rename CWebBrowser.c to CWebBrowser.cpp using your version of Visual Studio
Easy to install just copy paste the files...

Extra:
Source of the .lib file for those who need to know from where it is or if you want to update it in the future https://www.nuget.org/packages/Microsoft.Web.WebView2 

You can extract the .lib as i did bellow:

Spoiler

.gif

Edited by DemOnJR
  • Metin2 Dev 74
  • Lmao 1
  • Good 16
  • Love 1
  • Love 32
Link to comment
https://metin2.dev/topic/33840-update-webview-client-srcs/
Share on other sites

  • Bot

This is a solid release for users seeking a quick update from the outdated browser bundled in the binary, which is plagued with numerous issues. However, I do not recommend switching to WebView2 if you are already using Chromium.

Despite being based on Chromium, WebView2 comes with several limitations:

1. Dependency on Edge Runtime: WebView2 requires the Microsoft Edge runtime, which is only available on Windows 10 and newer. There is still a significant number of users running Windows 7.

2. Restricted Environments: In certain restricted or controlled environments, such as corporate or shared workstations, the Edge runtime may not be installed or allowed. (Yes, some users do play Metin2 from work machines.)

3. Limited Control over Chromium Internals: Unlike a full Chromium integration, WebView2 does not offer full access to internal features such as cache management, cookie control, or deep customization.

Edited by Abel(Tiger)
  • Good 1
  • Love 2

english_banner.gif

Link to comment
https://metin2.dev/topic/33840-update-webview-client-srcs/#findComment-171419
Share on other sites

  • Active+ Member
3 hours ago, Abel(Tiger) said:

This is a solid release for users seeking a quick update from the outdated browser bundled in the binary, which is plagued with numerous issues. However, I do not recommend switching to WebView2 if you are already using Chromium.

Despite being based on Chromium, WebView2 comes with several limitations:

1. Dependency on Edge Runtime: WebView2 requires the Microsoft Edge runtime, which is only available on Windows 10 and newer. There is still a significant number of users running Windows 7.

2. Restricted Environments: In certain restricted or controlled environments, such as corporate or shared workstations, the Edge runtime may not be installed or allowed. (Yes, some users do play Metin2 from work machines.)

3. Limited Control over Chromium Internals: Unlike a full Chromium integration, WebView2 does not offer full access to internal features such as cache management, cookie control, or deep customization.

Windows 7 is ancient history. Even Windows 10’s official support is ending soon in just a few months, so continuing to support an OS released over 15 years ago just doesn’t make much sense in 2025. If you Are already modernizing your stack with components like a new browser engine, chances are you HAve had to drop support for older systems elsewhere too, recent(110+) CEF builds are a good example and for those who do still care about backward compatibility, WebView2 offers older versions that support earlier systems, just like CEF does.

Also, the runtime isn’t a huge deal: it's already preinstalled on most Windows 10 and 11 machines. You can bundle it with your app, install it silently during setup, or even trigger a lightweight install on first launch if it's missing so, something as simple as:

HRESULT hr = CreateCoreWebView2EnvironmentWithOptions(...);
if (hr == HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND))
{
    ShellExecute(NULL, "open",
        "https://go.microsoft.com/fwlink/p/?LinkId=2124703",
        NULL, NULL, SW_SHOWNORMAL
    );
}

Let’s not forget what we were dealing with here, this is a simple game. the actual use of a browser in the game is extremely limited: basically just the item shop and the vote stuffs. The shop, in many servers is now implemented as a native ingame interface anyway so no need for a full web browser. And the vote system? that can just open a regular browser window. It’s not something that needs deep browser integration. so realistically, in a game like this, you are not going to miss advanced browser features. WebView2 is more than capable of handling what little web content is actually used.

When you consider that full CEF setups come with massive runtimes (talking hundreds of MBs), take forever to build, and easily use triple more RAM than WebView2, the trade-off becomes pretty clear. At least for me, the lightweight nature and ease of use make WebView2 a much more practical choice.

  • Love 5
Link to comment
https://metin2.dev/topic/33840-update-webview-client-srcs/#findComment-171420
Share on other sites

  • 3 weeks later...
  • Developer
On 7/10/2025 at 11:46 AM, Koray said:

Windows 7 is ancient history. Even Windows 10’s official support is ending soon in just a few months, so continuing to support an OS released over 15 years ago just doesn’t make much sense in 2025.

But he is right, paradoxically you could lose more players using that WebView2 than DirectX11 / 64 bit, It's not worth the risk (?)

 

Also consider that many servers don't even use the in-game browser anymore (commonly used just for itemshop and some vote4buff)

Villains are not born, they are made.
Join

Link to comment
https://metin2.dev/topic/33840-update-webview-client-srcs/#findComment-171629
Share on other sites

  • 3 weeks later...
  • Honorable Member

We also use WebView2. It works on WIn7 if they install the runtime for it.

  • Good 1
  • Love 1

992404397646696589.png
Former C++ Developer at Gameloft on DML
Join my Discord: Distraught Labs

Link to comment
https://metin2.dev/topic/33840-update-webview-client-srcs/#findComment-171805
Share on other sites

  • 3 weeks later...
  • Active Member

This good, but no good, players still play metin2 from bad hardware, like 3gb RAM, older windows.
Player's nowadays barely know how to use computer, they 100% don't know to install other optionall stuff for it.
Bla bla bla:
image.png

Edited by Metin2 Dev International
Core X - External 2 Internal
Link to comment
https://metin2.dev/topic/33840-update-webview-client-srcs/#findComment-172001
Share on other sites

  • Honorable Member
2 hours ago, MariusExygo said:

This good, but no good, players still play metin2 from bad hardware, like 3gb RAM, older windows.
Player's nowadays barely know how to use computer, they 100% don't know to install other optionall stuff for it.
Bla bla bla:
image.png

It's installed by default from Windows 8.1.

  • muscle 1

992404397646696589.png
Former C++ Developer at Gameloft on DML
Join my Discord: Distraught Labs

Link to comment
https://metin2.dev/topic/33840-update-webview-client-srcs/#findComment-172004
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.