Fallout 4 (377160)
Requires xact dlls in order to play voices and some other sounds.
WINEPREFIX=/media/Volume/Steam/steamapps/compatdata/377160/pfx winetricks xact
Requires change to config, so mouse won't jump around:
Fallout4Custom.ini
[Controls]
bBackgroundMouse=1
Two issues remain: The mouse will leave the window when turning the character around. As soon as the mouse leaves the game window, the character does no longer turn around. I've tried to set "Capture mouse in fullscreen" and also to set a virtual desktop with winecfg, but both to no avail. Setting the virtual desktop caused new problems, but this is what used to fix the problem for me when using WINE - without I have the same problem there and only when using DXVK.
Then, no Bethesda game is ever complete without mods. In order to make the Fallout 4 (and Skyrim) script extender work, a patch is required to allocate memory from top down, so there are free memory addresses before the Fallout4 binary which the script extender needs to inject itself. Wine allocates the memory for the game binary at the very first address, so there is no space before that to inject anything.
See discussion here: https://github.com/doitsujin/dxvk/issues/363 See patch here: https://github.com/hdmap/wine-hackery/tree/master/f4se
In an ideal world, wine/proton would simply leave some memory unallocated before the binary, or solve the issue in a different way, but mapping top down also does the trick and did not cause any issues for me so far.
Besides these things it does start up for me without the audio hack that is required in WINE, which is a big plus for proton. :+1:
#54
I get the exact same mouse issue, done lots of digging and found no current workaround. As far as I can tell it's specific to multimonitor setups (could be otherwise though, I've seen users with single monitors not having these issues).
I think setting wine to emulate a virtual desktop is a viable fix for the mouse issue, but for me (and others, it seems) it causes everything to render as black boxes and I cannot get past the launcher.
Yes, I'm on a three monitor setup, which I forgot to mention. I'm always amazed by so many developers seemingly having only one monitor. I could not live and code without three monitors anymore. :)
Update on this,
I'm using the latest beta of Proton (which you can enable via settings->steam play on the steam client), and running the game in a virtual desktop now works, and with the 'capture mouse in fullscreen' solves the mouse issue as long as you apply the config changes mentioned by @smirgol
WINEARCH=win64 WINEPREFIX='/path/to/steam/steamapps/compatdata/377160/pfx' winecfg
Edit; It seems that this is only true when I let it load up the virtual desktop on my left-most monitor, doing it on any other results with the same black rendering and inability to get past the launcher :/
I can confirm that. When enabling the virtual desktop, it will only work if it is started on the first monitor (left), not on the second (middle), not on the third (right).
As a workaround I disabled my first monitor, so my middle monitor is now the first one, and then it works - also enabled "capture mouse in fullscreen".
Maybe someone can look into why virtual desktop only works on the first monitor?
My mouse issue was that it behaved like a gamepad joystick (so moving the mouse left would make the character spin - at high speed - until moving it back to centre) but it was solved with the same changes described above regarding emulated desktop and capturing the mouse. I did not need to change my fallout config.
I still don't get voices (and some other sounds) even with xact.
@smirgol Perhaps we should check other Proton games we have installed with a virtual desktop and see if they behave the same way? I'm pretty sure its a bug effecting all games on a multi-monitor setup.
Fallout 4 fails to start after the launcher for me with Proton 3.7.3 and 3.7.4 beta due to missing nvapi64:
(Debian 9.5 stable, GTX 1080, driver 384.130)
167480.850:0030:0031:trace:module:load_dll looking for L"C:\windows\system32\nvapi64.dll" in L"Z:\home\gaming\.steam\steam\steamapps\common\Fallout 4;C:\Program Files (x86)\Steam;C:\windows\system32;C:\windows\system;C:\windows;.;C:\windows\system32;C:\windows;C:\windows\system32\wbem" 167480.851:0030:0031:trace:module:get_load_order looking for L"C:\windows\system32\nvapi64.dll" 167480.851:0030:0031:trace:module:get_load_order_value got standard key n,b for L"nvapi64" 167480.851:0030:0031:trace:module:load_builtin_dll Trying built-in L"nvapi64.dll" 167480.851:0030:0031:warn:module:load_builtin_dll cannot open .so lib for builtin L"nvapi64.dll": /home/gaming/.steam/steam/steamapps/common/Proton 3.7 Beta/dist/lib/wine/nvapi64.dll.so: cannot open shared object file: No such file or directory 167480.851:0030:0031:warn:module:load_dll Failed to load module L"C:\windows\system32\nvapi64.dll"; status=c0000135 167480.851:0030:0031:trace:seh:NtRaiseException code=c0000005 flags=0 addr=0x141d1783c ip=141d1783c tid=0031 167480.851:0030:0031:trace:seh:NtRaiseException info[0]=0000000000000000 167480.851:0030:0031:trace:seh:NtRaiseException info[1]=0000000000000000 167480.851:0030:0031:trace:seh:NtRaiseException rax=0000000140003110 rbx=0000000000018130 rcx=0000000000000000 rdx=000000000023f8b0 167480.851:0030:0031:trace:seh:NtRaiseException rsi=0000000000000000 rdi=0000000000000b18 rbp=000000000023f930 rsp=000000000023f830 167480.851:0030:0031:trace:seh:NtRaiseException r8=00000000000fc008 r9=000000000000002a r10=0000000000000002 r11=0000000000000000 167480.851:0030:0031:trace:seh:NtRaiseException r12=000000000023fd88 r13=0000000000000001 r14=0000000146219900 r15=00000000000009c0
@bobintetley looks like your drivers are seriously out of date, you want to be using 396.51 or 396.54.
See here
I'd rather stick to the Debian distro bundled drivers if I can. I have Fallout 4 running just fine with wine 3.6-ge on the same machine so I don't think the drivers are an issue in this case. The debug trace I posted above shows that FO4 has a dependency on nvapi64.dll which is not present in proton 3.7 - there's a stub for nvapi in later versions of wine.
Interesting, because it works for the rest of us in Proton 3.7.
You should really reconsider updating your drivers though, your current ones are over 5 months old and there are huge performance boosts in .54 due to some old "resource leak" issue that has existed in the Nvidia drivers for a while.
also the new drivers contain lots of vulkan fixes which proton relies on. You are only hurting yourself.
Ok ok, you convinced me - I'll upgrade my drivers ;D
Just to report back, I updated my drivers to 390.77 (by moving to Debian buster) and bizarrely the nvapi64.dll error went away. I have absolutely no idea why that should be the case, but that seems to have fixed it and FO4 starts for me with Proton now.
As others have found with other games, I had to add library overrides for xaudio to get sound working and run the game in a virtual desktop with the capture mouse/fullscreen option to prevent the mouse escaping the game. After all that, it works great!
I followed the steps here to fix the mouse issue. and the steps from this video to fix the audio issues.
the first comment in this thread mentions xact. I also needed to override xaudio2_6 and xaudio2_7 and set them both to native in order to fix my audio completely.
I only have one monitor, and any combination of grab mouse in full screen and virtual desktop does not work for me. I can still only turn about 90 degrees in each direction before it gets "stuck". This is very odd as I don't remember having this issue when trying the game with wine-staging alone.
Btw. if anyone have trouble finding the games ini files they are under: /home/[username]/.steam/steam/steamapps/compatdata/377160/pfx/drive_c/users/steamuser/My Documents/My Games/Fallout 4
If you're using a virtual desktop, make sure the game is in full screen mode rather than windowed. Also, make sure the virtual desktop size matches the full screen resolution of your desktop.
@Lejoni : it's not the [steamuserid] but the game's steam id, which is 377160. ;-)
Sometimes for me it helps to click with the left mouse button and then I can turn around as much as I want. Usually happens after alt-tabbing out of the game. Not sure if it helps you, but it's worth a try. FWIW: I play in windowed mode, virtual desktop set at my native resolution, grab mouse enabled.
One more thing that is sometimes useful to know: When your TAB key no longer works ingame, usually after alt-tabbing out of the game and back, switch out of the game to a different app, bring up the app selector (Alt-Tab) and click the Fallout4 app icon with the mouse.
@smirgol Ah thanks. For some reason I thought steam used one prefix for all games. I'm glad they don't :) I never tried clicking will try that :)
The issue with TAB no longer working I have encountered many times in Skyrim. Sometimes it simply helps if I press and release alt a few times. It's like the game think alt is constantly pressed.
@smirgol Hmm now when I went to try clicking it worked before I clicked while in game world. Only thing I can think of is that I clicked continue to load instead of pressing E on main menu. I have no virtual desktop but have grab mouse on in fullscreen and game in fullscreen.
Sound starts to get really messy after a while tho. and there are some lighting issues in certain areas where I can only see light effects on the top half of the screen. Might be fixable by turning down some settings.