Hello everyone,
I've recently started modding skyrim for the first time in awhile on Linux (Fedora Linux 44), everything was going smoothly, until I added Community Shaders, my lighting completely broke and everything was black! I used protontricks 489830 d3dcompiler_47 and it was still broken. However I found a way to fix it!
(Note: While this is written for Skyrim SE, However, I assume this exact fix works for any modern DX11/DX12 game, ReShade setup, SpecialK or a mod on Proton that needs an up-to-date d3dcompiler_47.dll*.)*
WHY THE PROTON/WINETRICKS DLL FAILS
Most Linux guides tell you just to do that protontricks command above, it used to work however starting with Community Shaders 2.0 and later, it has no longer worked. This is due to the default winetricks/protontricks download being an outdated Windows 7/8 era version of this dll. The new Community Shaders uses Windows 10 and later shader pipelines.
HOW DO I FIX IT?
first, we have to grab the up to date dll, we have 2 options:
Option A (Pull it yourself): If you have a Windows 10/11 install, dual-boot (or even a VM!) Grab the 64-bit DLL directly from:
C:\Windows\System32\d3dcompiler_47.dll
Option B (Pre-packed zip with both filename casings): Because Linux filesystems are case-sensitive (d3dcompiler_47.dll vs. D3DCompiler_47.dll), I uploaded a .zip containing both casings pulled straight from my Windows 11 System32 folder on my guide page here: https://skygazer-of-eastern-night.neocities.org/guides/d3dcompile
(I would've uploaded it to github, but I don't remember it's password as of now, sorry!)
I included a SHA256 hash of not only the dlls, but also the zip, which I will post here as well:
SHA-256 Checksum for the .zip archive:
0531dae40bbf058707c648ed7592ef871619cb111bc4a8933d7134d0bade8ec6
SHA-256 for the official d3dcompiler_47.dll:
d5fdc1dfcb929d2024b1c8049161dad545ab29685c45093eac673402735a3838
If you somehow find this dll or zip, and it is not those hashes, you are going to probably get pwned
Step 2, We now have to drop it into our proton prefix.:
Navigate to your Skyrim SE Proton prefix (compatdata). For Steam, the default path is:
~/.local/share/Steam/steamapps/compatdata/489830/pfx/drive_c/windows/system32/
(Note: If you use Amethyst, MO2, or Lutris with a custom prefix, open that prefix's drive_c/windows/system32/ folder instead.)
Then, we want to back up any pre-existing d3dcompiler_47.dll and drop in the Windows 11 version. (Please make sure to include both a lowercase d3dcompiler_47.dll and mixed-case D3DCompiler_47.dll so Proton never falls back to its built-in file due to case sensitivity.)
Step 3:
Proton will more than likely try to fall back to it's built-in d3dcompiler_47.dll, which we do not want. Just write in your launch options WINEDLLOVERRIDES="d3dcompiler_47=n,b" %command%
Launch the game through your mod manager, Community Shaders should now compile properly.
I hope this helps others!