Proton: Age of Empires II: Definitive Edition (813780)

Created on 4 Nov 2019  ·  226Comments  ·  Source: ValveSoftware/Proton

Compatibility Report

  • Name of the game with compatibility issues: Age of Empires II: Definitive Edition
  • Steam AppID of the game: 813780

System Information

  • GPU: GTX 680
  • Driver/LLVM version: nvidia 435.21
  • Kernel version: 5.3.8-arch1-1
  • Link to full system information report as Gist:
  • Proton version: 4.11-7

I confirm:

  • [x] that I haven't found an existing compatibility report for this game.
  • [x] that I have checked whether there are updates for my system available.

Proton Log

Symptoms

When it starts, I get a splash screen and a popup: Title: "Wine C++ Runtime Library". Text: "A Program: Z F Press OK to exit program, or Cancel to start the Wine debugger."

Reproduction

Just boot the game normally

Game compatibility - Unofficial

Most helpful comment

Seeing this issue on a new install of the officially released game.

All 226 comments

Possibly due to missing SpVoice object. From your log:

2901.866:0039:003a:err:ole:CoGetClassObject no class object {96749377-3391-11d2-9ee3-00c04f797396} could be created for context 0x17
2909.925:0039:003a:trace:seh:NtRaiseException code=80000003 flags=0 addr=0x7bcaf638 ip=7bcaf639 tid=003a

How can I solve this?

If you want to get into Wine development, implement the SpVoice class and whatever interfaces the app requests (probably ISpeechVoice, possibly more) in dlls/sapi, and see if that is enough to get the game running or if it needs more work past that.

I have tried installing several versions of VC Runtime, both using Winetricks and with normal prefix installation and none of them worked. I also tried using DotNet but I haven't got past that same error you're telling us @ThaChillera

I tried installing SpVoice dll with winetricks today but still nothing. @aeikum I tried sweeping all the error's on Chillera's log and on mine but still nothing.

In case it helps in any way:

https://gist.github.com/Marroja/2c9b6a118c7d6b19359839b92a3fd7c3

At the moment I understand the main problem is regarding an unwinding problem. I'm not sure how to deal with it.

Seeing this issue on a new install of the officially released game.

I think that the problem is related also to https://github.com/ValveSoftware/Proton/issues/2995 so probably in this other ticket there are info to fix this one.

AFAIK this is actually a problem related to sapi.dll not existing?

As a workaround, how hard would it be to kill the speech recognition functionality? I don't think sapi would be needed for anything other than speech recognition, right?

I am trying this but with the last proton (waiting to download the game).
Anyway this tutorial suggest to use DXVK 1.4.4 or newer and Proton 4.11-8 (https://github.com/ValveSoftware/Proton/releases/tag/proton-4.11-8) already include them.

So the big difference with proton is wine staging that they are at wine 4.20 (https://dl.winehq.org/wine/source/4.x/) and to execute the 2 commands of the tutorial to set win10 and reinstall vcrun2017.

So my doubt are more about proton that is using an old version of wine compared to this tutorial.

Following the instructions from reddit:
https://i.imgur.com/zdleeea.png
Using Wine-Staging 4.20.

I installed the game in steam with proton 4.11-8 and get the already known error.
Using the reddit thread (after that installation in steam with all the dependence) I am trying with executing protontricks 813780 win10 vcrun2017.
This didn't worked :-(

After protontricks 813780 speechsdk vcrun2017 win10 I am getting the same error but now the library sapi.dll is avalaible, I am trying to understand if it isn't registered.

"/home/myuser/.steam/steam/steamapps/common/Proton 4.11/dist/bin/wine" regsvr32 sapi.dll
Says that is registered rightly.

Last insights about sapi.dll I don't think that is the problem because is a common issue in wine and everything worked (I searched on mailing lists and so on). So I think that is a fake positive, looking at my debug:

10919.688:002f:0030:err:ole:CoGetClassObject class {96749377-3391-11d2-9ee3-00c04f797396} not registered
10919.689:002f:0030:err:ole:CoGetClassObject class {96749377-3391-11d2-9ee3-00c04f797396} not registered
10919.689:002f:0030:err:ole:create_server class {96749377-3391-11d2-9ee3-00c04f797396} not registered
10919.690:002f:0030:fixme:ole:CoGetClassObject CLSCTX_REMOTE_SERVER not supported
10919.690:002f:0030:err:ole:CoGetClassObject no class object {96749377-3391-11d2-9ee3-00c04f797396} could be created for context 0x17
10956.011:002f:0030:trace:seh:MSVCRT_raise (22)
Setting breakpad minidump AppID = 813780
Steam_SetMinidumpSteamID:  Caching Steam ID:  76561198055726040 [API loaded no]
10957.051:0016:001a:trace:loaddll:free_modref Unloaded module L"C:\\windows\\system32\\drivers\\winebus.sys" : builtin
10957.051:0016:001a:trace:loaddll:free_modref Unloaded module L"C:\\windows\\system32\\setupapi.dll" : builtin
pid 64012 != 64011, skipping destruction (fork without exec?)

The real error is at MSVCRT_raise but doesn't include any hints about the error. I am not an expert of wine/proton but I finished all my ideas.

Uhm I said to quickly, enabling D9VK (PROTON_USE_D9VK=1) I got an error finally:

11342.603:002f:0030:trace:seh:MSVCRT_raise (22)
Unable to read VR Path Registry from C:\users\steamuser\Local Settings\Application Data\openvr\openvrpaths.vrpath
Setting breakpad minidump AppID = 813780
Steam_SetMinidumpSteamID:  Caching Steam ID:  76561198055726040 [API loaded no]
11343.640:0016:001a:trace:loaddll:free_modref Unloaded module L"C:\\windows\\system32\\drivers\\winebus.sys" : builtin
11343.640:0016:001a:trace:loaddll:free_modref Unloaded module L"C:\\windows\\system32\\setupapi.dll" : builtin
pid 64461 != 64460, skipping destruction (fork without exec?)

Hello there, I am the creator of the tutorial and looking at your and mine output I discovered something which might be helpful for you.
I also get this part:
010d:fixme:ntdll:EtwEventRegister ({4372afee-73b0-42ce-9821-7e134361b519}, 0x13f006fd0, 0x13f0595c0, 0x13f0595b8) stub. 010d:fixme:nls:get_dummy_preferred_ui_language (0x8 0x22e1cc 0x22e630 0x22e1c8) returning a dummy value (current locale) 010d:err:ole:CoGetClassObject class {96749377-3391-11d2-9ee3-00c04f797396} not registered 010d:err:ole:CoGetClassObject class {96749377-3391-11d2-9ee3-00c04f797396} not registered 010d:err:ole:create_server class {96749377-3391-11d2-9ee3-00c04f797396} not registered 010d:fixme:ole:CoGetClassObject CLSCTX_REMOTE_SERVER not supported 010d:err:ole:CoGetClassObject no class object {96749377-3391-11d2-9ee3-00c04f797396} could be created for context 0x17

The error Message where you can click on ignore appears right now, when clicked on ignore it goes on like this:
0142:fixme:shell:CustomDestinationList_QueryInterface not implemented for {00000003-0000-0000-c000-000000000046} (unknown) 0142:fixme:shell:CustomDestinationList_QueryInterface not implemented for {00000003-0000-0000-c000-000000000046} (unknown) 0142:fixme:shell:CustomDestinationList_QueryInterface not implemented for {00000019-0000-0000-c000-000000000046} (unknown) 0142:fixme:shell:CustomDestinationList_BeginList 0x5c3a678 (0x993fbcc {92ca9dcd-5622-4bba-a805-5e9f541bd8c9} 0x993fbd8): stub ...

So with wine-staging 4.19 I don't get the MSVCRT_raise error. In mozo78s output (wine-staging 4.20) this error is also missing there just isn't an ignore option for him (for some reason).

DXVK is needed to display buildings and units otherwise they are invisible it shouldn't have to do with this bug.

Here's the log with Wine-Staging 4.19:
https://pastebin.com/DWdmJtZh

Hello there, I am the creator of the tutorial and looking at your and mine output I discovered something which might be helpful for you.
I also get this part:
010d:fixme:ntdll:EtwEventRegister ({4372afee-73b0-42ce-9821-7e134361b519}, 0x13f006fd0, 0x13f0595c0, 0x13f0595b8) stub. 010d:fixme:nls:get_dummy_preferred_ui_language (0x8 0x22e1cc 0x22e630 0x22e1c8) returning a dummy value (current locale) 010d:err:ole:CoGetClassObject class {96749377-3391-11d2-9ee3-00c04f797396} not registered 010d:err:ole:CoGetClassObject class {96749377-3391-11d2-9ee3-00c04f797396} not registered 010d:err:ole:create_server class {96749377-3391-11d2-9ee3-00c04f797396} not registered 010d:fixme:ole:CoGetClassObject CLSCTX_REMOTE_SERVER not supported 010d:err:ole:CoGetClassObject no class object {96749377-3391-11d2-9ee3-00c04f797396} could be created for context 0x17

The error Message where you can click on ignore appears right now, when clicked on ignore it goes on like this:
0142:fixme:shell:CustomDestinationList_QueryInterface not implemented for {00000003-0000-0000-c000-000000000046} (unknown) 0142:fixme:shell:CustomDestinationList_QueryInterface not implemented for {00000003-0000-0000-c000-000000000046} (unknown) 0142:fixme:shell:CustomDestinationList_QueryInterface not implemented for {00000019-0000-0000-c000-000000000046} (unknown) 0142:fixme:shell:CustomDestinationList_BeginList 0x5c3a678 (0x993fbcc {92ca9dcd-5622-4bba-a805-5e9f541bd8c9} 0x993fbd8): stub ...

So with wine-staging 4.19 I don't get the MSVCRT_raise error. In mozo78s output (wine-staging 4.20) this error is also missing there just isn't an ignore option for him (for some reason).

DXVK is needed to display buildings and units otherwise they are invisible it shouldn't have to do with this bug.

Have you tried to run
winetricks -q vcrun2015
When using wine 4.19 staging?

Yes I did. It doesn't change nothing :(
Here's the log with vcrun2015 and Wine-Staging 4.19:
https://pastebin.com/Xk04auTH

I was actually asking Georg, but nevermind,
I GOT IT WORKING on pure wine 4.19 staging installation, I even though I got the "message where you can click ignore" (the same one as you reported you got on 4.20 https://i.imgur.com/zdleeea.png.. but as georg said on 4.19 staging you can click on ignore for some reason)..

Great that it also worked on pure (wanted to test this in the next few days, but other people aren't as lazy as me ;))

The missing buildings are fixed with DXVK.

Interesting that the ignore button is missing in 4.20

:) So where did you manage to run it before? or how did you know that DXVK is needed for buildings and units?

:) So where did you manage to run it before? or how did you know that DXVK is needed for buildings and units?

I saw the game needed DirectX11 (looked at Systemrequirements) and I knew that it isn't yet fully implemented in wine, so I tried DXVK, which just worked.

I reinstalled vcrun, because I thought that a reinstalled vcrun would help. I hadn't the idea to click on ignore before I did that so I was unsure if it really runs on pure.

Have you also changed the Windowsversion or does it also run with "Windows 7" ?

:) So where did you manage to run it before? or how did you know that DXVK is needed for buildings and units?

I saw the game needed DirectX11 (looked at Systemrequirements) and I knew that it isn't yet fully implemented in wine, so I tried DXVK, which just worked.

I reinstalled vcrun, because I thought that a reinstalled vcrun would help. I hadn't the idea to click on ignore before I did that so I was unsure if it really runs on pure.

Have you also changed the Windowsversion or does it also run with "Windows 7" ?

I am not sure we mean the same thing by "pure" .. I still ment the staging version, just not proton.. And yes, it runs with Windows 7 as well.. But now I have installed the DXVK and it doesn't run anymore.. The game just doesn't pop up, only cursor changes and then nothing is rendered and mouse is not moving (looks like the screen is controllerd by the app but nothing is rendered) and I can get out of it only after I press alt+tab .. I am probably still missing some DX dependencies ?

EDIT: OK, now it runs, and buildings and units are rendered properly.. I just wasn't patient enough :)

Has anybody tried online functionality?

I was actually asking Georg, but nevermind,
I GOT IT WORKING on pure wine 4.19 staging installation, I even though I got the "message where you can click ignore" (the same one as you reported you got on 4.20 https://i.imgur.com/zdleeea.png.. but as georg said on 4.19 staging you can click on ignore for some reason)..

What do you mean by pure? Without vcrun2017? It doesn't run both with or without vcrun 2017 installed and I have no "Ignore" button with Wine-Staging 4.19...

Has anybody tried online functionality?

Spectating works flawlessly.

Haven't tried out a real match yet, but I am expecting it to work.

We mean by pure that no changes were made to the prefix.

Maybe the missing button is distribution related, I use ubuntu 19.10, which one do you use?

The reason people aren't getting the "Ignore" button on the assertion error is that when vcrun2017 is being installed, for some reason ucrtbase.dll isn't being installed properly.

Copying over a 64-bit ucrtbase.dll to c:windowssystem32 is sufficient to get the "Ignore" button to work, after which the game works fine in Proton.

Ideally, of course, either wine would support the SpApi speech API stuff properly, or the game would handle it not loading better, but this works for now.

Maybe the missing button is distribution related, I use ubuntu 19.10, which one do you use?

Not the guy you replied to, but I am using Manjaro 18.1.3 KDE and I also am not getting an "ignore" button on the error.

Edit: doing the above fix makes the ignore button appear for me, but the game is hanging after that when using Proton

Edit 2: can get in game now

Edit 2: can get in game now

Did you just have to wait or did you do something specific? Proton hangs for me too

Copying over a 64-bit ucrtbase.dll to c:windowssystem32 is sufficient to get the "Ignore" button to work, after which the game works fine in Proton.

Any idea why this is missing for some people ?

When I create a new wine prefix the ucrtbase.dll is automatically in system32 without doing anything else, so it should be unrelated to vcrun.

I'm not sure why this is happening, but I've not looked in detail.

The reason there's a ucrtbase.dll already in system32 is that wine provides one: the wine version will get you the Assertion error without the "Ignore" box though, so you want Microsoft's version, so you'll want to replace (or override) the wine ucrtbase.dll with the Microsoft one. I think the Microsoft one should be being installed by vcrun2017, but I could be wrong on that (I never got it to work, and had to copy the file from windows manually).

Edit 2: can get in game now

Did you just have to wait or did you do something specific? Proton hangs for me too

I decided to abandon proton and instead use the suggestions here and on the reddit thread. Here's exactly what I did:

  • set wine version to "lutris-nofshack-4.19-x86_64" in lutris. (wine staging version 4.19 also works, but I wanted to use Esync)
  • install/enable DXVK 1.44 and D9VK
  • uninstall existing vcrun2017, then install again using winetricks
  • set windows version to windows 10 using wine config
  • install speechsdk via winetricks
  • copy over 64-bit ucrtbase.dll to c:windowssystem32 to enable "ignore" button (I was using lutris, so I put it in /home/yourusernamehere/.local/share/lutris/runners/winesteam/prefix64/drive_c/windows/system32/)
  • run game
  • get this error on launch, press ignore
  • get "crash without flag file" error, press OK
  • wait a while, game launches, and play

Edit: bonus tips:

  • enable Esync if you are using Lutris, it increases performance by a lot
  • if zooming doesn't work, try alt tabbing out and back in to the game, that seems to fix it

I finally could get in game! thank you all guys.

I also noticed that the game is having the same Infinite scroll issue as in Age of Empires: HD Edition when you hit alt+tab (sometimes just randomly).

The root of the problem may be the same than in HD, which, according to Sulix's reply was that

"The game is using the GetKeyboardState() function to read the arrow keys (and other keys), and is not checking the result correctly. The MSDN documentation for the function only defines the low bit (0x01, meaning that the key is "toggled" à la Caps Lock) and the high bit (0x80, meaning that the key is pressed). Age of Empires (both 1 and 2) check if the key is pressed by checking if the result is > 1. This works most of the time, as it does not depend on the low bit. However, the undefined "middle" bits are occasionally used by windows/wine internals, and are not guaranteed to be zero. The game should check only the high bit (by ANDing it with 0x80).

"

It's very likely that this is the very same issue happening in this version as well.

Has anybody tried online functionality?

Spectating works flawlessly.

Haven't tried out a real match yet, but I am expecting it to work.

We mean by pure that no changes were made to the prefix.

Maybe the missing button is distribution related, I use ubuntu 19.10, which one do you use?

I use Arch :)
Thank you guys! Copying ucrtbase.dll did the trick!!!

It's not clear for me about how to get that working with Proton.
I tried protontricks 813780 speechsdk vcrun2017 win10 and later downloaded ucrtbase.dll using https://github.com/ValveSoftware/Proton/issues/1538#issuecomment-529124095

cd $(mktemp -d)
wget "https://aka.ms/vs/16/release/vc_redist.x64.exe"
cabextract vc_redist.x64.exe
cabextract a10
ls ucrtbase.dll

And put on /home/my-user/.steam/steam/steamapps/compatdata/813780/pfx/drive_c/windows/system32/.
Everyone talks about to uninstall vcrun2017 but is not clear for me that step but I think that reinstall should be enough.
I get now the window with the ignore button but on pressing the game crash.

AoE2DE_s_d3d11.log inside the game folder contain this:

warn:  D3D11CoreCreateDevice: Adapter is not a DXVK adapter
info:  Game: AoE2DE_s.exe
info:  DXVK: v1.4.4-8-gb489f789
warn:  OpenVR: Failed to initialize OpenVR
info:  Enabled instance extensions:
info:    VK_KHR_get_physical_device_properties2
info:    VK_KHR_surface
info:    VK_KHR_win32_surface

PS: I get the ignore window also without speechsdk installed and without reinstall vcrun2017, it's just enough to replace the ucrtbase.dll file

I was actually asking Georg, but nevermind,
I GOT IT WORKING on pure wine 4.19 staging installation, I even though I got the "message where you can click ignore" (the same one as you reported you got on 4.20 https://i.imgur.com/zdleeea.png.. but as georg said on 4.19 staging you can click on ignore for some reason)..

Having done that... can you install the UHD DLC? My wine steam library is shown black... Setting wine config to WinXP won't work as it is not supported anymore.

I got it working with Proton! Well not the official one anyway.
Using a Proton fork that include the latest wine and stuff <Link removed by moderator>, installing as reported in the readme.
Next closed and restart steam, change as say the readme of this fork and pick that Proton version. I removed the folder /home/myuser/.steam/steam/steamapps/compatdata/813780/ and executed in Steam the game with this new proton (so reinstall everything).

Got the usual error az etc, executed protontricks 813780 vcrun2017, after replace the ucrtbase.dll in /home/myuser/.steam/steam/steamapps/compatdata/813780/pfx/drive_c/windows/system32/.

In launch option of AGE2DE I put PROTON_NO_ESYNC=1 PROTON_USE_WINED3D=1 %command% and now is working! The big problem is that the units and buildings are invisible so I am trying to understand why. If I not use wined3d I get CreateDXGIFactory() failed error.

Hello @Mte90, unfortunately, that build of Proton contains a legally problematic workaround which was integrated into it and can not be recommended here.

uh okay but shows that the big issues here is that proton is based on an old wine version to support this game.

I am trying to follow the above steps, but I keep getting a black screen when trying to access the steam library or store through wine. Has anyone else experienced this?

Hello @EnriqueWood, @tkamat, in general, Steam for Windows when run in Wine should be discussed on wine's forums/bug tracker.

That set aside, there's a good chance you've encountered the same issue that was reported at https://bugs.winehq.org/show_bug.cgi?id=39403 and you may have some luck launching steam.exe with -no-cef-sandbox.

Anyway on my laptop when I switch to use DXVK I get an alert about VRAM is not enough to play. In my case is because my laptop has 2 video cards intel/nvidia.
So I am trying now with primus and primusvk to see if I can switch to the nvidia one that is more powerful.

As a quick status update, I've been playing this quite a bit under Proton 4.11, and while it's not exactly stable (or particularly performant), it's definitely playable.

So, my current steps for getting this to work with Proton 4.11 are to:

  • Replace ucrtbase.dll
  • Delete/rename the $GAMEPATH/resources/_common/movies directory (this seems to work around a randomly black screen/hang at the start)
  • Click "ignore" on startup

I've not needed to:

  • Use a newer version of wine
  • Install the windows version of Steam under wine.
  • Install/uninstall vcrun2017 manually
  • Install sapi (it doesn't work anyway, you have to click "Ignore" on the assertion whether it's installed or not)
  • Install mf (Media Foundation) — the videos don't work either way, and attempting to play them sometimes causes the game to hang. Delete the video files, and avoid the "Art of War" bit that needs them.
  • Use wined3d — there are some major graphical issues with the wined3d included in Proton 4.11 and AoE2DE, but I haven't seen any with dxvk.

I've noticed:

  • There appear to be some performance problems, particularly with the higher graphics settings (resolution in particular). Don't know if that's the case on Windows as well, but it runs much worse than I expected, and much worse than Age of Empires 1 DE. (It's still very playable at low resolutions, though).
  • It sometimes — after playing for a long time — seems to cause my system to start swapping like crazy or otherwise become unresponsive. (It seems to use a lot of RAM and a lot of VRAM, and despite having more than the minimum requirements there, it seems to thrash a bit). Maybe upgrading to the newer nVidia driver which falls back to system memory more often will help, maybe not.
  • Multiplayer works successfully. (At least, I don't think I can blame my losses on wine/Proton instead of my general lack of skill at the game.)
  • The mods menu seems to crash when clicking on a mod.
  • The Intro video doesn't work, nor do the videos in-game (which cause a hang).
  • Clicking on the XBox sign-in button does nothing.
  • The infinite scrolling bug is still present (wine bug #30814)

Otherwise, it's working pretty well.

There appear to be some performance problems, particularly with the higher graphics settings (resolution in particular). Don't know if that's the case on Windows as well, but it runs much worse than I expected, and much worse than Age of Empires 1 DE. (It's still very playable at low resolutions, though).

I've read a test on Windows where they tested the 4k DLC on a PC with an i7 4770k, 16gb RAM and a gtx 1660ti. They got sometimes less then 30FPS and they were still running the game on 1080p.

I will test this out in the next few days on a 1440p monitor and see what performance I can get there. But having read this test it looks like we don't ve such a bad performance on this game compared to Windows ;)

I can also confirm that the game is able to freeze the system, on an AMD GPU so this is nvidia unrelated.

OT (hope this is okay):

Anyway on my laptop when I switch to use DXVK I get an alert about VRAM is not enough to play. In my case is because my laptop has 2 video cards intel/nvidia.
So I am trying now with primus and primusvk to see if I can switch to the nvidia one that is more powerful.

Why don't you switch permanently with prime-select nvidia
or use nvidia on deman and then use the GPU with: __NV_PRIME_RENDER_OFFLOAD=1 Application
If you select the nvidia via prime you might need to initialize vulkan with sudo vulkaninfo

@sulix I can confirm that your Proton solution works perfectly, I am even getting relatively good performance.

Here's how it performs:
https://youtu.be/NNFcSKum7CQ
After ~15 min. it slows down.

The solution suggested by @sulix didn't work for me. However, going one stop further by enabling PROTON_USE_WINED3D enabled the game to work and start, but as others said, the units/buildings are not visible, so it's not playable.

AMD Ryzen 5 2500u with Vega 8, 8GB of RAM on Ubuntu 19.10.

On wine-staging 4.20:

-- Winetricks vcrun2017
-- Replace ucrtbase.dll
-- Enable DXVK
-- Click "ignore".

And then it was playable for me (with very poor performance). It would not give the "ignore" option until after adding both vcrun2017 and replacing ucrtbase.dll.

I'm on Ubuntu 19.10 with I7-6700k, 16GB RAM, GTX 1060 6GB.

I can confirm @busyboredom, however, performance good. Did exactly the same in and worked no problem at 110FPS on lowest settings. Perfectly playable.

Mods installed in Windows work fine, it's the mod installation window the one that fails. Not sure if there's another workaround.

I was able to run also with @sulix 's guide above. That did it for me.

I noticed the game ran much smoother in Proton-4.11 than on Wine 4.20 using DXVK. In both cases the game crashed during some loadscreens and Mod download screen but other than that it was perfectly playable.

On Pop_OS 19.10, Ryzen 2600, 8GB RAM and GTX 970.

I also followed @sulix 's guide, and it worked like a charm. No performance issues, except a bit of a stutter in the loading screen when launching a game.

I'm Using Proton-4.11 on Arch Linux, on a low-medium range laptop (Lenovo Legion y520).

Thanks to the @sulix 's guide steps I could run it using Proton-4.11-8.

Although it works pretty fine, with graphics maxed out and the Enhanced Graphics DLC on it just closes (in windows 10 it worked ok).

My PC specs are:
Kubuntu 19.04 (64 bits)
Intel i5 [email protected]
16GB RAM@3200MHZ
Nvidia GTX1080ti
Game installed on SSD

I can also confirm @sulix 'x guide. I tried it using Proton-4.11. No performance issues, although my test run was pretty short.

On Ubuntu 18.04 LTS using i3wm, with intel i7, 32 GB Ram, GTX 970M

By using the @sulix guide I manage to run the game but I don't see the units and buildings on the map. I am using "PROTON_NO_ESYNC=1 PROTON_USE_WINED3D=1 %command%" as launch option. I guess using the wined3d makes the issue with buildings? But if I don't use it my game crashes even before getting the assertion error... Any advice? Maybe some other flag I could use? Seems that if I resolve this issue I will be able to play without issues so any help on the topic is appreciated 😄

My system is on fully up-to-date Arch, Proton 4.11-8, and i7 with integrated AMD Vega M graphics - latest Mesa drivers.

Hello @hogar1977, please verify you have the vulkan-radeon and lib32-vulkan-radeon packages installed.

@kisak-valve May all the internet gods grant you a 2020 year of good google search fortune and prosperity!!! It works!!!! With no performance issues that I can see. Will test multiplayer later this evening and report back :D

Can confirm game is launching with the infos provided here by @sulix
Copying over the ucrtbase.dll info ~/.steam/steam/steamapps/compatdata/813780/pfx/drive_c/windows/system32/ lets the game run after clicking the ignore button on the "Assertion failed!" popup.
However, after running the benchmark test and changing some hotkeys in the options menu, on clicking the apply button the main menu froze completely. Mouse stuttered and music was still playing, but besides the background image, no buttons where visible and nothing was clickable. Tabbing out of the game wasn't possible anymore so the hard reset was the only option for me.

The benchmark worked and revealed a result of 1172 points for me.
System is a DELL XPS 15 with i9-8950HK, 64Gig of RAM and an NVIDIA GTX 1050TI on Ubuntu 19.10 using proprietary nvidia driver 435.21 for anyone interested.

EDIT: Still testing and the main menu freeze is probably linked to my multi-monitor setup. After disabling 2 of the 3 monitors, the crashing seems to have disappeared. Changing the language in the options menu worked and I could start a campaign after applying the changes. Also steam achievements work.

EDIT2: Streaming the game via Steam Connect is possible, but the cursor randomly vanishes into oblivion and playing without mouse cursor is kinda impossible. Resetting the cursor via the options menu is possible by changing its bigness, but it will vanish shortly after again.

EDIT3: Seems that the menu freezes aren't related to the multimontor setup. It froze again using just 1 monitor after returning from the william wallace campaign window. Also some ingame sounds seem to be missing for me. I can not hear the units dying for some reason.

@the-coding-owl
I have experienced the freezing that you are talking about also in Windows, so I think it might be simply a game bug that they need to iron out...

Other than that for me game works, but when number of units on map get higher (>200 per player in 3 v 3 match) it starts to lag a bit. That might be due to game itself or due to my computer not being top notch...

Did somebody find a workaround to the Mods section crashing when clicking on some item? I thought subscribing to them in windows would do the trick (as it was in the HD version), but it did not, my mods just weren't there. I'd really like to have some mods active (e.g I'd really appreciate to have the tech tree mod enabled, so I can have a quick look at civ units without having to go to the tech tree full screen).

Any ideas on how to workaround this problem?

I have tried running AoE2:DE on the LTSC version (no Xbox network here) and I've been able to download the mods no problem, so at least I can confirm it's not a problem coming from not having Xbox Network thing at Linux.

Update on my situation: I also had the problem of missing HUD and and units, but it happened just once, and I don't know how to reproduce it. If you are having this problem, don't give up and try to restart the gamea few times, it might just work.

The infinite scrolling bug is still present (wine bug #30814)

Hmmm I don't get that Bug anymore with proton, can anyone confirm that?
Also ESYNC doesn't give me any performance increase, is that also the case for other people ?

EDIT: We also had a lot of discussions here about how to run the game but the issue is that ucrtbase.dll isn't installed by vcrun, so maybe we should investigate why this is the case to fix this bug

Using Esync did seem to improve performance for me, however the game still suffers from major performance issues, and not just on Linux. I've seen (admittedly inconsistent) reports of Windows users with high-end rigs that still have crashing and low FPS on reddit. There is a more official forum thread about it here, so the devs are at least aware of the problems.

I haven't tested with proton yet, but I am not getting the ~120fps some people are reporting, with or without the HD pack enabled.

I tested the Enhanced Graphics DLC and I can get into games with it, however loading Screens are longer and the Benchmark crashes. My guess would be that AOE2 consumes too much memory, I've logged the usage with a script and it goes close to using all my swap and 16 gb RAM. I will try it again with a bigger swap tomorrow

I tested the Enhanced Graphics DLC and I can get into games with it, however loading Screens are longer and the Benchmark crashes. My guess would be that AOE2 consumes too much memory, I've logged the usage with a script and it goes close to using all my swap and 16 gb RAM. I will try it again with a bigger swap tomorrow

Please let us know if you are successful with that. I have 16gb ram too and have the same issue. I tried with a 11gb swap partition and the game still crashes due to heavy swapping.

So for now the it looks like the only way to run it with the enhanced graphics pack dlc is either to get a bigger amount of ram or wait for optimizations to the game. It would be really nice if we could find some workaround though

Using @sulix method to get proton to work. The game itself works fine despite the high ram use.

However I am unable to play any challenges (art of war), it shows the scene of Sun Tzu but freezes when these are done. Anyone else got this?

Note: I already deleted the videos as recommended by Sulix.

Did somebody find a workaround to the Mods section crashing when clicking on some item? I thought subscribing to them in windows would do the trick (as it was in the HD version), but it did not, my mods just weren't there. I'd really like to have some mods active (e.g I'd really appreciate to have the tech tree mod enabled, so I can have a quick look at civ units without having to go to the tech tree full screen).

Any ideas on how to workaround this problem?

@EnriqueWood
I first installed the game on Windows and I was able to subscribe to the small trees mod. After that I installed the game on Linux and the mod was preselected already, I did not have to do it again... However, when I try to select any mod the game crashes instantly. Did not test again if that is the case in Windows too. Maybe it started happening after some of their updates?

I tested the Enhanced Graphics DLC and I can get into games with it, however loading Screens are longer and the Benchmark crashes. My guess would be that AOE2 consumes too much memory, I've logged the usage with a script and it goes close to using all my swap and 16 gb RAM. I will try it again with a bigger swap tomorrow

@GeorgScheumann
My computer is fairly decent and able to run AoE2HD in 4k without issues. But with this game, when I play on 4k it really struggles. When I reduce the resolution to 1080p and disable the Enhanced Graphics pack and put all settings on low, it runs smoothly but looks like crap :D will try with 2k resolution today I think and see how it goes :/ For the record, I am able to run War Thunder (a fully 3D game) on low to medium settings smoothly on my machine.
I have really no idea on what kind of computers they were 'testing' this game because they were hyping it for a long time and upon release it is really crappy in many ways. A shame really. I hope they will fix the issues fast or people will not really be motivated to switch :/

Okay, I was able to run a Benchmark, with the enhanced Graphics DLC enabled. Resolutions was set to 2560x1440. I increased the size of the swap file to 14gb, but only 5gb of swap were ever used + ~15gb ram by system and game. My Score was 1069, with everything set to ultra, VSYNC disabled and average about 20FPS. My hardware is 16gb RAM, Ryzen 7 3700X and a Vega 56.

Using @sulix method to get proton to work. The game itself works fine despite the high ram use.

However I am unable to play any challenges (art of war), it shows the scene of Sun Tzu but freezes when these are done. Anyone else got this?

Note: I already deleted the videos as recommended by Sulix.

I can start the Scenearios, there are also Videos in
$gamepath/resources/en/campaign/movies, try to delete these too.

Windows Users also do get performance issues, some tests reported that GTA V has more FPS in Ultra Settings than this game on the same hardware.

Also I was able to install a Mod "(ANDI) China Diplomacy", because that one is selected by default and I can click on subscribe, and it installs. When I select another one the game crashes, I ve tried to select another one with the search function, sorting by category's, with the keyboard and clicking on it.

Tested this with another System of mine.
On a Thinkpad E470 with 16Gig of RAM and an NVIDIA the game is unplayable in fullscreen mode, because it stutters like hell. However in windowed mode it runs just fine. Played roughly 15 Mins of campaign until a full crash ended the experience.

@EnriqueWood

  • I can confirm that installing mods in Windows works
  • I can confirm that trying to install a mod in Linux instantly crashes the game for me
  • Mods installed in Windows are available in Linux - but I think you have to allow sufficient time for the Steam account to upload your subscriptions in Windows to Steam servers first - dont log out for a while after you have selected them.

@hogar1977 I tried again leaving the game open like 15 minutes after subscribing to some mods, rebooted the pc on Linux and the mods were there. So that confirms your theory, thanks for that :)

copy ucrtbase.dll did the work, I can launch the game but having texture issues, and the initial UI is invisible, aside that it is playable

You have to use DXVK, the game runs pretty well without any graphical glitches:
https://youtu.be/NNFcSKum7CQ

Anyone experienced the missing Unit dying sounds? Beside that, I get all the sounds. Even Buildings collapsing. Can not figure out where to look for that.

I am trying with my optimus laptop and vulkan, so I changed the command to PROTON_NO_ESYNC=1 pvkrun %command% but I had issues like @individuo7.
I started the game like 3 times and crashed in three different ways, menu unloaded, menu loaded and starting the tutorial black screen and no sound but cpu very high and the last one menu unloaded but with buttons possible to click it.

Screenshot_20191123_154701

@mte90 doesn't primus_vk use bumblebee? I always thought that it had lots of performance issues.

Nvidia prime also has the abilliity to offload games on the discrete nvidia GPU, with: __NV_PRIME_RENDER_OFFLOAD=1 %command%.
Or you could use nvidia-xrun which is mentioned in the link above.

Right now on Debian nvidia-prime is not avalaible and also nvidia-xrun.
So I can use only bumblebee...

Can I ask you where did you get ucrtbase.dll to replace the original with?

Edit: nvm, extracted from vc redist.

I managed getting past the "assertion failed" issue by following the instructions in this thread. I get a dialog saying that the minimum specification for AoE2DE of at least 2GB of dedicated VRAM has not been met. That is not correct and does not happen in the Windows installation.
Is anyone else having this issue?

@jblumtritt
You can increase your VRAM with winetricks,
winetricks videomemorysize=NumberInMb

The reason that ucrtbase.dll isn't extracted is because, the vcrun installer doesn't touch the wine ucrtbase.dll, but if you remove/rename the default one and then run protontricks 813780 vcrun2017 , the real ucrtbase.dll gets installed and AOE2:DE starts with it.

I got this information from here and tested it.

Anyone experienced the missing Unit dying sounds? Beside that, I get all the sounds. Even Buildings collapsing. Can not figure out where to look for that.

The missing dying sounds was a problem with Windows too. I think one of the recent game updates solved that issue.

I have played several mulitplayer games on 2880p resolution and I have an issue that health bars over units and the unit selection rectangle that gets drawn while selecting units are all shown with an offset - to the upper left of units. Its not unplayable but it makes it harder and weird. Anyone else experiencing this?

I will try playing on 4k and 1080p and see if I get the same issue. Maybe its not related to linux but its a game bug...

@GeorgScheumann

You can increase your VRAM with winetricks,
winetricks videomemorysize=NumberInMb

Thanks!
I used protontricks to increase VRAM. The error message "minimum specification for AoE2DE of at least 2GB of dedicated VRAM has not been met" doesn't show anymore.
But unfortunately now i get another one:

"Could not initialize graphics system. Make sure that your graphics card meets the minimum system requirements.: CreateSwapChain() failed! HRESULT=0x80070057.
: e:_phoneix2sphoenixaocengineosservices.h(114)"

I am still confused because there is no such error message when I start the game on a parallel Windows on the same system.

Have you guys found a way to make V-Sync (or even betterframe time capping) at driver level using Nvidia gpus? I see that the in-game's V-Sync is completely broken for this game (even in the native windows version, however in windows you have Riva to cap frametime)

You can try libstrangle :)

https://github.com/milaq/libstrangle

@mozo78 I just tried with libstrangle using the following LAUNCH OPTIONS for the game in Steam :
strangle 144 %command%
VSYNC=2 strangle %command%
VSYNC=1 strangle 144 %command%

None of them worked for me.

Do you see anything that could be wrong in there? I'd really like to get this to work

You can try with strangle 144 /path/to/game or
export FPS=60
LD_PRELOAD="libstrangle.so:${LD_PRELOAD}" /path/to/game

@mozo78 I don't really know how to do that since I'm running the game through steam client

I tried running those two commands replacing /path/to/game with /home/ewood/.steam/ubuntu12_32/steam steam://rungameid/813780 and it did not work

You just have to find the game's directory :)

@mozo78 I tried running the game using this
STEAM_COMPAT_DATA_PATH=$HOME/.steam/steam/steamapps/compatdata/813780 strangle 144 ./.steam/steam/steamapps/common/Proton\ 4.11/proton run .steam/steam/steamapps/common/AoE2DE/AoE2DE_s.exe and can't even get in game. I get this screen
error_aoede

It's normal, you have to install Windows Steam client if you want to use the game like this.

I got libstrangle to work using linux steam and proton setting PROTON_USE_WINED3D in LAUNCH_OPTION

The comman used was:
PROTON_USE_WINED3D=1 strangle 15 %command%

It runs at pretty low fps though (that's why I did the tests limiting to 15FPS instead of 144), and it does not show unit/building textures though, I'll try to make them work

The missing textures and low perf are from not using DXVK.

I finally got frame limiting working on linux' steam client for this game, proton and vulkan!

After many tests It worked using VkGHL (alternative to libstrangle)

The process is the following:

Follow the instructions in VkGHL project's repo readme, then add the compiled layer into Vulkan's Application side layers (using vkconfig) and finally choose the options in the game in Steam (using SET LAUNCH OPTIONS...).

For me they were FPS=144.0 VSYNC=1 %command%

That's great news :)

How difficult would it be to make a pull request to Proton so these issues are fixed for everyone?

@AlexLeung please click on the fork button, dig into the code, debug and fix it. :)

How difficult would it be to make a pull request to Proton so these issues are fixed for everyone?

Well the problem here is that the ucrtbase.dll isn't installed because there is already one there.

There is a bug report in wine Bugzilla here, which also contains a patch, however it is marked as not a bug, since it is intended behavior that ucrtbase.dll isn't extracted when it is there.

A nother work around would be for proton to check if vcrun is listed as dependency and then remove ucrtbase.dll, so the real one can be installed.

One major misconception I'm seeing in this thread is that the problem is somehow related to ucrtbase.dll. That is not the case. the ucrtbase.dll that is preinstalled into the wine/proton prefix is the one supplied by wine/proton and contains a more or less complete implementation of the relevant functions, with one major exception: You can't ignore errors. I believe this is intended behavior, since when applications misbehave in wine/proton, you want to know the source of the problem. Ignoring problems would be bad all around, since it can lead to other, stranger behaviour further down the line, hence using the "real" ucrtbase.dll isn't an optimal solution that should really be recommended.

If you want to file a bug report, it should be targetting the missing SpVoice implementation in dlls/sapi as suggested by @aeikum near the start of this thread.
I imagine a proper fix for this, short of fully implementing SpVoice in wine/proton, would involve stubbing out the necessary functions up to the point where the game will accept the object we give it, even if it's completely nonfunctional beyond that.

One major misconception I'm seeing in this thread is that the problem is somehow related to ucrtbase.dll. That is not the case. the ucrtbase.dll that is preinstalled into the wine/proton prefix is the one supplied by wine/proton and contains a more or less complete implementation of the relevant functions, with one major exception: You can't ignore errors. I believe this is intended behavior, since when applications misbehave in wine/proton, you want to know the source of the problem. Ignoring problems would be bad all around, since it can lead to other, stranger behaviour further down the line, hence using the "real" ucrtbase.dll isn't an optimal solution that should really be recommended.

If you want to file a bug report, it should be targetting the missing SpVoice implementation in dlls/sapi as suggested by @aeikum near the start of this thread.
I imagine a proper fix for this, short of fully implementing SpVoice in wine/proton, would involve stubbing out the necessary functions up to the point where the game will accept the object we give it, even if it's completely nonfunctional beyond that.

What you are saying makes total sense and I couldn't agree more on that.

Even though I can understand the reasons for that to be the intended behavior, it would be a really interesting (and useful) feature that you could provide a flag to allow error ignoring -being completely aware that it could bring some other malfunctions and weird behavior deeper in the execution flow- just to be able to make work some stuff that could still run with some missing implementations (which could take an undetermined amount of time -just not to say it could get never ever done- to be developed) , as the case we are seeing here.

I can confirm that with nvidia-xrun, without bumblebee installed and nvidia-vulkan-common packaged installed I can start the game using openbox on debian (https://wiki.debian.org/NvidiaGraphicsDrivers/NvidiaXrun).

The problem is that with some campaigns the game crashes but I hope that the new update of tomorrow that include a lot of bugfixes this problem wil gone.

It seems like they removed the sapi with the december update.
At least I don't have to patch ucrtbase.dll anymore.

Searching for mods to install or selecting a mod from the list crashes to desktop every time for me. Trying to play The Art of War scenarios freezes. I've also had freezes right after a match begins sometimes, though not since the December update.
Are these problems for everyone, or unique to my system? I'm using Fedora 31.

Hi @kaktuspalme, How did you get it to work after the update? I had it working before the update however after the update it does not work anymore.

@cptrodolfox Maybe you have to remove the movies folder again? On my system that's the only thing I had to do to get it working in Proton.

@Nebulon-BFrigateFTW

Crashes after selecting any mod is happening to everyone on Linux. In Windows it works tho, so if u have the game installed somewhere on a Windows box, u can select the mods that u want, let them get installed, allow sufficient time for the same to be synced to Steam server and after u go back to your Linux installation it will also be synced and the mods will be shown as installed and will work. I haven't searched for any logs or whatever to find out the reason behind the crash while selecting them :/
The scenarios and Art of War freeze I think because they require movies to play out and since u have to remove the movies folder to be able to play the game at all its a catch 22 I guess...

Another thing which doesn't work at the moment is hosting a Local LAN Multiplayer with proton or wine.
AoE starts BattleServer.exe in the background but unfortunately it crashes directly. Without it running there's no LAN option in the create lobby section in multiplayer.

@hogar1977
I see. Well, a workaround is to subscribe to the mods on the official website. The installed mods tab doesn't crash, even when you select a mod.
Sounds like we really need to figure out how to get movies to work, or at least skip playing them instead of freezing. The Art of War is pretty important for newer players like me.

I should also note that after alt-tabbing, the bottom panel on my desktop gets shown overtop the game, which is less than ideal; is there a configuration that fixes that? I was also getting infinite scrolling, but there's a workaround for that in disabling the scrolling hotkeys.

@hogar1977
I see. Well, a workaround is to subscribe to the mods on the official website. The installed mods tab doesn't crash, even when you select a mod.
Sounds like we really need to figure out how to get movies to work, or at least skip playing them instead of freezing. The Art of War is pretty important for newer players like me.

I should also note that after alt-tabbing, the bottom panel on my desktop gets shown overtop the game, which is less than ideal; is there a configuration that fixes that? I was also getting infinite scrolling, but there's a workaround for that in disabling the scrolling hotkeys.

Correct if you login with steam to Age of empires site and subscribe to mods it will work fine with Proton.

https://www.ageofempires.com/mods

To get the art of war to work, delete the movies in:
/home/user/.steam/steam/steamapps/common/AoE2DE/resources/en/campaign/movies

Only problem I have atm (with the current patch) is that any mp game desyncs after 5/10 seconds, this was not the case before the December patch. Anyone else has this problem?

I can confirm that the new update removed the issue with sapi, as I can see is more slow then before on starting.
Anyway I can play but some campaigns doesn't start at all, mainly the european.

After an hour of playing the game crash and the computer is unresponsive.
For the mods yes, using the web version also if doesn't have feedback if already subscribed (on pressing the subscribe button) will add a new mod for you.

I don't know if it's the latest hotfix or the new proton, but the game runs smoothly now on my system. There's no lag anymore when selecting units.

So at least for me, the only thing which doesn't work is hosting a local lan game because of battleserver.exe not working.

Sorry to step in, but I am trying to launch AoE2:DE without success so far (stuck on splash screen for 1 sec), and I wondered if I could get help here. Feel free to delete if my message is out of topic.

My configuration:

OS: Debian 10 buster
Kernel: x86_64 Linux 4.19.0-6-amd64
CPU: Intel Core i5-4200H @ 4x 3.4GHz
GPU: Mesa DRI Intel(R) Haswell Mobile AND GeForce GTX 850M/PCIe/SSE2 (Nvidia Optimus)
RAM: 7861MiB
Proton: 4.11-11

Launch option of the game in steam: primusrun %command%

Note that primusrun glxgears is working (but steam won't start up with primusrun steam though, I have also the log file if needed https://pastebin.com/vKLUGMTw ).

Log file error.log of steam, when launching AoE2:DE:

GameAction [AppID 813780, ActionID 5] : LaunchApp changed task to ProcessingInstallScript with ""
Proton: Missing or invalid openvrpaths.vrpath file! [Errno 2] No such file or directory: '/home/felix/.config/openvr/openvrpaths.vrpath'
esync: up and running.
Proton: Missing or invalid openvrpaths.vrpath file! [Errno 2] No such file or directory: '/home/felix/.config/openvr/openvrpaths.vrpath'
GameAction [AppID 813780, ActionID 5] : LaunchApp changed task to SynchronizingCloud with ""
GameAction [AppID 813780, ActionID 5] : LaunchApp changed task to SiteLicenseSeatCheckout with ""
GameAction [AppID 813780, ActionID 5] : LaunchApp changed task to CreatingProcess with ""
GameAction [AppID 813780, ActionID 5] : LaunchApp waiting for user response to CreatingProcess ""
GameAction [AppID 813780, ActionID 5] : LaunchApp continues with user response "CreatingProcess"
Opted-in Controller Mask for AppId 813780: 0
Game update: AppID 813780 "", ProcID 5774, IP 0.0.0.0:0
ERROR: ld.so: object '/home/felix/.steam/debian-installation/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/felix/.steam/debian-installation/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/felix/.steam/debian-installation/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
pid 5778 != 5776, skipping destruction (fork without exec?)
ERROR: ld.so: object '/home/felix/.steam/debian-installation/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Starting app 813780
>>> Adding process 5774 for game ID 813780
GameAction [AppID 813780, ActionID 5] : LaunchApp changed task to WaitingGameWindow with ""
>>> Adding process 5775 for game ID 813780
>>> Adding process 5776 for game ID 813780
/usr/bin/primusrun: line 41: warning: command substitution: ignored null byte in input
pid 5777 != 5776, skipping destruction (fork without exec?)
ERROR: ld.so: object '/home/felix/.steam/debian-installation/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
GameAction [AppID 813780, ActionID 5] : LaunchApp changed task to Completed with ""
>>> Adding process 5779 for game ID 813780
>>> Adding process 5780 for game ID 813780
ERROR: ld.so: object '/home/felix/.steam/debian-installation/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/felix/.steam/debian-installation/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Proton: Missing or invalid openvrpaths.vrpath file! [Errno 2] No such file or directory: '/home/felix/.config/openvr/openvrpaths.vrpath'
ERROR: ld.so: object '/home/felix/.steam/debian-installation/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/home/felix/.steam/debian-installation/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
>>> Adding process 5803 for game ID 813780
ERROR: ld.so: object '/home/felix/.steam/debian-installation/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
esync: up and running.
>>> Adding process 5804 for game ID 813780
ERROR: ld.so: object '/home/felix/.steam/debian-installation/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
>>> Adding process 5806 for game ID 813780
>>> Adding process 5809 for game ID 813780
ERROR: ld.so: object '/home/felix/.steam/debian-installation/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
>>> Adding process 5811 for game ID 813780
ERROR: ld.so: object '/home/felix/.steam/debian-installation/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
>>> Adding process 5814 for game ID 813780
ERROR: ld.so: object '/home/felix/.steam/debian-installation/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
>>> Adding process 5821 for game ID 813780
ERROR: ld.so: object '/home/felix/.steam/debian-installation/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
>>> Adding process 5829 for game ID 813780
Game update: AppID 813780 "", ProcID 5804, IP 0.0.0.0:0
RecordSteamInterfaceCreation (PID 5804): SteamUtils009 / Utils
Setting breakpad minidump AppID = 813780
RecordSteamInterfaceCreation (PID 5804): SteamUser019 / User
Steam_SetMinidumpSteamID:  Caching Steam ID:  76561197992322029 [API loaded no]
RecordSteamInterfaceCreation (PID 5804): SteamUser019 / User
RecordSteamInterfaceCreation (PID 5804): SteamFriends015 / Friends
RecordSteamInterfaceCreation (PID 5804): SteamUtils009 / Utils
RecordSteamInterfaceCreation (PID 5804): SteamMatchMaking009 / Matchmaking
RecordSteamInterfaceCreation (PID 5804): SteamMatchMakingServers002 / MatchmakingServers
RecordSteamInterfaceCreation (PID 5804): STEAMUSERSTATS_INTERFACE_VERSION011 / UserStats
RecordSteamInterfaceCreation (PID 5804): STEAMAPPS_INTERFACE_VERSION008 / Apps
RecordSteamInterfaceCreation (PID 5804): SteamNetworking005 / Networking
RecordSteamInterfaceCreation (PID 5804): STEAMREMOTESTORAGE_INTERFACE_VERSION014 / RemoteStorage
RecordSteamInterfaceCreation (PID 5804): STEAMSCREENSHOTS_INTERFACE_VERSION003 / Screenshots
RecordSteamInterfaceCreation (PID 5804): STEAMHTTP_INTERFACE_VERSION002 / HTTP
RecordSteamInterfaceCreation (PID 5804): SteamController006 / Controller
RecordSteamInterfaceCreation (PID 5804): STEAMUGC_INTERFACE_VERSION010 / UGC
RecordSteamInterfaceCreation (PID 5804): STEAMAPPLIST_INTERFACE_VERSION001 / AppList
RecordSteamInterfaceCreation (PID 5804): STEAMMUSIC_INTERFACE_VERSION001 / Music
RecordSteamInterfaceCreation (PID 5804): STEAMMUSICREMOTE_INTERFACE_VERSION001 / MusicRemote
RecordSteamInterfaceCreation (PID 5804): STEAMHTMLSURFACE_INTERFACE_VERSION_004 / HTMLSurface
RecordSteamInterfaceCreation (PID 5804): STEAMINVENTORY_INTERFACE_V002 / Inventory
RecordSteamInterfaceCreation (PID 5804): STEAMVIDEO_INTERFACE_V002 / Video
RecordSteamInterfaceCreation (PID 5804): STEAMPARENTALSETTINGS_INTERFACE_VERSION001 / ParentalSettings
ERROR: ld.so: object '/home/felix/.steam/debian-installation/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
>>> Adding process 5846 for game ID 813780
Game update: AppID 813780 "", ProcID 5846, IP 0.0.0.0:0
RecordSteamInterfaceCreation (PID 5846): SteamUtils009 / Utils
RecordSteamInterfaceCreation (PID 5846): SteamUser020 / User
RecordSteamInterfaceCreation (PID 5846): SteamUser020 / 
RecordSteamInterfaceCreation (PID 5846): STEAMAPPS_INTERFACE_VERSION008 / 
pid 5807 != 5806, skipping destruction (fork without exec?)
Game removed: AppID 813780 "", ProcID 5846 
Game 813780 created interface STEAMAPPS_INTERFACE_VERSION008 / 
Game 813780 created interface SteamUser020 / 
Game 813780 created interface SteamUser020 / User
Game 813780 created interface SteamUtils009 / Utils
Game 813780 method call count for IClientUser::GetSteamID : 2
Game 813780 method call count for IClientUtils::GetAppID : 5
Game 813780 method call count for IClientUtils::RecordSteamInterfaceCreation : 4
Game 813780 method call count for IClientAppManager::GetAppBuildID : 1
Game 813780 method call count for IClientAppManager::GetCurrentLanguage : 1
Uploaded AppInterfaceStats to Steam
Exiting app 813780
No cached sticky mapping in ActivateActionSet.

From what I understand, nothing is wrong here to the point of not having the game launching. Have you any idea of what I am doing wrong here?

I have not modified the game after install in steam, according to the reddit post. Tried also to delete/rename "Movies" folder with the exact same result.

Thanks!

@fxmarty I had similar issues with bumblebee on Debian sid and nvidia on optimus laptop.
You need to use nvidia xrun to get a TTY with pure nvidia video card and the game will start.
I written an article about it https://daniele.tech/2019/12/how-to-get-nvidia-xrun-on-debian/

The problem I face now is that after a while the game crash, I have a savegame of a match but after 1 minute from start the game crash again. I have the idea that after an hour of gaming the game crashes, savegames include all the stuff of that match.
They released new updates that fixes crashes but there are still a lot of them also on windows looking on the steam comments of the game.

Also I see that I need to start the game multiple times before to get the graphic rendered rightly.

Not working for me, running Debian with integrated Intel graphics, i915 followed instructions here, exactly https://www.protondb.com/users/793747973

Got this,

RecordSteamInterfaceCreation (PID 17668): STEAMPARENTALSETTINGS_INTERFACE_VERSION001 / ParentalSettings
ERROR: ld.so: object '/home/ecarroll/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
>>> Adding process 17712 for game ID 813780
Installing breakpad exception handler for appid(steam)/version(1576550254)
Game update: AppID 813780 "", ProcID 17712, IP 0.0.0.0:0
RecordSteamInterfaceCreation (PID 17712): SteamUtils009 / Utils
RecordSteamInterfaceCreation (PID 17712): SteamUser020 / User
RecordSteamInterfaceCreation (PID 17712): SteamUser020 / 
RecordSteamInterfaceCreation (PID 17712): STEAMAPPS_INTERFACE_VERSION008 / 
pid 17671 != 17670, skipping destruction (fork without exec?)
Game removed: AppID 813780 "", ProcID 17712 
Game 813780 created interface STEAMAPPS_INTERFACE_VERSION008 / 
Game 813780 created interface SteamUser020 / 
Game 813780 created interface SteamUser020 / User
Game 813780 created interface SteamUtils009 / Utils
Game 813780 method call count for IClientUser::GetSteamID : 2
Game 813780 method call count for IClientUtils::GetAppID : 5
Game 813780 method call count for IClientUtils::RecordSteamInterfaceCreation : 4
Game 813780 method call count for IClientAppManager::GetAppBuildID : 1
Game 813780 method call count for IClientAppManager::GetCurrentLanguage : 1
Uploaded AppInterfaceStats to Steam
Exiting app 813780

@EvanCarroll most of those instructions aren't needed anymore. All you need to do is remove or rename the movies folders and optionally setup virtual desktop if you prefer. ucrtbase doesn't need to be replaced anymore and steam auto installs any required redistributables on first startup.

even if so, why is it failing? what are you advocating as a fix? it wasn't working before i performed these steps. now it's still not working.

Hello @EvanCarroll, please add PROTON_LOG=1 %command% to the game's launch options and drag and drop the generated $HOME/steam-$APPID.log into the comment box. Also, please copy your system information from Steam (Steam -> Help -> System Information) and put it in a gist, then include a link to the gist in this issue report.

I do not have a fix for you because i didn't need to do anything special besides renaming movies folders. I'm just recommending you avoid outdated instructions since they can distract from the real problem. Preferred setup for troubleshooting should be the minimal manual configuration necessary to reproduce the exact problem.

btw, i'm not against resetting the environment after i copied that dll into the directory. if you want me to test on the stock options, just tell me what i have to do to reset it. both files you requested here, https://gist.github.com/EvanCarroll/bd91d39b36f3042257099a6f9e3b60e1

Hello @EvanCarroll, you have an Ivybridge generation Intel chipset. The video drivers that are available can provide an incomplete Vulkan implementation, but it may be buggy or fail in unexpected ways. Additionally, mesa 18.3.6 from Debian 10 is older than the DXVK's minimum requirements, so there may be additional quirks which have already been resolved in the video driver.

Please check that they are installed with something like apt policy mesa-vulkan-drivers mesa-vulkan-drivers:i386 and install them if needed with sudo apt install mesa-vulkan-drivers mesa-vulkan-drivers:i386. Alternatively, you could give wine's DirectX 11 to OpenGL translation layer a try by adding PROTON_USE_WINED3D=1 %command% to the game's launch options, but this is not considered supported and comes with a severe performance penalty.

You're right in suggesting they weren't installed. Installing them at least generated a warning that Ivy Bridge wasn't supported. I'm running on 18.3.6. Be nice if Mesa drivers were in backports. Haven't decided if I want to try building them myself, or if I want to wait for Buster+1. I guess this will take a lot more work than I originally assumed.

Going out of sync few seconds after starting online games. Anyone else?
Running december update
Pop os 19.10
5.3.0-7625-generic #27~1576337002~19.10~bc3488b-Ubuntu SMP Sat Dec 14 18:31:03 UTC x86_64 x86_64 x86_64 GNU/Linux
nvidia 440.44
ryzen 5 3600, rtx 2070 super, Asus PRIME X570-P

@sergioilg I haven't tested myself yet (will soon, once I can reliably beat moderate AI), but you're definitely not alone. Allegedly it happens on Windows too.

Hello @EvanCarroll, you have an Ivybridge generation Intel chipset. The video drivers that are available can provide an incomplete Vulkan implementation, but it may be buggy or fail in unexpected ways. Additionally, mesa 18.3.6 from Debian 10 is older than the DXVK's minimum requirements, so there may be additional quirks which have already been resolved in the video driver.

Please check that they are installed with something like apt policy mesa-vulkan-drivers mesa-vulkan-drivers:i386 and install them if needed with sudo apt install mesa-vulkan-drivers mesa-vulkan-drivers:i386. Alternatively, you could give wine's DirectX 11 to OpenGL translation layer a try by adding PROTON_USE_WINED3D=1 %command% to the game's launch options, but this is not considered supported and comes with a severe performance penalty.

I have a similar problem: https://pastebin.com/4yuQE2px
The latest NVIDIA driver for my GPU is 390, and it's below the minimum requirements.
Your idea of using PROTON_USE_WINED3D=1 allows the game to start, but the textures are completely broken (villagers and building are blue boxes).

So I've noticed that sometimes, seemingly only the first time I start the game, I get invisible unit portraits and certain other things (like the Art of War mission graphics that you click on to start). To my understanding, PROTON_USE_DXVK=1 in launch options is supposed to always prevent this, but perhaps there's some kind of initialization problem with it?

I see several people advising not to dig into old solutions because they might not be necessary anymore. I'm trying to get AoE2:DE working on a pretty fresh Manjaro installation.
For now i just renamed the movies folder and the game crashes at the home splashscreen.
What instructions should i try to follow to make it work?

edit: after a reboot sometimes i can move around in the main menu. I tried to launch the performance test for multiplayer and the game crashed (freeze at loading screen)

 ██████████████████  ████████     
 ██████████████████  ████████     OS: Manjaro 18.1.4 Juhraya
 ██████████████████  ████████     Kernel: x86_64 Linux 4.19.88-1-MANJARO
 ██████████████████  ████████     Uptime: 36m
 ████████            ████████     Packages: 1338
 ████████  ████████  ████████     Shell: bash 5.0.11
 ████████  ████████  ████████     Resolution: 1366x768
 ████████  ████████  ████████     DE: Xfce4
 ████████  ████████  ████████     WM: Xfwm4
 ████████  ████████  ████████     WM Theme: Adapta-Maia
 ████████  ████████  ████████     GTK Theme: Adapta-Eta-Maia [GTK2]
 ████████  ████████  ████████     Icon Theme: Papirus-Maia
 ████████  ████████  ████████     Font: Noto Sans 10
 ████████  ████████  ████████     Disk: 149G / 453G (35%)
                                  CPU: Intel Core i7-5500U @ 4x 3GHz [46.0°C]
                                  GPU: Mesa DRI Intel(R) HD Graphics 5500 (Broadwell GT2) 
                                  RAM: 4149MiB / 7875MiB

Just some screens of the issues on Linux excluding crashes after an hour of playing.
The menu I have is always https://steamcommunity.com/sharedfiles/filedetails/?id=1951648619

Often starts in this way: https://steamcommunity.com/sharedfiles/filedetails/?id=1951650729 on selecting change on this https://steamcommunity.com/sharedfiles/filedetails/?id=1951650426

Sometimes those rendering doesn't include HUD, other times the game is playable with buildings etc rendered but not the HUD or other times everything is rendered rightly.

This with nvidia-xrun with nvidia 750ti on optimus laptop, I see only that with their latest release the crashes are less common but they still around.

removing the movies worked for me, but the game disconnected in the middle of a online battle, not sure proton or the game itself, probably the game itself but i just wanted to report it just in case.

As many others here, game works fine against the computer but I cant play nor spectate online. I get the out of sync after a couple of seconds. Such a pity because it works flawlessly in solo mode. We are so close to get it working on linux...

I too am facing the 'desync error'. Aside from that and the movie folder issue things appear to work flawless.
It would be interesting to know if anyone is currently able to play matchmaking games on Linux and if you are, please post your environment

Although slightly unrelated (AoE 1 DE), i feel like it might be related.
https://news.ycombinator.com/item?id=16382419

I remember one game that has crossplay between Linux and Windows brought down by a scheme like this, because it turns out that Linux and Windows default floating point libraries had slightly different rounding behavior, and eventually the pathfinding algorithm would zig on the Windows hosts and zag on the Linux hosts and desync the clients.

I too am facing the 'desync error'. Aside from that and the movie folder issue things appear to work flawless.
It would be interesting to know if anyone is currently able to play matchmaking games on Linux and if you are, please post your environment

Although slightly unrelated (AoE 1 DE), i feel like it might be related.
https://news.ycombinator.com/item?id=16382419

I remember one game that has crossplay between Linux and Windows brought down by a scheme like this, because it turns out that Linux and Windows default floating point libraries had slightly different rounding behavior, and eventually the pathfinding algorithm would zig on the Windows hosts and zag on the Linux hosts and desync the clients.

Hello,

I have the same Problem. After 1-5 Seconds in a multiplayer game the frame rate drops (Less than 1FPS) and after a few seconds it crashes out of sync.

I would like to add. This OoS issue started after the december patch. Before that I played online, no problem.

Ok, I can now multiplayer without OoS!!

Still have to replace ucrtbase.dll like in previous versions.

...../steamapps/compatdata/813780/pfx/drive_c/windows/system32

@sergioilg
Thanks for the hint, after replacing the ucrtbase.dll it seems to be working for me as well now.

Is the game SUPER hard on the resources for anyone else? Everything except the game is laggy when it is running (browser, mouse cursor etc.)

For some reason I've found that PROTON_USE_D9VK=1 %command% is able to get units & buildings displaying while PROTON_USE_DXVK=1 %command% leaves the units and buildings invisible w/ blue borders.

Hello @AlexLeung, PROTON_USE_DXVK=1 isn't a Proton env variable, there's a list of env variables at https://github.com/ValveSoftware/Proton#runtime-config-options. By default Proton 4.11 uses wined3d to translate DirectX 9 to OpenGL, while PROTON_USE_D9VK=1 tells Proton to use DXVK's DirectX 9 to Vulkan (D9VK recently merged into DXVK) render path.

I can confirm replacing the ucrtbase.dll file fixes the online issues.

Using Proton-5.0-ge

@kisak-valve then why do people keep mentioning PROTON_USE_DXVK=1? If it isn't a Proton env variable then how is this added to launch options?

Remove movies folder + Proton 4.11 + ucrtbase.dll makes the game run smoothly and perfectly online. Many thanks!

It's weird if the movies are deleted ...

It's me or with the latest updates of the game and using also the new proton 5.0 (or the previous one) the game crash on starting a new campaign?

It's me or with the latest updates of the game and using also the new proton 5.0 (or the previous one) the game crash on starting a new campaign?

Can't reproduce that, which campaign are you starting ?

It happens with different campaigns I tried a lot of times with the last one of Saladino and the first in the Bari campaign.

Anybody had success installing Mods while on Linux yet?

Yes, I have had no issues so far. Small trees + interactive build orders I
have tested so far.

On Sat, Feb 22, 2020 at 4:23 AM Alex Leung notifications@github.com wrote:

Anybody had success installing Mods while on Linux yet?


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/ValveSoftware/Proton/issues/3189?email_source=notifications&email_token=AA372HZZEX3NGUARGTQO76DRECLBXA5CNFSM4JIV36TKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMUVTSQ#issuecomment-589912522,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AA372H2Y5VXG42JQGXYVYT3RECLBXANCNFSM4JIV36TA
.

For some reason I could install the small trees mod fine, but whenever I try to search for a mod and install (ex. Advanced Idle indicator), the game crashed. Also When I try multiplayer game gets stuck on loading screen forever.

It is not working after 27 Feb Patch... It is just only me? Game does not start, it keeps for a while in the loading micro-screen and then shuts

EDIT: movies folder was created again. change the name made the trick.

Didn't start for me the first time after update, killed it and launched it
again. Works now.

On Fri, Feb 28, 2020, 5:52 AM Jesús Redondo García notifications@github.com
wrote:

It is not working after 27 Feb Patch... It is just only me? Game does not
start, it keeps for a while in the loading micro-screen and then shuts


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ValveSoftware/Proton/issues/3189?email_source=notifications&email_token=AARLKY63ZX57LYXY2YZ4CBLRFD3IXA5CNFSM4JIV36TKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENIIVHQ#issuecomment-592480926,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AARLKY5US2H27JRROKDNBKLRFD3IXANCNFSM4JIV36TA
.

The game never worked for me, even though i followed the various tricks with renaming the movies directory and swapping out some DLL. Not sure how much of that was really needed.

Now i finally found what was keeping it from running; it needed PROTON_FORCE_LARGE_ADDRESS_AWARE=1 in the launch options. Maybe it is because my 5700 has 8GB of RAM?

I see tat with the latest updates of AoE or proton 5 now the game everytime loads the full HUD and the performance are very improved but I have some problems on starting some campaigns like the last one of the saladin campaign that crash AoE.

Ended up switching to dual boot Windows and Ubuntu. The game runs many times smoother when on Windows directly. No crashes in Windows.

I can confirm I still needed to replace ucrtbase.dll to be able to play online. Beside BattleServer which doesn't work the game is working perfectly fine on my system.

Yes game is working fine with replacing ucrtbase.dll described in this link https://www.reddit.com/r/linux_gaming/comments/dysfwv/age_of_empires_ii_definitive_edition_now_working/.
Also cinematics are working with Proton 5.0-5.

Hello all,
with the changes others mentioned it does work with 4.11-13, but the performance is not really ideal (plus in my case it renders Discord unusable).

I tried with 5.0-6, it reaches the main menu background, but when it's about to show the actual menu it crashes and shuts down. I did run it with PROTON_LOG=1 and uploaded the log to Google Drive (it's about 140mb):
https://drive.google.com/open?id=19PkEQaZD0epIXNYOc2JZZuJcbhBGDu19

Does anyone have pointers to what should I be looking for to try debug it?

Cheers!

For some reason I could install the small trees mod fine, but whenever I try to search for a mod and install (ex. Advanced Idle indicator), the game crashed. Also When I try multiplayer game gets stuck on loading screen forever.

You can also subscribe to mods by going to https://www.ageofempires.com/mods
There you can log in with your steam account. The next time you start the game it should have them loaded.

Has someone gotten the Xbox live login to work? When you press the button ingame it seemingly attempts to open winlive-webclient.exe. When I installed .NET v4.6.1 through winetricks/protontricks I was able to get a window to open up. Unfortunately it is empty with only a background image and no input fields. Maybe someone knows how to proceed from here.

I tried with 5.0-6, it reaches the main menu background, but when it's about to show the actual menu it crashes and shuts down. I did run it with PROTON_LOG=1 but the file is around 140mb and can't so I made a gist with the last 3k lines of the log...

@Minkiu, I'd say uploading your log to Dropbox or a git repo would be your best bet.

AOE 2 DE stuck on black screen

Issue transferred from https://github.com/ValveSoftware/Proton/issues/3779.
@cmkmanwani posted on 2020-04-19T08:08:40:

Compatibility Report

  • Name of the game with compatibility issues: Age of Empires 2 Definitive Edition
  • Steam AppID of the game: 813780

System Information

I confirm:

  • [Y] that I haven't found an existing compatibility report for this game.
  • [Y] that I have checked whether there are updates for my system available.


The file is 44MB could not attach it here, So adding google drive link.
https://drive.google.com/open?id=1G4BVQlXo9I2F83DwaWerDMb0tVb1LHzu

Symptoms

The game opens with the logo, and then a black screen comes up. The AOE cursor is visible on the screen and I can move it. Clicking or pressing the keys on the keyboard does not do anything. The game just gets stuck at the black screen.
Tried things mentioned in this link-
https://www.reddit.com/r/aoe2/comments/dwuplr/how_to_run_age_of_empires_2_definitive_edition_on/

Reproduction

Install game using steam and run it.


@Evernow commented on 2020-04-19T09:19:09:

This is ridiculous. You are on an ancient branch of the Nvidia driver, and basically everything else about your system is also out of date.

The game works flawlessly on an updated system, please update.

Also there is already an open compatibility report about this, only one report per game.

https://github.com/ValveSoftware/Proton/issues/3189

Just update.


@cmkmanwani commented on 2020-04-19T09:31:14:

I tried installing Nvidia driver 440, but I think it is not compatible with it, as it shows that it was not able to detect any hardware.
Apart from that even if the system is out of date, Is it possible to run it on the current configuration?
Since buying a new system is a bit of a luxury for me that I cannot afford.
I referred to the other compatibility report, but it's about some other issue. I could post there too if you want.


@Evernow commented on 2020-04-19T09:57:17:

I tried installing Nvidia driver 440, but I think it is not compatible with it, as it shows that it was not able to detect any hardware.
Apart from that even if the system is out of date, Is it possible to run it on the current configuration?
Since buying a new system is a bit of a luxury for me that I cannot afford.
I referred to the other compatibility report, but it's about some other issue. I could post there too if you want.

The Nvidia driver for you is 430.40.

There are guides on how to set it up on a modern distro like Manjaro (which I recommend, not Ubuntu): https://forum.manjaro.org/t/guide-install-and-configure-optimus-manager-for-hybrid-gpu-setups-intel-nvidia/92196

If you want to stay on Ubuntu for some reason, may need to consult their documentation on this.


@cmkmanwani commented on 2020-04-19T09:58:39:

Thank you. I will try this and get back to you.
Edit: I tried it and the same error as 440 pops up-
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

Hello @cmkmanwani, you're correct that the 390.xx nvidia driver series is the last driver series to support your Fermi generation video card. Unfortunately, this is older than the minimum requirements for Proton and your hardware does not support Vulkan, which is used by DXVK inside of Proton. This makes your nVidia hardware unsupported.

That set aside, the log tells us Proton is trying to use the Intel Broadwell chipset, which does support Vulkan. Maybe try a newer mesa version from a PPA like oibaf or kisak-mesa? There might be an odd interaction going on from Intel's Vulkan driver feeding into the older nVidia driver. Are you able to run your system with X running on the Intel GPU for testing purposes?

Alternatively, you could try PROTON_USE_WINED3D=1 %command% in the game's launch options to tell Proton to use wine's DirectX to OpenGL render patch, which is expected to come with a significant performance penalty and is considered unsupported.

Hi @kisak-valve

Maybe try a newer mesa version from a PPA like oibaf or kisak-mesa?

Thank you for this suggestion. This worked for me. The game is laggy, but that is to be expected with Intel graphics.
Thank you again!

With Proton 5.0-6 and Mesa 20.1, I only needed to remove the video folder to be able to play the game in one player mode.

Hello again,
I just tried with 5.0-7 and the menu loads (although the moment I hover any of them they all disappear :joy: ) and the performance in-game has improved a lot but there are some UI problems which render the game unplayable, see screen shots:
Screenshot from 2020-05-09 14-07-43
Screenshot from 2020-05-09 14-06-36
Screenshot from 2020-05-09 14-06-23
Screenshot from 2020-05-09 14-06-00

~And here the proton log:
https://drive.google.com/open?id=1rHiRmijQI8L1jQCkWsUaMSJMMzWtUC0s~

Don't know if this might be useful, but I'm using an nvidia GTX 760M with the 440.82 proprietary drivers.

UPDATE:
So turns out I wasn't using the actual GPU, but the Integrated Intel graphics, adding this to the launch options on steam did the trick:
__NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only %command%

For more info in the Optimus on Fedora, check this page:
https://rpmfusion.org/Howto/Optimus

Hope this helps,
Cheers.

Age of empires II: Definitive edition sync error while playing online

Issue transferred from https://github.com/ValveSoftware/Proton/issues/3858.
@pablovivo98 posted on 2020-05-12T20:09:22:

Compatibility Report

  • Name of the game with compatibility issues: Age of empires 2: Definitive Edition
  • Steam AppID of the game: 813780

System Information

I confirm:

  • [x] that I haven't found an existing compatibility report for this game.
  • [x] that I have checked whether there are updates for my system available.

Symptoms

Hi, I bought Age Of Empires 2: Definitive Edition via steam, and everithing it's okay but I CAN'T play multiplayer games. It crashes 15 seconds after starting multiplayer game, with an "sync error" report (attached pic)
Captura de pantalla de 2020-05-12 18-53-08. I have already applied the multiplayer fix, changed my 5.0-7 version to older and restarted both steam and my computer. I'm truly new here and I don't now what to do. Thanks a lot for your help.

Reproduction

Hello again,
I just tried with 5.0-7 and the menu loads (although the moment I hover any of them they all disappear joy ) and the performance in-game has improved a lot but there are some UI problems which render the game unplayable, see screen shots:
And here the proton log:
https://drive.google.com/open?id=1rHiRmijQI8L1jQCkWsUaMSJMMzWtUC0s

Don't know if this might be useful, but I'm using an nvidia GTX 760M with the 440.82 proprietary drivers.

Hope this helps,
Cheers.

I'm pretty sure it's caused by a mod you installed.
I would recommend removing tech tree ui mod first.

Hello again,
I just tried with 5.0-7 and the menu loads (although the moment I hover any of them they all disappear joy ) and the performance in-game has improved a lot but there are some UI problems which render the game unplayable, see screen shots:
And here the proton log:
https://drive.google.com/open?id=1rHiRmijQI8L1jQCkWsUaMSJMMzWtUC0s
Don't know if this might be useful, but I'm using an nvidia GTX 760M with the 440.82 proprietary drivers.
Hope this helps,
Cheers.

I'm pretty sure it's caused by a mod you installed.
I would recommend removing tech tree ui mod first.

Hey, thanks for the hint, tried yesterday, unfortunately it did not help, it is still the same.
Cheers!

Age of empires II: Definitive edition sync error while playing online

Issue transferred from #3858.
@pablovivo98 posted on 2020-05-12T20:09:22:

Compatibility Report

  • Name of the game with compatibility issues: Age of empires 2: Definitive Edition
  • Steam AppID of the game: 813780

System Information

I confirm:

  • [x] that I haven't found an existing compatibility report for this game.
  • [x] that I have checked whether there are updates for my system available.

Symptoms

Hi, I bought Age Of Empires 2: Definitive Edition via steam, and everithing it's okay but I CAN'T play multiplayer games. It crashes 15 seconds after starting multiplayer game, with an "sync error" report (attached pic)
Captura de pantalla de 2020-05-12 18-53-08. I have already applied the multiplayer fix, changed my 5.0-7 version to older and restarted both steam and my computer. I'm truly new here and I don't now what to do. Thanks a lot for your help.

Reproduction

¿Can anybody help?

@pablovivo98 Write these commands and it should work perfectly.

cd /home/$USER/.steam/steam/steamapps/compatdata/813780/pfx/drive_c/windows/system32/

wget "https://aka.ms/vs/16/release/vc_redist.x64.exe"

cabextract vc_redist.x64.exe

cabextract a10

After Alt+tabbing, the camera gets weird and goes forward-left without any way to block it. Alt+tabbing once more doesn't fix this issue.

EDIT: This issue was fixed by enabling virtual desktop.
WINEPREFIX=~/.local/share/Steam/steamapps/compatdata/813780/pfx/ winecfg
Execute this on your terminal emulator, press the "Graphics" tab, tick "Emulate a virtual desktop" and set your resolution. Lower resolutions will not allow the game to launch.
(This will not work for the Flatpak version of Steam)

Hi, the game works great with 5.0 and 4.11 but...
Multi GPU, or rather dual GPU settings, don't work, after 5 minutes of good gameplay the fps drops to 10, unplayable, and stays like that even if I restart the game. I have dual Vega 56 and I have noticed it always chooses the second GPU, I have used 'DRI_PRIME=0 steam' or 'DRI_PRIME=0 %command%' in launch options, without success, but if I boot the computer with only one GPU connected then it works fine.
I suspect the reason the performance drops so much is that somehow the second GPU is triggered to display, after the frames drop my computer gets choppy and laggy and I have to reboot.

Ok after tinkering more, you can change the vulkan device with this https://github.com/aejsmith/vkdevicechooser, and setting ENABLE_DEVICE_CHOOSER_LAYER=1 VULKAN_DEVICE_INDEX=1 %command% in the launch options, with index 0, it uses the second GPU, with index 1 it uses the first GPU and no longer happens the frame drop

Ever since the last patch the game got really laggy for me. The FPS count doesn't drop, but the game stutters and when it does the FPS counter actually shows large numbers (above 300) even though it is fixed at 60 otherwise.

EDIT: Simply enabling vsync solved this for me as well, as noted by @setine below, no need for anything else. I'll keep the rest of the comment here just for informational purposes.

Using Proton 5.9-GE-1-MF and setting PROTON_USE_WINED3D=1 solves this issue, although I am positive that up until a few days ago, when everything was running smoothly, I was using DXVK with stock 5.0.7.

Using Wine3D in 5.0.7 makes the game exit after the splash screen, though :(

Enabling vsync in the game options seems to solve the same issue @tarcisioe mentioned. Runs smoothly with stock 5.0.7.

I got it working mostly smoothly running. I had the 5-minute disconnect problem earlier, but that might've also been the game or my own connection. Haven't looked into it yet.

Setup

Manjaro with kernel 5.6
Sway v 1.4 running on wayland
Radeon RX 5700XT with amdgpu
Proton 5.0-7

Problems encountered

  • I couldn't click anything in the game menu. The cursor would change to the game cursor, but no menu item was clickable

I ran @tpurde commands:

cd $STEAM_LIBRARY_LOCATION/steamapps/compatdata/813780/pfx/drive_c/windows/system32/
wget "https://aka.ms/vs/16/release/vc_redist.x64.exe"
cabextract vc_redist.x64.exe
cabextract a10

# Press the "Graphics" tab, tick "Emulate a virtual desktop" and set the resolution to that of your screen.
WINEPREFIX=$STEAM_LIBRARY_LOCATION/steamapps/compatdata/813780/pfx/ winecfg

After that I went into the game, and still couldn't click on anything in the main menu. I figured that had something to do with sway. However, keyboard navigation worked, so I went to the options, and set the game to "windowed" mode. This made me able to click, but the hitboxes were not correct. After making the game fullscreen with Sway (Mod+F on my setup), the hitboxes were correct and everything worked.

Make sure the resulotion you set in winecfg matches the resolution of your screen. I'm not sure if the new vc-redist files helped, but I'm pretty sure i3 or sway users need to emulate a virtual desktop, set the game to windowed, and then fullscreen with the help of their WM, not with from the game itself.

I got it working mostly smoothly running. I had the 5-minute disconnect problem earlier, but that might've also been the game or my own connection. Haven't looked into it yet.

Setup

Manjaro with kernel 5.6
Sway v 1.4 running on wayland
Radeon RX 5700XT with amdgpu
Proton 5.0-7

Problems encountered

* I couldn't click anything in the game menu. The cursor would  change to the game cursor, but no menu item was clickable

I ran @tpurde commands:

cd $STEAM_LIBRARY_LOCATION/steamapps/compatdata/813780/pfx/drive_c/windows/system32/
wget "https://aka.ms/vs/16/release/vc_redist.x64.exe"
cabextract vc_redist.x64.exe
cabextract a10

# Press the "Graphics" tab, tick "Emulate a virtual desktop" and set the resolution to that of your screen.
WINEPREFIX=$STEAM_LIBRARY_LOCATION/steamapps/compatdata/813780/pfx/ winecfg

After that I went into the game, and still couldn't click on anything in the main menu. I figured that had something to do with sway. However, keyboard navigation worked, so I went to the options, and set the game to "windowed" mode. This made me able to click, but the hitboxes were not correct. After making the game fullscreen with Sway (Mod+F on my setup), the hitboxes were correct and everything worked.

Make sure the resulotion you set in winecfg matches the resolution of your screen. I'm not sure if the new vc-redist files helped, but I'm pretty sure i3 or sway users need to emulate a virtual desktop, set the game to windowed, and then fullscreen with the help of their WM, not with from the game itself.

What I said has nothing to do with the menu being unresponsive.

What I said has nothing to do with the menu being unresponsive.

Sorry my post was a bit unclear. I had three problems in total;

  • Desync
  • The screen scrolling to top when entering a game (not just after alt+tabbing)
  • The menu being unresponsive.

I applied both your fixes for the first two issues, and then my own for the latter.

What I said has nothing to do with the menu being unresponsive.

Sorry my post was a bit unclear. I had three problems in total;

* Desync

* The screen scrolling to top when entering a game (not just after alt+tabbing)

* The menu being unresponsive.

I applied both your fixes for the first two issues, and then my own for the latter.

Alright, running the game on a virtual desktop isn't the full solution, it still happens. But it allows you to get out of the "screen scrolling" bug by pressing the arrow keys.

You can get rid of the screen scrolling bug by disabling camera movement keyboard hotkeys in game options, if you don't use it ofc.

@bemug That probably wouldn't be optimal.

You can get rid of the screen scrolling bug by disabling camera movement keyboard hotkeys in game options, if you don't use it ofc.

Another Solution is to use a dedicated xserver for this game. There is an outdated article on the German ubuntuusers wiki: https://wiki.ubuntuusers.de/Archiv/Eigener_XServer_f%C3%BCr_Spiele/.

I somehow couldn't find any English guides, but you should get the idea how it is done, if you translate the site via the common internet translators.

Age of Empires II: Definitive Edition out of sync

Issue transferred from https://github.com/ValveSoftware/Proton/issues/4038.
@coreybruce posted on 2020-07-02T01:13:51:

Hey, wanted to report a multiplayer issue with Age of Empires II: Definitive Edition.

Every time you go to play multiplayer with someone it will bring up a message saying out of sync and say that the host disconnected. I tested the game in Windows and it works but I have also seen a bunch of reports about this issue but can confirm the multiplayer is not working correctly at the moment using the latest proton 5

@coreybruce As stated in this issue and on protonDB, you require some manual additions:

cd $STEAM_LIBRARY_LOCATION/steamapps/compatdata/813780/pfx/drive_c/windows/system32/
wget "https://aka.ms/vs/16/release/vc_redist.x64.exe"
cabextract vc_redist.x64.exe
cabextract a10

Thanks for that, I will give a update real soon on how that goes and if that works I will post it myself on protondb as I never saw a comment stating it (at the time) :P

Hello again,
I just tried with 5.0-7 and the menu loads (although the moment I hover any of them they all disappear joy ) and the performance in-game has improved a lot but there are some UI problems which render the game unplayable, see screen shots:

And here the proton log:
https://drive.google.com/open?id=1rHiRmijQI8L1jQCkWsUaMSJMMzWtUC0s

Don't know if this might be useful, but I'm using an nvidia GTX 760M with the 440.82 proprietary drivers.

Hope this helps,
Cheers.

Did you ever find a solution? I'm experiencing the exact same missing textures here.

Hello again,
I just tried with 5.0-7 and the menu loads (although the moment I hover any of them they all disappear joy ) and the performance in-game has improved a lot but there are some UI problems which render the game unplayable, see screen shots:
And here the proton log:
https://drive.google.com/open?id=1rHiRmijQI8L1jQCkWsUaMSJMMzWtUC0s
Don't know if this might be useful, but I'm using an nvidia GTX 760M with the 440.82 proprietary drivers.
Hope this helps,
Cheers.

Did you ever find a solution? I'm experiencing the exact same missing textures here.

Hey there,

yes I "solved" it, turns out I was using the Intel GPU instead of the Nvidia one, and I believe it wasn't really using Vulkan.

I thought (at least I had it like this in Fedora 31) I was running on the Nvidia all the time, but wasn't the case; in Fedora 32, you need to specifically tell an app to offload the to the nvidia one through environment variables, in my case adding this to the launch options made it work:
__NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only %command%

For more info in the Optimus on Fedora, check this page:
https://rpmfusion.org/Howto/Optimus

My guess is something similar must be happening if you are in another distro.

I've had this today after the update for the first time, any ideas?

Could not initialize graphics system. Make sure that your graphics card meets the minimum system requirements: CreateSwapChain() failed! HRESULT=0x80070056

RX5700xt with amgpu on wayland

Hey there,

yes I "solved" it, turns out I was using the Intel GPU instead of the Nvidia one, and I believe it wasn't really using Vulkan.

@Minkiu My GPU is HD Intel 4000. I've checked ProtonDB and there are only rare cases where people were able to run the game on Intel GPU. Personally, I'm considering this a "wont fix". Maybe I'll try an older version of the game instead, one with "platinum" rating on WineHQ. Thank you for the insight.

Hello @viniciusrtf, Intel Ivybridge support in mesa/ANV provides an incomplete Vulkan implementation. It's very likely any graphics issues you are seeing is related to this fact. It's not that all Intel chips are a problem, but we know there are driver issues with Intel chips before Broadwell due to hardware limitations.

You might have some luck adding PROTON_USE_WINED3D=1 %command% to the game's launch options, which tells Proton to use Wine's DirectX to OpenGL render path, but it's expected to come with a significant performance penalty and is not considered supported.

I couldn't click anything in the game menu. The cursor would change to the game cursor, but no menu item was clickable

I've had the same problem on wayland (sway) and it seems to have something to do with the monitors layout.

Originally, my screens were vertically stacked and this was causing the above issue. As soon as I changed them to a horizontal layout (e.g.: the screens were placed side-by-side) the problem went away and the menu items were clickable without having to do any other changes.

Just to make it clear, this screen layout was having the menu items unclickable bug (four screens, two rows):

      |     |
-------------------
|     | aoe |     |
-------------------

While this screen layout works fine (three screens, one row):

|     | aoe |     |
-------------------

I've been trying to run AoE 1 DE and AoE 2 DE since December on Arch Linux, Intel CPU (4790K, then 10900K), Radeon 7, Proton (different versions, today 5.0-9) to no avail. All I get is a splash screen.

I tried both Steam's built-in environment (a collection of *.so files) and the native environment (*.so coming from Arch Linux). I tried PROTON_USE_WINED3D=1. I tried WINEDEBUG="+timestamp,+pid,+tid,+seh,+debugstr,+module" %command% but nothing out of ordinary comes up in ~/steam-813780.log. Nothing seems to get me past the splash screen.

Maybe proton and a combination of mesa is having issues with the game :(

It works on Nvidia cards but it really sucks to hear it's not working for you

Maybe proton and a combination of mesa is having issues with the game :(

Not so sure about it, as I was checking the game regularly every two months, so I don't think there's a specific Mesa version to blame (Arch Linux constantly updates Mesa when a new version releases upstream). Plus someone with Arch Linux and AMD card got it running, according to this report: https://www.protondb.com/users/712548835

EDIT: Ah, this dude used https://github.com/GloriousEggroll/proton-ge-custom/releases. Will check it out.

Yeah defiantly use glorious eggrolls proton and see if it works :)

Maybe proton and a combination of mesa is having issues with the game :(

Not so sure about it, as I was checking the game regularly every two months, so I don't think there's a specific Mesa version to blame (Arch Linux constantly updates Mesa when a new version releases upstream). Plus someone with Arch Linux and AMD card got it running, according to this report: https://www.protondb.com/users/712548835

EDIT: Ah, this dude used https://github.com/GloriousEggroll/proton-ge-custom/releases. Will check it out.

Jus to add, I think this game really needs DXVK instead of WINE3D, so PROTON_USE_WINED3D=1 will if anything, make it worse, so make sure you have the vulkan packages as well

And just to be sure, have you done what the other reports suggest?
1) Remove/rename the movies folder
2) Install the "vc_redist.x64.exe" (this is mostly for online gaming)

Cheers!

Maybe proton and a combination of mesa is having issues with the game :(

Not so sure about it, as I was checking the game regularly every two months, so I don't think there's a specific Mesa version to blame (Arch Linux constantly updates Mesa when a new version releases upstream). Plus someone with Arch Linux and AMD card got it running, according to this report: https://www.protondb.com/users/712548835

EDIT: Ah, this dude used https://github.com/GloriousEggroll/proton-ge-custom/releases. Will check it out.

Running into the same issue, I tried the GlorousEggroll release and still cannot get past the splash screen either, did you get it working somehow?

FWIW I'm also running Arch with latest mesa on an AMD GPU (RX 5700XT) and it seems to work fine with the latest Proton version that comes with Steam (5.0-9 currently). I'm running it in Wayland (sway) but I don't think that should make any difference.

If I can provide more information that might help you figure out the problem (e.g.: driver version/installed libraries/etc) I'd be glad to help.

@vially I ended up reinstalling graphics drivers, rebooting computer and now it works, also 5.0-9, Arch, Sway and monitors stacked vertically.

"reinstalling graphics drivers" doesn't mean anything. Doing pacman -S mesa (and others) is a no-op since what's already in the OS is the same as in the package. pacman -Qkk would show any externally modified files - but it's extremely uncommon to have stuff inside /usr/lib externally modified.

@Nowaker I removed every package I had that was vulkan or mesa related and then reinstalled the bare minimum requirements as defined in https://wiki.archlinux.org/index.php/AMDGPU

mesa lib32-mesa xf86-video-admgpu vulkan-radeon lib32-vulkan-radeon libva-mesa-driver

Did anyone look into the performance issues you get when you switch between control groups of units? Example: put vilagers into control group 1 and scout into control group 2 and then rapidly press 1 and 2 in an alternating fashion. The game will noticeably lag. This issue is reported in various reddit threads.

What I figured out so far:

  • When doing the above sequence in a replay, you don't get the performance problem
  • When doing it in a custom game, you get the performance problem. Additionally, you get the following fixme entries in proton's log (game launched with PROTON_LOG=1 %command%):
[...]
65873.803:00d4:00d8:fixme:key:X11DRV_ToUnicodeEx keyboard layout (nil) is not supported                                
65873.819:00d4:00d8:fixme:key:X11DRV_ToUnicodeEx keyboard layout (nil) is not supported                                
65873.819:00d4:00d8:fixme:key:X11DRV_ToUnicodeEx keyboard layout (nil) is not supported                                
65873.819:00d4:00d8:fixme:key:X11DRV_ToUnicodeEx keyboard layout (nil) is not supported                                
65873.819:00d4:00d8:fixme:key:X11DRV_ToUnicodeEx keyboard layout (nil) is not supported
[...]

This leads me to believe, that this function is at least in the "path" that causes the performance drop. I looked into the implementation of the mentioned function, but didn't get much further.

Hello anyone else's experiencing stuttering in MP, even with v-synch enabled? I remember it did not use to stutter in the past.
Update: maybe it was due to some faulty config for picom (im using i3wm on arch linux). I tried to add the options
backend = "glx"; vsync = "opengl-swc";
and it seems to be running better. (although there is still some stuttering)

It took a lot of poking and prodding but finally found the cause of some of the issues I was having.

Symptoms/Issues:

  • Unresponsive menus, several seconds delay when clicking on some elements (i.e. select a map on the SP lobby)
  • Game would slow down to single digit FPS during multiplayer matches / spectating / viewing replays of games with 8 players
  • Low fps in said matches would go back to 60fps (if using vsync) when clicking the menu scroll or pressing F10

The problem is caused by the workaround for the multiplayer desync issue: $STEAMFOLDER/steamapps/compatdata/813780/pfx/drive_c/windows/system32/ucrtbase.dll

Starting with a clean prefix, using Proton 5.0-9 I don't have any of the issues mentioned above, but I'll be kicked off any multiplayer game after a few seconds due to a desync error.

Adding ucrtbase.dll as explained here, I can play multiplayer but have the symptoms described above.

EDIT: Here's a single-take video of the whole proccess, and the difference between the default behaviour with vanilla prefix and then the workaround using the method described in this thread, and it's result. (this is only showing the menu unresponsiveness issue, along with a strange usage of cpu cores, maxing out a single core in the menus both vanilla and workaround have this issue)

https://streamable.com/dcgxz1

Timestamps:

  • 3:33 vanilla proton game launch
  • 4:05 applying ucrtbase.dll workaround
  • 4:44 tweaked proton game launch
  • 5:06 clicked on "standard game"
  • 5:27 standard game UI shows up
  • 5:32 clicked on the map selection button
  • 6:53 map selection UI shows up

Nice findings, maybe there is another version of this dll which is better? I am looking around to see

Edit: this is actually very well addressed above https://github.com/ValveSoftware/Proton/issues/3189#issuecomment-562997516

I don't know what changed since december last year, but I don't see any errors without the workaround, I just get desynced of all multiplayer games, the rest of the game (single player) plays way better

True, and the funny thing is that you can still chat with the opponent after desynching

ok so I've tried most combinations of vcrun winetricks and proton verisons, and there's a bit of variation but for the most part, the most performing is a vanilla install of 5.0.9, which sadly will get you kicked of any match after 15-30 seconds.
I still suspect it's something with ucrtbase.dll (despite what's been said on the comment quoted by @Carusu). There have been several game updates after that comment was posted, and after that the workaround had to be used once again to get an online match going.

Another cuirosity, While playing or spectating, collapsing the bottom central panel (scoreboard as spectator, unit list/queue as player) will significantly improve FPS for whatever reason.

@Willdrick Can you try this out with your setup to check if you also get this performance problem?

Did anyone look into the performance issues you get when you switch between control groups of units? Example: put vilagers into control group 1 and scout into control group 2 and then rapidly press 1 and 2 in an alternating fashion. The game will noticeably lag. This issue is reported in various reddit threads.

@bluewww Yes, I can confirm that issue, running vanilla 5.0.9 I see that toggling between control groups makes the game stutter and lower the average FPS by quite a bit

Here's a video capture of how it looks like: https://streamable.com/3fkvyw

@bluewww in single player, I dont see this lag or impact on the performance if I do as you suggested.
Currently I am using 5.8.12 tkg-pds kernel and proton-ge-custom (5.11)

Without using the ucrtbase.dll file workaround, the game is fine in single player, the problem arises in larger multiplayer matches, and it's not instant, it takes a while but after ~30 min of gameplay on a standard 4v4 arabia map you end up with ~10fps to the point that it's unplayable for everyone in the match. Also this is not measurable on "real" fps, the game might be running at 60fps locked by vsync but you see the units moving at a lower pace (like if the game was running at 10fps)

@Willdrick Thanks for testing.
If I don't replace ucrtbase.dll as suggest in this thread, I nearly instantly desnyc in multiplayer games
@Carusu Thanks for testing. What kind of proton version is this? Is the this the latest gloriousegroll release?

@bluewww this one, https://github.com/GloriousEggroll/proton-ge-custom
maybe you can find it in the repos of your distro

If anybody has some spare time for a few long matches, here's something curious:
using PROTON_DUMP_DEBUG_COMMANDS=1 %command% and launching from /tmp/proton_$STEAMUSER/run I was able to play 3 long 4v4 multiplayer matches without any issues, no desync at all. I don't know why this works, I don't know if I had some extreme luck and all my matches were perfectly synced.
Terminal output during the game
(doesn't seem like anything to me)

Test conditons:

  • Brand new prefix (Proton 5.0-9)
  • Applied ucrtbase.dll workaround
  • Removed arrow keys keybindings to avoid "stuck" scroll towards top left
  • No winetricks or winecfg tweaks used
  • All game graphical settings maxed out (Ultra preset + vsync)

Issues "solved":

  • matches no longer devolve into a powerpoint-like performance
  • was able to finish several matches, no desync related kicks

Issues still persisting:

  • replay playback still getting laggy when scoreboard (bottom middle panel) open
  • switching between control groups quickly can cause some stutters

System overview:

  • Pop_OS! 20.04 + kisak-mesa fresh ppa
  • Kernel: 5.8.12-xanmod1
  • goverlay+mangohud for gauging performance and for limiting the fps to 60 (ingame vsync doesn't work properly)

Hardware info:

  • CPU: R5 2400G
  • GPU: Rx 570 (4gb)
  • RAM: 16gb DDR4 3200

Misc media:

imagen
_notice the score ticker on the bottom right, I have a blue clock, meaning I wasn't lagging behind (which was the usual for me)_

imagen
_4v4 match, almost an hour of realtime gameplay, normally it'd go down to ~20fps after 15 minutes or so_

EDIT: Just to be clear, I have no idea why this is working, I've been poking at this game for the last week, switched distros, switched setup, proton versions, dxvk versions, etc... figured I could try running it from a terminal to see if anything useful was on the output.

I believe this game needs vcrun2019, not vcrun2017. The errors @Willdrick is hitting are likely due to just using ucrtbase from 2019 while the rest of the dlls are from 2017. Winetricks github has an entry for vcrun2019 with the same url for the visual c++ redistributable that the 'ucrtbase fix' in this tracker mentions:

https://github.com/Winetricks/winetricks/blob/8b61d82e10af00f8cc191009d0f2186010764e4f/src/winetricks#L12805

https://github.com/Winetricks/winetricks/blob/8b61d82e10af00f8cc191009d0f2186010764e4f/src/winetricks#L12821

Older distros probably don't have vcrun2019 in their winetricks, so I added a verb for it in my ge build. Can someone test this build on a new/clean prefix without any changes or launch options? seems to work fine here, tested on Fedora 32 and Pop! OS, but did not test multiplayer:

Build with vcrun2019 fix, should work for AoE II: DE and MK11:
https://drive.google.com/file/d/1Bj5qKFeWYYKBkkGywCnyshaaGbq-icy5/view?usp=sharing

@GloriousEggroll

My setup is

  • Proton-311-GE-3-MF *error, see the edit
  • linux 5.8.13-tkg-pds
  • I moved the prefix so to let steam/proton create a new one
  • winetricks version: winetricks-git 20200412.r173.g8b61d82-1

I then installed vcrun2019/vc_redist.x64.exe (I had to do so manually as winetricks could not verify the check-sum on the installer for some reason). To confirm it, I checked-sum the ucrtbase.dll (please confirm that this is what I should have)

md5sum ucrtbase.dll   
34449e216ac558f881978faf0abde2f8  ucrtbase.dll

SP is fine, but I get de-synched as soon a I start a MP game. Am I doing something wrong?

EDIT: I was actually using Proton-5.11-GE-3-MF

@Carusu please use the version of proton I linked, not an older one:

Build with vcrun2019 fix, should work for AoE II: DE and MK11:
https://drive.google.com/file/d/1Bj5qKFeWYYKBkkGywCnyshaaGbq-icy5/view?usp=sharing

@GloriousEggroll
I tried to use the version you suggested (btw there was an error in my previous post as I was actually using _Proton-5.11-GE-3-MF_) by putting it in $HOME/.steam/root/compatibilitytools.d/
I installed the game and forced the Steam Play compatibility tool as Proton-5.9-7-ST. It is 100% a clean installation as I am testing it even on another PC. Unfortunately I am yet again de-synched in MP. Also I am confused by the checksum of ucrtbase.dll, as I get

$ md5sum ucrtbase.dll 
3c4052eac6ba088b3a34560a71d5cb3b  ucrtbase.dll

which is different from what I've gotten in the previous test. Could you please tell me what would be the correct checksum for this file or if I am doing anything wrong.

Thanks for looking into this.

EDIT:
Now I am confused: I tried to manually (as winetrick could not validate the installer and proceed to) install vcrun2019 with wine with

WINEPREFIX=/my/Steam/folder/path/steamapps/compatdata/813780/pfx/ wine $HOME/.cache/winetricks/vcrun2019/vc_redist.x86.exe

and I got yet again another checksum for the same library

$ md5sum ucrtbase.dll 
8c535c1b02259ecb8c448ae5755e460b  ucrtbase.dll

I tried to rerun the game (with the very same _Proton-5.9-7-ST_) and a popup windows appeared mentioning some _ProtonFixes_ going on. I waited for them to finish and in the meantime I checked the file again, getting

$ md5sum ucrtbase.dll 
7cd3ea9477efcefbd1b7f58a71ef74c3  ucrtbase.dll

I run a MP game again and this time it did not de-synch ! (I stayed on only for 5-6 minutes then abandoned the game as I have no time for now to play, sorry opponent! Later I can try with an entire game)

However I still fear that some minor adjustment are needed as, for instance, opening the map menu still takes longer than a vanilla installation and I wonder if a 4v4 TG game would work well with this settings. I never play TG, maybe @Willdrick could help with this?

I've been playing on a new F33 install, brand new "everything", downloaded the provided proton GE, and the behaviour is still the same (i.e. slow loading menus, lag on spectator with scoreboard panel open, but mp works for smaller matches) yet running the game without changing anythng from the PROTON_DUMP_DEBUG_COMMANDS method I mentioned before for whatever reason, I get a perfectly consistent performance during even ridiculous matches (500 population, biggest map possible, 8 players).

Also as an aside, the issue I mentioned before of getting one core pegged at 100% even on the menus was caused by mangohud/goverlay.

EDIT: Here's the "run" script generated by PROTON_DUMP_DEBUG_COMMANDS as a gist
https://gist.github.com/Willdrick/31cf361850b423a8cc0a2bd9ad75baf9

EDIT2: Also I should probably clarify, menus are still loading slowly (compared to vanilla proton 5.0-9) but it's just a few seconds (10-15 sec) compared to the ridiculous 1 minute 30 seconds load time to select a map type.

@Willdrick maybe you know it already, but AOE2 is able to use only one core, no multicore capabilities (which sucks but that is why you would see only one core heavily used).

Besides, what you describe is really a mystery

@Carusu I don't really think that's the case. Maybe the menu system/ GUI is single threaded, but even if that's the case it shouldn't get stuck at 100% for such a simple GUI

Here is a series of images showing the CPU graph (per thread) during different sections of the game running, and curiously when running the benchmark, there's no thread at 100%, but when coming back to menu all other threads slow down and one single thread shoots up back to 100%

Also I suspected this was a mangohud issue because I saw the same behaviour when running the test via goverlay, 1 single thread being hit to 100% (glxgears+vkcube) but it's not, since I uninstalled both programs and only AoE2DE still presents this behaviour.

I would like to add that now also the mod browser seems to be working, which is great

Proton 5.13 finally made my AoE 2 DE start! Same for AoE 1 DE! All previous version would quit on splash screen.

The game "works" on Proton 5.13-1 but performance is terrible. Gamemode seems not to work and prime variables for nvidia seem not to work. On contrast playing with Proton-GE 5.9-8-ST is working great with prime variables and gamemode. I could even play online with ranked benchmark. Of course videos don't work (don't know why) and cant login into Xbox Live account.
If someone could conduct me to instructions on how to produce and post logs I can test different setups. Keep up this work as it's great for Linux gamers to be able to play recent games out of the box

Operating System Version:
    "Arch Linux" (64 bit)
    Kernel Name:  Linux
    Kernel Version:  5.9.1-zen2-1-zen
    Steam Runtime Version:  steam-runtime_0.20201005.0

Video Card:
    Driver:  Intel Mesa Intel(R) HD Graphics 520 (SKL GT2)
    Driver: Nvidia GeForce 940M/PCIe/SSE2 v455.28

Edit: Additional steps needed to play online (ranked and unranked):

$ rm ~/.steam/steam/steamapps/compatdata/813780/pfx/drive_c/windows/system32/ucrtbase.dll
$ cd ~/.steam/steam/steamapps/compatdata/813780/pfx/drive_c/windows/system32/
$ wget "https://aka.ms/vs/16/release/vc_redist.x64.exe"
$ cabextract vc_redist.x64.exe
$ cabextract a10

Did anyone look into the performance issues you get when you switch between control groups of units? Example: put vilagers into control group 1 and scout into control group 2 and then rapidly press 1 and 2 in an alternating fashion. The game will noticeably lag. This issue is reported in various reddit threads.

I realized that the performance issue comes from different versions of the ucrtbase.dll.

When I use the ucrtbase.dll from Proton-5.9-GE-6-ST, then I don't get the performance issues (its buttery smooth) but desync in multiplayer games at the beginning

When I use the ucrtbase.dll from Proton-5.9-GE-8-ST, then I do get the performance issues, but no desyncs.

The testing is done by starting the game and then making a single player match against a computer.

Note that when you switch between proton versions in the steam gui, you first have to delete ~/.steam/steam/steamapps/compatdata/813780/pfx/drive_c/windows/system32/ucrtbase.dll manually, so that steam regenerates it. Otherwise, it will remain as is.

Game simply crashes at the Game Menu after flashing what I think is the XboxLive login window. I tried using both Proton-GE 5.9-8-ST and Proton 5.13-1. The latter worked for a total of 2 launches and stop working altogether.

Also a bug when running DE with GNU/Linux: you can't create a LAN multiplayer game. The server list doesn't contain the option. See this topic for more info. Apparently it's linked to battleSever.exe.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AwesamLinux picture AwesamLinux  ·  3Comments

ghost picture ghost  ·  3Comments

matou68 picture matou68  ·  3Comments

lucifertdark picture lucifertdark  ·  3Comments

ArekPiekarz picture ArekPiekarz  ·  3Comments