ValveSoftware / Proton

Compatibility tool for Steam Play based on Wine and additional components
Other
23.58k stars 1.03k forks source link

Fallout 76 (1151340) #3766

Open NTMan opened 4 years ago

NTMan commented 4 years ago

Compatibility Report

System Information

I confirm:

steam-1151340.log

Symptoms

  1. The game crashes after creating avatar. Adding WINEDLLOVERRIDES=winedbg.exe=d %command% to launch options helps workaround this issue.
  2. In the game, is not heard NPC speech. $ protontricks 1151340 faudio helps workaround this issue.
  3. In the Atom store, all items show up as "Free" regardless of their actual price. Screenshot from 2020-04-14 20-19-23

Reproduction

Always.

giantrat commented 4 years ago

Oh thank god, I'm getting this as well. steam-1151340.log

fls2018 commented 4 years ago

This was an issue in wine with the photo mode last time I checked.

This stops it from crashing when taking photos, photos won't save though:

WINEDLLOVERRIDES=winedbg.exe=d %command%

giantrat commented 4 years ago

Will try that out, thanks!

fls2018 commented 4 years ago

I'm unsure how that'll work with new accounts though.

giantrat commented 4 years ago

I'm unsure how that'll work with new accounts though.

Seemed to work! Now I just have to figure out how to make the game ok with alt tabbing.

fls2018 commented 4 years ago

Do photos save on the steam version via ingame photo mode? I'm still downloading so can't check.

giantrat commented 4 years ago

Do photos save on the steam version via ingame photo mode? I'm still downloading so can't check.

I’ll let you know next time I crash :)

NTMan commented 4 years ago

This was an issue in wine with the photo mode last time I checked.

This stops it from crashing when taking photos, photos won't save though:

WINEDLLOVERRIDES=winedbg.exe=d %command%

Thanks, it helps. Second issue: In the game, I do not hear NPC speech.

fls2018 commented 4 years ago

This was an issue in wine with the photo mode last time I checked. This stops it from crashing when taking photos, photos won't save though: WINEDLLOVERRIDES=winedbg.exe=d %command%

Thanks, it helps. Second issue: In the game, I do not hear NPC speech.

That'll probably be FAudio, same issues as FO4/Skyrim needs self compiled faudio with wma support.

Do photos save on the steam version via ingame photo mode? I'm still downloading so can't check.

I’ll let you know next time I crash :)

Actually you can just go into photo mode & the gallery through the ingame menu. The photo mode is sort of important due to the way it's integrated with your ingame avatar/banners etc.

There was some permissions/anti virus issue using wine with bethesda.net version, I'm wondering whether that's still the case with steam.

kisak-valve commented 4 years ago

Fallout 76 (1151340)

Issue transferred from https://github.com/ValveSoftware/Proton/issues/3767. @Freso posted on 2020-04-14T14:20:45:

Compatibility Report

System Information

I confirm:

Symptoms

When you enter into the Atom store, all items show up as "Free" regardless of their actual price.

Reproduction

  1. Open game
  2. Go into Atom store

Note: This is possibly (exactly?) the same issue as what I described in https://github.com/ValveSoftware/Proton/issues/4#issuecomment-583854991 and it has been an issue with Fallout 76 under Wine for probably as long I at least have been able to run the game under Wine, regardless of what Wine version.


@Freso commented on 2020-04-14T14:57:35:

Looks like https://github.com/ValveSoftware/Proton/issues/3766 was opened while I was typing up this report, so I guess this can be closed as duplicate.

giantrat commented 4 years ago

Get that atom shop error as well, have no idea what causes that.

D33pfield commented 4 years ago

That'll probably be FAudio, same issues as FO4/Skyrim needs self compiled faudio with wma support.

Can you elaborate on this more? I have everything working but the sound.

Edit: I have got the sound working correctly following this guide! https://github.com/FNA-XNA/FAudio/wiki/FAudio-for-Proton

fls2018 commented 4 years ago

That'll probably be FAudio, same issues as FO4/Skyrim needs self compiled faudio with wma support.

Can you elaborate on this more? I have everything working but the sound.

Edit: I have got the sound working correctly following this guide! https://github.com/FNA-XNA/FAudio/wiki/FAudio-for-Proton

FAudio included with Proton doesn't include FFmpeg support for wma decoding due to licensing issues, therefore you need to replace it with one built with the options enabled.

Three main ways of doing it:

1/ The official way of building faudio for proton here: https://github.com/FNA-XNA/FAudio/wiki/FAudio-for-Proton

2/ Install faudio via protontricks (I'm pretty sure this method replaces the dll's in the prefix so something to keep an eye on).

3/ If you have a distro that has FAudio in it's repository (like Manjaro) it will most likely have ffmpeg support and you can point to it via: LD_PRELOAD=/path/to/libFAudio.so.0 %command%, you can also use this command to point to custom build faudio,

GhChancellor commented 4 years ago

Sound: With

WINEDLLOVERRIDES="xaudio2_7=n,b" %command%

i can hear the sounds but i can't hear the music. Only the video seems work well

Game: it's goes to crash after a minute

fls2018 commented 4 years ago

Sound: With

WINEDLLOVERRIDES="xaudio2_7=n,b" %command%

i can hear the sounds but i can't hear the music. Only the video seems work well

Game: it's goes to crash after a minute

Because just using native xaudio doesn't fix it, you need faudio as mentioned above.

Also the crash fix by disabling wine debug as mentioned above.

Update: Just to add photomode doesn't save pictures even with the crash fix, also steam overlay is not working.

angelprada commented 4 years ago

WINEDLLOVERRIDES=winedbg.exe=d %command%

Fixes photomode

fls2018 commented 4 years ago

WINEDLLOVERRIDES=winedbg.exe=d %command%

Fixes photomode

It still doesn't save pictures in the gallery (for your avatar etc), only fixes the crash.

GhChancellor commented 4 years ago

with Proton-5.6-GE-2 the sound and music work well

WINEDLLOVERRIDES=winedbg.exe=d %command% Fixes photomode

It still doesn't save pictures in the gallery (for your avatar etc), only fixes the crash.

it's the same for me

giantrat commented 4 years ago

Can we in no way use the atomic shop?

Edit: Atomic Shop works, prices just don’t show.

HK47196 commented 4 years ago

With regards to the atomic shop, I found this post on reddit: https://www.reddit.com/r/fo76/comments/d2m5pt/linuxwine_compatibility/

So, I've successfully been playing on ultra quality on both arch and ubuntu, however, I cannot get the prices in the atomic shop to update. It's saying everything is free, and when I attempt to make a purchase it says something about the store being updated and to try again later. Has anyone else had luck getting the atomic shop to correctly display prices on linux?

I fixed my own issue 🤷🏻‍♂️ for anyone curious, install the latest d3d9 and vcrun2015.

Didn't fix it for me, maybe someone else will have better luck/point them in the right direction.

fls2018 commented 4 years ago

With regards to the atomic shop, I found this post on reddit: https://www.reddit.com/r/fo76/comments/d2m5pt/linuxwine_compatibility/

So, I've successfully been playing on ultra quality on both arch and ubuntu, however, I cannot get the prices in the atomic shop to update. It's saying everything is free, and when I attempt to make a purchase it says something about the store being updated and to try again later. Has anyone else had luck getting the atomic shop to correctly display prices on linux?

I fixed my own issue 🤷🏻‍♂️ for anyone curious, install the latest d3d9 and vcrun2015.

Didn't fix it for me, maybe someone else will have better luck/point them in the right direction.

Don't know what they mean "latest d3d9" as it's a DX11 title, also tried vcrun2015 no dice.

HK47196 commented 4 years ago

With regards to the atomic shop, I found this post on reddit: https://www.reddit.com/r/fo76/comments/d2m5pt/linuxwine_compatibility/

So, I've successfully been playing on ultra quality on both arch and ubuntu, however, I cannot get the prices in the atomic shop to update. It's saying everything is free, and when I attempt to make a purchase it says something about the store being updated and to try again later. Has anyone else had luck getting the atomic shop to correctly display prices on linux?

I fixed my own issue 🤷🏻‍♂️ for anyone curious, install the latest d3d9 and vcrun2015.

Didn't fix it for me, maybe someone else will have better luck/point them in the right direction.

Don't know what they mean "latest d3d9" as it's a DX11 title, also tried vcrun2015 no dice.

After closer inspection, it does actually load directx 9 libraries. I think it's libcef that's using them and also being used to render the atom shop.

HK47196 commented 4 years ago

While trying to get the atomic shop to work I've accidentally stumbled upon a rather big performance/stability increase, much less stuttering. I'm not sure which of this caused it, but this was what I did: I renamed all the redistributable DLLs in the Fallout76 folder(and the bin64) folder within to make sure they weren't being loaded. Not all of them are redistributable DLLs FYI. Any of the ones ending in 140.dll and the d3dcompiler dlls, IIRC. 140.dlls are the ones provided by the Visual Studio 2015 redistributable which FO76 has chosen to distribute with their game. I also removed the default overrides proton provides in winecfg(again, just trying random things to see if I can get the atomic shop to work) then I used protontricks to install the visual studio 2015 redistributable(vcrun2015)

Didn't fix the atomic shop, but one of these caused the game to stutter far, far less.

HK47196 commented 4 years ago

With regards to the atomic shop: A similar issue seems to happen with FO4 and Skyrim SE's creation club refer: https://github.com/ValveSoftware/Proton/issues/4#issuecomment-583854991

I assume it's related?

FelixWolf commented 4 years ago

Getting random crashes(Doesn't crash to desktop, main thread crashes, audio thread still running). I have noticed that it likes to crash whenever there is a overlay element, such as a steam notification, or dbus notifications. Disabling notifications and steam notifications while playing tends to help, but it will still crash at random when moving around. steam-1151340.log

Running in windowed/borderless window appears to cause framerate issues. Running with vsync enabled tends to cause loading in to freeze.

I am running it with PROTON_LOG=1 WINEDLLOVERRIDES=winedbg.exe=d %command%

kisak-valve commented 4 years ago

Fallout 76 (1151340)

Issue transferred from https://github.com/ValveSoftware/Proton/issues/4030. @TheChriZ posted on 2020-06-28T07:24:48:

Photo Mode does not save Photos. The folder it is supposed to save them stays empty and so does the ingame gallery and I can not create a Character Picture. Also when I am in photo mode I can only shoot a photo once, afterwards it does nothing when I am hitting spacebar only if I re-enter photo mode. This problem might not be Linux/Proton specific as I have read about issues like this happen on Windows 10 too and the solution seemed to be disabling the Anti-Virus. How could this be solved on Linux?

HenrickTheBull commented 4 years ago

From what I can tell anyone still having this issue, Glorious Eggroll releases Proton with Media Foundation Framework and that seems to fix all the audio and most of the stuttering issues for me as of the current 76 update. I'm using Proton-5.11-GE-3-MF for 76. Not sure if the new versions will do the same, but they might. I'll give it a try later on.

Still no clear fix on Atomic Shop though?

kattjevfel commented 4 years ago

media foundation has nothing to do with this, the audio not working has to do with protons faudio lacking ffmpeg support. I've simply symlinked /usr/lib/libFAudio.so.0 into regular proton and the game runs fine, aside from the stuttering inside certain buildings.

See: https://github.com/ValveSoftware/Proton/pull/2082 The atomic shop "works" for me, everything is listed as free but if you have enough points you can still buy stuff, just that you'll have no idea how much anything costs and it's a surprise each time! :D

fls2018 commented 4 years ago

The atomic shop "works" for me, everything is listed as free but if you have enough points you can still buy stuff, just that you'll have no idea how much anything costs and it's a surprise each time! :D

Issue is it is a currency purchasable with IRL money, therefore not a very good idea to keep it as a "surprise".

kattjevfel commented 3 years ago

Stopped working as of todays update, only getting a black screen with 0fps, worked perfectly earlier today before the update.

kisak-valve commented 3 years ago

Fallout 76 no longer works.

Issue transferred from https://github.com/ValveSoftware/Proton/issues/4259. @nimbius posted on 2020-10-13T16:33:23:

the latest update of fallout 76 crashes on load from Ubuntu

nimbius commented 3 years ago

TY @kisak-valve :+1: Log attached for debug:

steam-1151340.log

kattjevfel commented 3 years ago

Figured I should post log as well: steam-1151340.log

System Information

nimbius commented 3 years ago

actual bug is now being seen in the steam forums as well.
CRASH (ACCESS VIOLATION (user-mode DEP violation):)2801.544:00bc:0174:trace:seh:RtlCaptureStackBackTrace (5, 32, 0x5fbcbcc8, (nil))

kattjevfel commented 3 years ago

Updated log for proton-5.13-1b: steam-1151340.log

Noteworthy: Users on Windows have also had issues running this game while having OBS fullscreen capture on, or any fullscreen overlays. May be related.

jaxarthur commented 3 years ago

I have found a fix for the recent crashing issues with the October 13th update the fix can be found here: <Link removed by moderator>

kisak-valve commented 3 years ago

Hello @jaxarthur, the workaround you linked is legally problematic and has been removed.

The short version of the link is that Fallout 76 is having a hard time with dbghelp.dll from Proton.

jaxarthur commented 3 years ago

I'm confused then @kisak-valve because the wine documentation mentions using native dlls instead builtin dlls of the do they mean something else or are there just specific ones that you can use and others you can't. And if so where do you find the information per dll

kisak-valve commented 3 years ago

The moderation issue here is with the third party redistribution of a copyrighted library. Wine is able to use many Microsoft DLLs, but that's tangential to getting the files legally from the copyright holder.

kattjevfel commented 3 years ago

@jaxarthur Thank you so much! I got a proper copy of dbghelp.dll and set it to override, game works just as before!

kisak-valve commented 3 years ago

Hello @Guttles, @drx69, unfortunately, your comments were removed because we can not condone directly or indirectly telling others to use a legally problematic workaround.

nimbius commented 3 years ago

@kisak-valve this is infuriating. how shall we proceed? id like to make progress on the redacted solution outside of rote censorship at the behest of the legal team.

many thanks to @jaxarthur for their hard work on this bug. if anyone else knows how to proceed, please, lets work to get this update in wine.

kisak-valve commented 3 years ago

Hello @nimbius, the legally grey answer here is to write up a script that grabs the dll directly from a Microsoft download server, then extract it from the download and drop it into place. See winetrick's code base for many examples of this.

The wine built variant is a clean room re-implementation of the library, which does not include any code from Microsoft. That does not have the same restrictions as the original code base that it's approximating.

Ideally, since the issue has been isolated to one component, it would also be nice to know if vanilla wine is equally affected and then you can file a bug report upstream specifically targeting that issue in wine's codebase, and when it gets fixed properly upstream, share what wine commit(s) made the difference.

drx69 commented 3 years ago

This is messed up.. deleting my comment because i confirmed the issue is with dbghelp.dll? What is wrong with you people? There are countless other threads that have stated similar. If i cannot post that i can confirm it? On this forum? How do we Let the devs know where the problem lies? Telepathy?

jaxarthur commented 3 years ago

I would just like to give an update. The issue is with wine its self or with fallout 76 not proton. I have tried building the master branch of proton and wine both yield the same results of crashing after a black screen. From my limited knowledge and horrible attempts to decipher what function is being called I do believe that either a. Not all of the current functions are implemented correctly in the wine dbghelp.dll. b. One of the functions are misbehaving or errors are not being properly caught in dbghelp. c. Fallout 76 intentionally or not is trying to execute parts of the dll that aren't even code because it is expecting an exact layout of the windows native dll. I honestly think it is option c because all other mentions of errors with dbghelp seem to be bugs with a certain version of the software and every attempt I have made to find what assembly instructions are being called show it in a garbage data section. Then again I am very much a noob at this and all of these could be incorrect. I will not as of now be filing a bug report on wine's website until I figure out what exactly is going wrong. If any body has any information on finding the function name of builtin dll calls please let me know. Or at least how to translate the winedbg output to the address in the dll.

Also please be understanding of the inability of valve to keep the legally grey information on here if they didn't they would risk some major legal issues and it isn't their fault. And lastly thanks @kisak-valve you seem to have done a lot for proton I saw a lot of comments helping people out and subsequently me on this GitHub repository.

P.S. I have tried to find a legal work around for obtaining the native dll for use with wine but that seems to be impossible because the license for windows states that you can not "use or virtualize features of the software separately" very vague but I think it basically means you cant just use the dll without the rest of windows.
Also I never used the native dll in my investigation in order to not violate the wine clean room policy.

OlivierFRDierick commented 3 years ago

Hello,

I opened a 'black screen then crash on start' issue on the winehq.org bugzilla: https://bugs.winehq.org/show_bug.cgi?id=50049

I don't own the game, so, after the free week is done, I won't be able to test.

Regards.

kattjevfel commented 3 years ago

Just tested this on Wine 5.20 and it works just fine again, without any native .dlls. In fact I ran: (export WINEPREFIX=$(mktemp -d) && cd /home/katt/.local/share/Steam/steamapps/common/Fallout76/ && wine Fallout76.exe) so it was 100% a fresh prefix. So now just to wait for a new proton version based on 5.20! Fallout 76 running on Wine 5.20

kisak-valve commented 3 years ago

https://bugs.winehq.org/show_bug.cgi?id=50049#c6 points towards https://source.winehq.org/git/wine.git/commit/fd4b700ad559b512b150acacd3fae3016180c8bd as the fix.

jarrard commented 3 years ago

Been messing with this lately. Noticed a few things.

dbghelp.dll obvious is a issue (fixed in wine 5.20) ucrtbase.dll and api-ms-win-crt-private-l1-1-0.dll cause the shop to list everything as free (just a UI error).

You can copy these from your windows install into the system32 folder obviously to fix most the issues.

Another thing I noticed was dxgi.dll overrides for using stuff like reshade appears to crash the FO76 game upon loading to main menu. Not sure if there is something unique causing this on my system but its worth looking into further.

I use reshade to fix some of the coloration in the game and also to apply CAS sharpening on top of TAA. (can't get reshade working atm)

jarrard commented 3 years ago

I have this issue where every few seconds the framerate tanks for no reason, happens continuously every few seconds, most often in interiors. Anyone experience this?

I have the applied the DLL fixes, and currently using proton-tkg-5.19, GE has issues for me. I could try stock proton or just wine by itself but I've seen this happen before and wonder if its just me.

Well I disabled a few DLLs in the FO76 folder like some suggests, it does speed the game up but the weird fps drop every 5sec or so still persists. Its not as long drawn out now whereas before it would last 2sec, now just 1sec.. Quite an annoying issue, really hope someone knows the solution.