flo: [WINE] Cannot run current version of W3Champions Launcher with Bottles or Lutris

Tried out running the current version of the launcher with both Bottles and Lutris, but it would crash instantly. The legacy launcher does install, but it would not let me join games, like already mentioned in https://github.com/w3champions/launcher/issues/94.

In issue https://github.com/w3champions/flo/issues/26 the solution is to run the current version, but like mentioned above, it just crashes.

Here’s the stacktrace:

thread 'main' panicked at src-tauri\src\main.rs:75:10:
error while running tauri application: Runtime(CreateWebview(WebView2Error(WindowsError(Error { code: 0x80070002, message: File not found. }))))
stack backtrace:
   0:        0x1410cf2da - <unknown>
   1:        0x1410f7afb - <unknown>
   2:        0x1410c9381 - <unknown>
   3:        0x1410cf0c6 - <unknown>
   4:        0x1410d179f - <unknown>
   5:        0x1410d1437 - <unknown>
   6:        0x1410d1cdd - <unknown>
   7:        0x1410d1b99 - <unknown>
   8:        0x1410cfbe9 - <unknown>
   9:        0x1410d1856 - <unknown>
  10:        0x1411ab747 - <unknown>
  11:        0x1411abc43 - <unknown>
  12:        0x14020bbd0 - <unknown>
  13:        0x140207304 - <unknown>
  14:        0x14013f76d - <unknown>
  15:        0x1401778b7 - <unknown>
  16:        0x140055575 - <unknown>
  17:        0x14018d326 - <unknown>
  18:        0x1401e5e2c - <unknown>
  19:        0x1410c2d02 - <unknown>
  20:        0x14005568c - <unknown>
  21:        0x141168d1c - <unknown>
  22:     0x6fffffeea639 - <unknown>
  23:     0x6ffffff9884f - <unknown>

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Reactions: 9
  • Comments: 22 (2 by maintainers)

Most upvoted comments

It is now possible to run the new launcher on linux. I’ve written a guide with detailed instructions to get it working as well as a lutris script to automate as much as possible of the installation.

@Hillkorn

No, not really.

There might be a chance that Webview2 works with WINE now, but I haven’t checked.

Here’s a little write up of the current situation regarding Linux + current W3Champions launcher that I posted in the linux-support channel on Discord, June 11th, 2024:

hello everyone, so from what I've seen in this chat the current launcher does not work with WINE (webview2 support in WINE is not ready yet). 

I installed wc3 via battle.net launcher within Lutris, then also installed w3champions (legacy) within the same wine prefix. I duplicated the battle.net lutris game entry and set the executable to YOUR_WINEPREFIX/drive_c/users/YOUR_USER/AppData/Local/Programs/w3champions/w3champions.exe .
The legacy launcher did work, bonjour did install, but I could not join any games.

What I had to do - like seanmcnabb mentioned it earlier - is to kill the mDNSResponder process after launching battle.net and then start w3champions via legacy launcher.
After this I could join games, but only 1v1 and custom games since the legacy launcher is limited at the moment.

so in the end w3champions legacy works for 1v1 and custom games for now.

the current version of the launcher needs webview2.
Installing Webview2 by switching to Windows 7 installs an older version of Webview2 (109... something) ... the latest version is around 124 or 125. So that might be the culprit. Webview2 should be installed with Win10, but it needs at least Wine version 9.2.
With Webview2 version 109 you get the window for signing in, but after clicking the button, it just crashes.
My guess is that with a later version of Webview2 you might be able to proceed further.

Related links:
https://forum.winehq.org/viewtopic.php?t=38443
https://bugs.winehq.org/show_bug.cgi?id=56259 (Bug report with patch that fixes the Win10 Webview2 installs)
but currently I cannot finish the install of Webview2, only when switching to win7. so webview2 version 109 might be too old for the w3c launcher 🤔

I decided to sum up the previous messages so some other future Linux user doesn't have to look through the whole chat history 🙂

PS: I also tried the whole procedure within Bottles (Flatpak), but Lutris (also Flatpak) just feels snappier and caused less trouble.

Newest version of webview does indeed install in wine. The issue with the app crashing persists when you click login.

@Hillkorn

No, not really.

There might be a chance that Webview2 works with WINE now, but I haven’t checked.

Here’s a little write up of the current situation regarding Linux + current W3Champions launcher that I posted in the linux-support channel on Discord, June 11th, 2024:

hello everyone, so from what I've seen in this chat the current launcher does not work with WINE (webview2 support in WINE is not ready yet). 

I installed wc3 via battle.net launcher within Lutris, then also installed w3champions (legacy) within the same wine prefix. I duplicated the battle.net lutris game entry and set the executable to YOUR_WINEPREFIX/drive_c/users/YOUR_USER/AppData/Local/Programs/w3champions/w3champions.exe .
The legacy launcher did work, bonjour did install, but I could not join any games.

What I had to do - like seanmcnabb mentioned it earlier - is to kill the mDNSResponder process after launching battle.net and then start w3champions via legacy launcher.
After this I could join games, but only 1v1 and custom games since the legacy launcher is limited at the moment.

so in the end w3champions legacy works for 1v1 and custom games for now.

the current version of the launcher needs webview2.
Installing Webview2 by switching to Windows 7 installs an older version of Webview2 (109... something) ... the latest version is around 124 or 125. So that might be the culprit. Webview2 should be installed with Win10, but it needs at least Wine version 9.2.
With Webview2 version 109 you get the window for signing in, but after clicking the button, it just crashes.
My guess is that with a later version of Webview2 you might be able to proceed further.

Related links:
https://forum.winehq.org/viewtopic.php?t=38443
https://bugs.winehq.org/show_bug.cgi?id=56259 (Bug report with patch that fixes the Win10 Webview2 installs)
but currently I cannot finish the install of Webview2, only when switching to win7. so webview2 version 109 might be too old for the w3c launcher 🤔

I decided to sum up the previous messages so some other future Linux user doesn't have to look through the whole chat history 🙂

PS: I also tried the whole procedure within Bottles (Flatpak), but Lutris (also Flatpak) just feels snappier and caused less trouble.

I am really not that deep in Flo or Lutris, but I really would like this feature to happen. Because I believe the player base on Linux is growing at the moment daylie and I am play myself mostly on a Linux system and really really miss playing WC3.

Could any of the developers give me a hint on what parts I would need to look at or which places are maybe relevant to enable Flo on Linux?