How Do I Get The Witcher 3 To Work With Special K?

Config file wise that should be these but if you can get to the main menu using the HDR widget from there before it crashes should be easier. :slight_smile:

[SpecialK.HDR]
Promote8BitRTsTo16=false
Promote10BitRTsTo16=true
Promote11BitRTsTo16=true

Use10BitSwapChain=false
Use16BitSwapChain=false

Newer builds disable these by default as I recall or the upcoming 0.11.1.x WIP builds since it’s not fully released yet.

EDIT: What was it again the 8-bit one can have some problems but I think it was already false by default just due to that fact so one of the other two then and which of the HDR modes for the swap chain to go by HDR10 or scRGB (16)

UI elements and so on specifically.
This is probably going to be a bit smoother using the PC Gaming Wiki or similar for configuration presets and recommended SpecialK overrides and using the SpecialK_Default.ini file to pre-set some of these to avoid start-up crashes. :slight_smile:

Over time as this improves and the HDR functionality also gets new features as can already be seen with 0.11.x here and these ongoing development builds.

With every new test version of SK I just enable all the remasters and play

Ok. I am having a prolem here too. I did all the steps above and tries adding the file it to directory. I tried with both names(dxgi and d3d11) and the in game menu does not appear.Any suggestions?

Have you tried injecting it through the global method?

I’m having problems with this game now. I took a break from this game for a few months, came back to it this evening and Special K and this game are having serious incompatibility problems. I’ve tried everything I can think of to remedy the situation, to preface, I was using Special K for HDR injection:

  1. Updated Special K to latest
  2. Disabled MSI Afterburner
  3. Tried running witcher3.exe as Admin (game starts, but SKIF doesn’t hook)
  4. Tried starting the game with HDR enabled and disabled.
  5. Disabled Ansel with Powershell per the instructions.
  6. Disabled and enabled HDR within Special K once I did manage to get the game to start, but once I attempt to load a save there is the Metal Gear Solid error sound and CTD.
  7. Created SpecialK.dxgi at game’s root directory.

Now the problem is that, with SKIF global service enabled, the game starts and becomes minimized with no way to maximize the game.

So fed up with these issues, I just wasted an hour of my life on this, not sure how the problem even cropped up in the first place, display driver update? No changes to Windows, this worked 2 months ago.

SK works with all of my other games.

first launch the game without special k, then go into the in-game settings and make sure that you do not have the game set to fullscreen. set it to windowed or borderless

then make sure you have the latest version of special k from the discord

you can do it from SKIF by setting the “check for updates to special k” to “on each launch” and to “discord (updates regularly)” - then restart SKIF

SKIF_Xl6LacK6Pp

that or simply download and run the latest installer from the #installers channel in the SK discord

latest version as of now is 22.6.28.1

after that, reset your specialk.ini (there are multiple plays to do this. one way is to simply delete your specialk.ini for the game - a new one will be created with new settings next time you launch the game with sk)

make sure that you do not have your game or steam running as admin

then try to launch your game with sk/from skif

if you still have issues, try setting this in your specialk.ini for the game-

[Display.Output]
ForceWindowed=true

[Window.System]
Borderless=true
Center=true

then try launching your game again with sk/from skif

Actually, the problem cropped up when I started SKIF to run TW3 and regrettably consented to updating SKIF. Then the issue where the game would either refuse to start at all, or start but then crash while attempting to load a save (with Metal Gear Solid sound effect, indicating problem is SKIF). I just updated to latest version of SKIF and the game starts now (once setting TW3 display to Windowed Borderless or Windowed) but the problem of the game crashing when attempting to load a save persists.

I’ve deleted specialk.ini and the problem persists.

Here’s the crash log. I greatly appreciate the help with this. This problem only cropped up because I made the mistake of consenting to updating SKIF. If I ever get this working again I will never update SKIF again, ever. I’ve already wasted 2-3 hours of my time with this. I don’t know what the source of the bug is but I would greatly appreciate it if potential bugs like this were caught before these updates are released into the wild. And my SKIF is set to update to the Website (until using your advice and changing this to update via Discord) so I’m not even on a new version when this problem cropped up.

I’m currently on 22.6.30.1

Here’s the crash log. I’m starting the game from SKIF and game is not set to run as Admin and I’ve also tried your specialk.ini suggest changes. Game crashes when I try to load a save. Game only does this with Special K running.

06/30/2022 21:55:59.505: DebugHelper Symbol Search Path…: ;C:\Users*\Documents\My Mods\SpecialK
06/30/2022 21:55:59.505: Unable to load Special K Debug Symbols ('C:\Users*
\Documents\My Mods\SpecialK\SpecialK64.pdb’), crash log will not be accurate.

==================================================================================================
<+> System Memory Load…: 62%

Current Working Set…: 1.054 GiB (Max Used: 1.054 GiB out of Total Physical: 15.818 GiB)

Current Virtual Memory.: 4.834 GiB (Max Used: 5.420 GiB)

<+> GPU0 Load…: 6.00% at 30.00°C

  • D3D11 Textures Cached…: 2155 ( 0.013 GiB Used, Quota: 2.000 GiB); 0 Evictions / 46 Hits
  • Current VRAM In Use…: 0.950 GiB / Max Useable VRAM: 24.000 GiB
    ==================================================================================================

06/30/2022 21:56:09.896: Unhandled Top-Level Exception (c000001d):


[! Except !] << EXCEPTION_ILLEGAL_INSTRUCTION >>

[ Thread ] ~ Name…: “[GAME] Primary Render < RenderThread >”
[ FaultMod ] # File…: ‘C:\WINDOWS\SYSTEM32\dxgi.dll’
[ FaultMod ] * RIP Addr.: dxgi.dll+0000000000003C63h
[StackFrame] <-> Rip=7ffbe53b3c63h, Rsp=0092c946e248h, Rbp=0092c946e360h
[StackFrame] >-< Rsi=000000000001h, Rdi=000000000000h
[ GP Reg ] rax: 0x7ffbe544c108 rbx: 0x0208b56d7101
[ GP Reg ] rcx: 0x0208b56d71e0 rdx: 0x7ffbe544dd70
[ GP Reg ] r8: 0x0208958fa218 r9: 0x0092c9473740
[ GP Reg ] r10: 0x000000000021 r11: 0x000000000000
[ GP Reg ] r12: 0x0208959425d0 r13: 0x000000000012
[ GP Reg ] r14: 0x02139131e020 r15: 0x020895942b10
[ GP Flags ] EFlags: 0x00010202

   dxgi.dll >                    DXGIReportAdapterConfiguration
   dxgi.dll >                    DXGIReportAdapterConfiguration

SpecialK64.dll > ImGui_ImplDX11_NewFrame
SpecialK64.dll > SKX_D3D11_EnableFullscreen
SpecialK64.dll > SKX_D3D11_EnableFullscreen
SpecialK64.dll > SKX_D3D11_EnableFullscreen
SpecialK64.dll > SKX_SetPluginName
witcher3.exe > Scaleform::Render::Matrix2x4::Prepend
witcher3.exe > Scaleform::Render::Matrix4x4::SetIdentity
witcher3.exe > Scaleform::Render::Matrix2x4::Prepend
witcher3.exe > Scaleform::Render::Matrix2x4::Prepend
witcher3.exe > Scaleform::Render::Matrix4x4::SetIdentity
witcher3.exe > Scaleform::Render::Matrix2x4::Prepend
witcher3.exe > Scaleform::Render::Matrix2x4::Prepend
KERNEL32.DLL > BaseThreadInitThunk
ntdll.dll > RtlUserThreadStart

06/30/2022 21:56:09.899: Unhandled Top-Level Exception (c000001d):


[! Except !] << EXCEPTION_ILLEGAL_INSTRUCTION >>

[ Thread ] ~ Name…: “[GAME] Primary Render < RenderThread >”
[ FaultMod ] # File…: ‘C:\WINDOWS\SYSTEM32\dxgi.dll’
[ FaultMod ] * RIP Addr.: dxgi.dll+0000000000003C63h
[StackFrame] <-> Rip=7ffbe53b3c63h, Rsp=0092c946e248h, Rbp=0092c946e360h
[StackFrame] >-< Rsi=000000000001h, Rdi=000000000000h
[ GP Reg ] rax: 0x7ffbe544c108 rbx: 0x0208b56d7101
[ GP Reg ] rcx: 0x0208b56d71e0 rdx: 0x7ffbe544dd70
[ GP Reg ] r8: 0x0208958fa218 r9: 0x0092c9473740
[ GP Reg ] r10: 0x000000000021 r11: 0x000000000000
[ GP Reg ] r12: 0x0208959425d0 r13: 0x000000000012
[ GP Reg ] r14: 0x02139131e020 r15: 0x020895942b10
[ GP Flags ] EFlags: 0x00010202

   dxgi.dll >                    DXGIReportAdapterConfiguration
   dxgi.dll >                    DXGIReportAdapterConfiguration

SpecialK64.dll > ImGui_ImplDX11_NewFrame
SpecialK64.dll > SKX_D3D11_EnableFullscreen
SpecialK64.dll > SKX_D3D11_EnableFullscreen
SpecialK64.dll > SKX_D3D11_EnableFullscreen
SpecialK64.dll > SKX_SetPluginName
witcher3.exe > Scaleform::Render::Matrix2x4::Prepend
witcher3.exe > Scaleform::Render::Matrix4x4::SetIdentity
witcher3.exe > Scaleform::Render::Matrix2x4::Prepend
witcher3.exe > Scaleform::Render::Matrix2x4::Prepend
witcher3.exe > Scaleform::Render::Matrix4x4::SetIdentity
witcher3.exe > Scaleform::Render::Matrix2x4::Prepend
witcher3.exe > Scaleform::Render::Matrix2x4::Prepend
KERNEL32.DLL > BaseThreadInitThunk
ntdll.dll > RtlUserThreadStart

06/30/2022 21:56:09.899: Unhandled Top-Level Exception (c000001d):


[! Except !] << EXCEPTION_ILLEGAL_INSTRUCTION >>

[ Thread ] ~ Name…: “[GAME] Primary Render < RenderThread >”
[ FaultMod ] # File…: ‘C:\WINDOWS\SYSTEM32\dxgi.dll’
[ FaultMod ] * RIP Addr.: dxgi.dll+0000000000003C63h
[StackFrame] <-> Rip=7ffbe53b3c63h, Rsp=0092c946e248h, Rbp=0092c946e360h
[StackFrame] >-< Rsi=000000000001h, Rdi=000000000000h
[ GP Reg ] rax: 0x7ffbe544c108 rbx: 0x0208b56d7101
[ GP Reg ] rcx: 0x0208b56d71e0 rdx: 0x7ffbe544dd70
[ GP Reg ] r8: 0x0208958fa218 r9: 0x0092c9473740
[ GP Reg ] r10: 0x000000000021 r11: 0x000000000000
[ GP Reg ] r12: 0x0208959425d0 r13: 0x000000000012
[ GP Reg ] r14: 0x02139131e020 r15: 0x020895942b10
[ GP Flags ] EFlags: 0x00010202

   dxgi.dll >                    DXGIReportAdapterConfiguration
   dxgi.dll >                    DXGIReportAdapterConfiguration

SpecialK64.dll > ImGui_ImplDX11_NewFrame
SpecialK64.dll > SKX_D3D11_EnableFullscreen
SpecialK64.dll > SKX_D3D11_EnableFullscreen
SpecialK64.dll > SKX_D3D11_EnableFullscreen
SpecialK64.dll > SKX_SetPluginName
witcher3.exe > Scaleform::Render::Matrix2x4::Prepend
witcher3.exe > Scaleform::Render::Matrix4x4::SetIdentity
witcher3.exe > Scaleform::Render::Matrix2x4::Prepend
witcher3.exe > Scaleform::Render::Matrix2x4::Prepend
witcher3.exe > Scaleform::Render::Matrix4x4::SetIdentity
witcher3.exe > Scaleform::Render::Matrix2x4::Prepend
witcher3.exe > Scaleform::Render::Matrix2x4::Prepend
KERNEL32.DLL > BaseThreadInitThunk
ntdll.dll > RtlUserThreadStart

06/30/2022 21:56:09.900: Unhandled Top-Level Exception (c000001d):


[! Except !] << EXCEPTION_ILLEGAL_INSTRUCTION >>

[ Thread ] ~ Name…: “[GAME] Primary Render < RenderThread >”
[ FaultMod ] # File…: ‘C:\WINDOWS\SYSTEM32\dxgi.dll’
[ FaultMod ] * RIP Addr.: dxgi.dll+0000000000003C63h
[StackFrame] <-> Rip=7ffbe53b3c63h, Rsp=0092c946e248h, Rbp=0092c946e360h
[StackFrame] >-< Rsi=000000000001h, Rdi=000000000000h
[ GP Reg ] rax: 0x7ffbe544c108 rbx: 0x0208b56d7101
[ GP Reg ] rcx: 0x0208b56d71e0 rdx: 0x7ffbe544dd70
[ GP Reg ] r8: 0x0208958fa218 r9: 0x0092c9473740
[ GP Reg ] r10: 0x000000000021 r11: 0x000000000000
[ GP Reg ] r12: 0x0208959425d0 r13: 0x000000000012
[ GP Reg ] r14: 0x02139131e020 r15: 0x020895942b10
[ GP Flags ] EFlags: 0x00010202

   dxgi.dll >                    DXGIReportAdapterConfiguration
   dxgi.dll >                    DXGIReportAdapterConfiguration

SpecialK64.dll > ImGui_ImplDX11_NewFrame
SpecialK64.dll > SKX_D3D11_EnableFullscreen
SpecialK64.dll > SKX_D3D11_EnableFullscreen
SpecialK64.dll > SKX_D3D11_EnableFullscreen
SpecialK64.dll > SKX_SetPluginName
witcher3.exe > Scaleform::Render::Matrix2x4::Prepend
witcher3.exe > Scaleform::Render::Matrix4x4::SetIdentity
witcher3.exe > Scaleform::Render::Matrix2x4::Prepend
witcher3.exe > Scaleform::Render::Matrix2x4::Prepend
witcher3.exe > Scaleform::Render::Matrix4x4::SetIdentity
witcher3.exe > Scaleform::Render::Matrix2x4::Prepend
witcher3.exe > Scaleform::Render::Matrix2x4::Prepend
KERNEL32.DLL > BaseThreadInitThunk
ntdll.dll > RtlUserThreadStart

Tried all of these suggestions as well, game refuses to load with HDR enabled. Restarting the PC however I can finally load a save with SKIF enabled without the game crashing in SDR but once I enable HDR and then attempt to load a save the game crashes.

I’m at wits end here.

I have a system image I can fall back on, I will NEVER update SKIF when I get this working again.

Going back over the comments here with a fine tooth comb, looks like I’m not the only one having issues out of the blue with Special K crashing TW3 when loading a save only with HDR enabled (problem isn’t present in SDR).

The only reason I’m using SKIF is to accomplish HDR.

SKIF and this game worked fine until I regrettably consented to updating SKIF.

So some change was made with the update that broke HDR compatibility with this game.

Can anyone reproduce this problem? I’ve tried ALL of the suggestions here and none of them work.

I don’t think SKIF is the problem. SKIF is just a frontend (the launcher/app) - SKIF does not get injected into your games. SK gets injected into your games. I’d actually recommend updating to newer versions (of SKIF and SK - the installer found in the SK discord as well as the “check for updates” feature in SKIF updates both SKIF and SK) since often new versions can actually even work better as not only are new features added but also optimizations.

You can also revert back by downloading a previous version of the special k dlls (since, again, SK is what gets injected into the game - not SKIF). You could keep a backup or simply check in our discord’s #nightly-builds or #installers channels where we have previous versions of the standalone SK dlls as well as previous versions of the installers - which include both SKIF and SK etc.

Regarding catching potential bugs or issues before updates are released, I believe this is often the case and new releases tend to be really stable; however, unfortunately keeping compatibility and testing for all the many games where special k works is kinda tricky…

If a game somehow worked better with a previous version of SK, it often gets fixed after we realize it or after someone reports it, but otherwise or in the meantime and if the problem is just with one game or only a few, you could use global injection for your games where global injection with the latest SK is working for you (i also especially mention this because earlier you said “SK works with all of my other games”), and then use an older version of SK with local injection for the game where the older SK was better.

That said, have you tried local injection for this particular game ? The witcher 3 is a d3d11 game… so you can try copy/pasting the SpecialK64.dll from your special k folder into your game folder and then rename that local SpecialK64.dll to dxgi.dll - this may or may not fix your issue, but anyway it’s something to try if you haven’t already. You can try local with the latest version of SK or with an older version of SK. In some cases, even with the latest or same version of SK, local injection can work better. Though global injection is often the most compatible.

Also, keep in mind that Kaldaein has recently been working on new HDR features and adjustments, and he has fixed and improved several aspects of SK’s HDR. In the process, a few issues also cropped up and i believe most got fixed already. I imagine it’s possible that somehow in these changes something affected SK’s HDR compatibility with the witcher 3, so that may need a closer look by Kaldaien. He’s still working on improving SK’s HDR more to get it to an even higher level of quality. This may take some time, but totally worth it in my opinion. He fixed HDR for the game Tales of Arise recently for example - and it’s looking really good…

maybe @Kaldaien can see something from the logs stuff you posted for the witcher 3. For now, i’d suggest that you try local injection for this game and/or an older version of SK which you can find in the SK discord. i also suggest resetting your config (the SpecialK.ini) after changing to a different version of SK - sometimes that can avoid a potential issue. we also have a dedicated discord channel for HDR where you can also find information and post questions you have etc

and, for logs, there might be more info to work with if you attach your latest crash.log, SpecialK.log, and modules.log (here or post them in the SK discord in the support channel)

1 Like

YES! Moving SpecialK64.dll over to the game’s executable folder and renaming it to dxgi.dll did resolve this problem. After some back and forth I am able to get HDR working again properly. Thank-you so much for your help with this!

ah cool. np. glad it’s working for you now