Monday, November 5, 2018

Kingdom Come: Deliverance - 3D-Vision Ready Fix V3.11

NOTE: Some styling of this post is broken but i am happy i could save my 2hrs work in the last seconds my internet connection crashed ... hence ignore bad style ^^ Be happy this thread is here....i definitively havnt had created it a second time !!!















***This fix was made of prev. Cryengine games made by DarkStarSwordDHR and DJ-RK that served as tamplates***

Special Thx goes to:
DarkStarSword - "cracking" the Cryengine the first time
DJ-RK- who mady a likely playable WIP fix with me and suppots me with his knowledge
DHR - applying the 3D-Vision Ready CS lightening fix
DarkStarSword - fixing the hard to fix issues we all can not fix especially some water-reflection, flimmering shadows and screen space reflections and SSDO!!!!
DarkStarSword - learned me a lot of things to get my 3D-fixing-knwoledge up to 3 of 10 points ^^

==> This was a realy good collaboration of common 3D-shader-hackers, even Helifax offered his help, THX A LOT!!! I am very proud of presenting the following fix that where never be possible without this community!! GO AHEAD !!



_______________________________________________________________________

--- ~279 h development time later ---
_______________________________________

Update: V3.11
- Fixed a new CS shader for high shader effect settings with 1.7
- no profile switching needed anymore but you need to delete drivers original KCD profile!!!!! Otherwhise low performance!!!
- should have more performance over all

HINT: PLEASE READ NEW DESCRIPTION IN DETAIL AGAIN !!!!!!!!!!!

Special (its your free decision to use or not!):
- cmd driven version for performance boost options

TANK YOU Zloth for beta testing and helping me trace bugs here!!!!
TANK YOU Schwing. for AutoHotkey hints prevent the script is active after game/ALT+TAB!!!!

░░░░
░ 1  ░ 3D-Vision Performance Mode++++ (up to 10 % FPS, boost options enables up to 50 % FPS on demand, no Reshade, you can use your own)
░░░░
                            USING AUTOHOTKEY EXE SCRIPT, user.cfg based visual changes

░░░░
░ 2  ░ 3D-Vision Performance Mode+++ (up to 5 % FPS, boost options enables up to 50 % FPS on demand, MXOA from Reshade)
░░░░
                            USING AUTOHOTKEY EXE SCRIPT and ReShadeFX, user.cfg based visual changes
   
░░░░
░ 3  ░ 3D-Vision Performance Mode++ (up to 10 % FPS, boost option enables up to 30 % FPS but texture flickerung)
░░░░
                              no tools used for this, but user.cfg based visual changes


░░░░
░ 4  ░ 3D-Vision Performance Mode+ (up to 5 % FPS, boost option enables up to 30 % FPS but texture flickerung)
░░░░
                              no tools used for this, no visual changes in user.cfg



Lastest Update: 30.09.2018 - V2.58
- updated for the lastest patch
- fixed a game beaking change of lightening that should not happen ....
- fixed lights for HIGH shader effect settings
- bring back autodepth crosshair
- bring back autodepth crosshair for VeryUnintrusiveReticle
(see https://forums.nexusmods.com/index.php?/topic/6401941-very-unintrusive-reticle/page-3#entry59576871 how to install the mod even in its current version 02)

Update: 10.06.2018 - V2.5
- fixed more problems i have missed for adaption after game version 1.5
(skybox, lights and ambient occlusion, character haloing outlines in darkness)
(if you allready have V2.55 you just have to copy the 2.56 over, no need to uninstall the prev. fix)
===> Please send me an Email (you can use my paypal donation adress) if you find any problems since 1.5 that I missed to fix!!!
Update: 09.06.2018 - V2.55
- cinematics into depth
- fix is now working for 1.5 and prev. versions, please read the new introductions to get it working below (especially for SLI!!!!) .... and if you also miss the gamma correction option ^^
- you can disable ANSEL if you have isses .... just edit the d3d11.ini and delete the ";" from this line:  ;Enable Ansel = 0x00000000
Update: 28.03.2018 - V2.54
- fixed a problem caming up with game version 1.4
- performance boost
- working and good scaling SLI
- complete fix of flicker lights
- DOF optimization
- optimized BLOOM
- since 1.4 you should write protect your attributes.xml in "X:\Users\USERNAME\Saved Games\kingdomcome\profiles\default" after you have found your final graphic settincs!!! (otherwhise it can all be set to high automatically even with hotfix 1.5
Update: 28.03.2018 - V2.53
- sorry: i have implemented the wrong rain shader in 2.52, fixed now
Update: 27.03.2018 - V2.52
- further rain optimization
- strange angels will not draw shadows on house walls completely in fare distances <== FIXED!!!
- one eye problem/reflection on some wett ground GDcall fixed
Update: 26.03.2018 - V2.51
- 3D-Vision Ready (nearly 100 % fixed)
- making blocking deth crosshair more likely, unfortunately it will not apply autodepth while blocking, hence i set up a fixed deth, you can change it in [Key_fight_XB2] or [Key_fight_KB2] if you need
- rain optimization by DarkStarSword
- fixed lightening chaning bug while enter inventory
- farkle depth corrected
- inventory depth adjusted for alternative dialog mode


1. Fixed:
- shadows DJ-RK / Losti
- decalls DJ-RK / Losti
- postprocessing DJ-RK / Losti
- sun DJ-RK complete fix Losti
- sunshafts DJ-RK
- moon Losti
- sky / stars DJ-RK
- puddles DJ-RK / Losti
- reflections WIP DJ-RK / Losti, made perfect by DHR
- screen space reflections DarkStarSword
- CS lightening WIP fixed by DJ-RK/Losti, made perfect by DHR
- dialog lightening correction switch Losti
- distance shadow glitches/light one eye issues Losti
- object flimmer shadows Losti
- character flimmer shadows DarkStarSword
- water DJ-RK / Losti complete fix DarkStarSword
- rain DJ-RK / Losti
- UI DJ-RK / Losti
- dynamic lightening Losti
- SSDO: WIP DJ-RK / Losti complete fix DarkStarSword
- Auto crosshair DJ-RK,Very Unintrusive Reticle Mod Support Losti
- Auto inventory depth DJ-RK / Losti
- Auto inventory depth Farkle Losti
- Auto inventory depth lockpicking Losti
- game has software mouse in depth (THX to the MIGOTO team!!!) (THX to Necropants for the hint that removes the black square arround the coursor)
- found DX10 flags for working SLI and performance boost for non SLI Losti


2. Issues left:
- some neare ambient lights on characters are not completely fixed at a short distance viewing
- some water/screen space reflections not complelty correct (@huge puddles, not often seen)

==> Please report existing problems or upcoming one via EMAIL to my PP donation adress or in the 3D Vision forum, i will not check this post!!!!


3. Download - Fix V 3.11


4. Introduction get it working:
- uninstall old fixes!!!
- get the lastest NVIDIA driver!!!!!!!!!!!!!!!!! Use DisplayDriverUninstaller if you run into any issues like blackscreen or some what!!!
- Please NOTE this:

- since 1.4 you should write protect your 
attributes.xml in "X:\Users\USERNAME\Saved Games\kingdomcome\profiles\default" after you have found your final graphic settings!!! (otherwhise it can all be set to high automatically even with lastest patch!!!

- download and extract the fix archive to "...\KingdomComeDeliverance\"
==> NOT as used to the exe directory!!!

- get NvidiaProfileInspector
- start it and search for "kingdomcome" (w/o "")
- delete this game profile, or delete the KingdomCome.exe from it, otherwhise you will have bad performance, the Version 3.1 will come with an own profile but you need to delete the existing/original one

- if you have any special settings in the user.cfg, add it to ...\KingdomComeDeliverance\Bin\Win64\user.cfg
==> if you want to use PerformanceBoostVersion, skipp this and follow chapter 4.1 for user.cfg changes!

- ATTENTION: Mods changing inventory textures will brake auto-depth setting. Same for mods that will change graphics settings via user.cfg settings or system.cfg!!! Disable all mods and try again before reporting issues!!! --- Be aware of using SweetFX or Reshade this may can cause issues (only report issues if you have checked that they where not came with ReShade or SweetFX)

- Start the game as you are used to, if you do not care about FPS/performance.
==> If you like to have some more performance, please read the following chapter 4.1


4.1 Introduction for PerformanceBoostVersion:
- go to ...\KingdomComeDeliverance\Bin\Win64\

- right click the "KDC_RaiseFPS2_ENG.exe" and "KDC_RaiseFPS2_GER.exe" and "KDC_RaiseFPS2_NAB.exe" and set it as "Run program as Asministrator" in compatibility tab!!!! ==> Do not complain about not working hotkeys if you missed this!!!

- make key changes her if you want/need (PLEASE make sure you READ chapter 8 bevore you will do changes of the keys!!!!) (...\KingdomComeDeliverance\Bin\Win64\):
---- d3dx_PP.ini
---- d3dx_NP.ini
---- d3dx_PP_NAB.ini
==> (NOT IN THE d3dx.ini itself!!!!)

- if you have any special settings in the user.cfg, add it to the user_3.0np.cfg AND user_3.0p.cfg AND user_default.cfg (NOT IN THE user.cfg itself!!!!)

- start KDC_Performance.cmd ==> create a link and give it a symbol if you want ^^ do not start the game directly via KingdomCome.exe or Steam/GOG!!!

- follow the instructions and read more details

4.2 Special hints for performance:
- you can downscale WQHD resolution to FullHD and use ReShade for sharpening, the performance mode: "3D-Vision Performance Mode+++" includes this effect but you need to enable it (SHIFT+F2 and tick the LumaSharpen here) ==> BOOST: up to 30 % additional FPS !!!
- Use NO effect more than hight than the following @ maximum very high:
---- Object Quality
---- Shader Effects
---- Water
---- Lights
---- Textures
- do NOT use ULTRA ... its useless.....
- i suggest particles, vegetation and physics @ medium


5. Ingame Settings:
- I recomment VERY HIGH Shader Effects, lower you miss some reflections.
- Settings should be up to you, but if you have problems with shadows/shaders, rise those settings.I suggest not lower than medium shadows.
- SMAA 1TX not higher
- Water VERY HIGH or higher
- if you have issues with not  working autodepth crosshair, try higher shader effects

-If you run into flickering shadows in the night, load a game in a day scene, than reload a night scene again....it should be fixed
- press F10 after any changes from the ingame settings or just restart the game to apply completely


6. Key Settings:
6.1 Key Settings (Controller):

Disable/Enable HUD
XB_GUIDE - HOLD DOWN

Change Water apperance
(muddy or clear, fix cames with clear water (vanilla is muddy))

Standard Gaming Depth
XB_GUIDE
==> This will set your game to STANDARD Separation and convergence

Standard Gaming Depth RESET
XB_B HOLD DOWN
==> Same as above, but reset to standard gaming depth while running

Dialog-Key Setting alternative depth
XB_LEFT_SHOULDER + XB_DPAD_RIGHT
==> Some less convergence in dialoges

Key for read a Book / sit on table
XB_LEFT_SHOULDER + XB_DPAD_LEFT
==> Depth settings for sit @ table and/or read a book

Fighting mode
XB_LEFT_SHOULDER + XB_BACK
==> Recommendation for meele armed fights/fist fight

Cycle HUD-Depth Presets
XB_LEFT_SHOULDER + XB_A
==> Find your matching HUD depth and set it as z=XXX in "Standard Gaming Depth"

6.2 Key Settings (Keyboard + Mouse):

Disable/Enable HUD
"Z"

Change Water apperance
"U" (muddy or clear, fix cames with clear water (vanilla is muddy))

Standard Gaming Depth
"3"
==> This will set your game to STANDARD Separation and convergence

Standard Gaming Depth RESET
"SHIFT" HOLD DOWN
==> Same as above, but reset to standard gaming depth while running

Dialog-Key Setting alternative depth
"4"
==> Some less convergence in Dialoges

Key for read a Book / sit on table
"5"
==> Depth settings for sit @ table and/or read a book

Fighting mode
"T" HOLD DOWN
==> Recommendation for meele armed fights/fist fight

Cycle HUD-Depth Presets
"."
==> Find your matching HUD depth and set it as z=XXX in "Standard Gaming Depth"
6.3 Additional Key Settings (using PerformanceBostVersion):

Enable Performance Boost Option 1 (Object drawing LOD reduced)
"F1"
Enable Performance Boost Options 2 (shader driven performance boost but causes flickering)
"F3"
Enable Performance Boost Options 3 (disables SSAO)
(only available in 3D-Vision Performance Mode+++) "F4"
Disable ALL Performance Boost Options

"F3"

Hint: RESTRICTED KEYS for definition: F9 and key 6, do not redefine in the migoto ini!!!!!!

Al settings can be resetted via "Standard Gaming Depth" key for normal view (Boost options reset depentds on your choice in the cmd file, more infors are written there
 - use it if you have changed the depth/conv via a key (like dialog or fight, and to reset the Performance-Boost-Options if you use it)

8. Key Setting - Customization - Standard Version
if you dont like the settings the fix comes with, you have to find your own likes:
- choose your desired separation and convergence in the game (for the HUD you can cycle depth presets via Key (see key-settings)

- to see your convergence/separation set

[Hunting]

hunting=1
in d3d11.ini and press F10 to see the current separation/conv. Set it to 0 if finished (Press F10 again or resart the game) -- BE AWARE of pressing other keys of the NUM-PAD while hunting is enabled.
- Find a suitible HUD depth (constant "z")
- edit the section *Key definitions* in d3dx.ini
- set your desired Separation and Convergence in the "Standard Gaming Depth Key" section as well as HUD depth (z=...)


8.1 Key Setting - Customization - Performance Version
RESTRICTED KEYS for definition: F9 and key 6 (if you use PerformanceBoostVersion)
- same as above but your files for change keys are
---- d3dx_PP.ini
---- d3dx_NP.ini
---- d3dx_PP_NAB.ini
==> Redefinition of Fight-Keys (Keyboard: T (press 0,4 sec) or on controller LB+BACK) needs changs in the auto hotkey scripts and recompiling its exe files to work ...HENCE: If you dont know how, I bag you live with this key settings^^ Same for F2/F3 here !!! Its too complicated to explain all this because its connected to the respective ini files....but for those wo wants to, the .ahk scripts are included in the archive. You need to install AutoHotkey program first.....
- F3 boost can be changed in the migotos ini file- F1 and F2 are defined in the AHK scripts as well as T, 3 and the joy keys. The reset is done via sending F9 from AHK that in turn is defined in migotos ini file for reset the sjhader driven boost.....
==> The redefinition of the Standard Gaming Depth and the Fight Key to reset the boost option is only for advanced users. If you want to have personal key settings here and you cant manage it, you are free to ask me for some help via my PayPal donation adress.

Acknowledgements

- Big thanks to DJ_RK for the ShaderRegex that fixes many issues on demand
- THANK you DHR for your kind words and your support with CS-Lightening!!!
- Big thanks to Bo3bDarkStarSword, Flugan and all others involved in creating 3DMigoto; an amazing wrapper that allows us to fix our favourite DX11 games in 3D Vision!
- Tanks goes to Helifax who offerd his support even if he issnt present for fixing games @ the moment, COME BACK WE NEED YOU !!!!
TANK YOU Zloth for beta testing and helping me trace bugs here!!!!
TANK YOU Schwing. for AutoHotkey hints prevent the script is active after game/ALT+TAB!!!!
NVIDIA for creating 3D-Vision as a tech!
__________________________________________________________________________________
If you like the fix and want to contribute for more future fixes, you can donate to this PayPal account: rauti@inetmx.de

41 comments:

  1. Awesome - I funded the game, but was not able to play it so far. Now I am really happy, because I can enjoy your great work. Thank you so much. I will donate as soon as I play.

    ReplyDelete
  2. O.M.G.!!! This one is unexpected! Thanks a lot, 3D shaders gurus! 🤓

    ReplyDelete
  3. Awesome dude, you made it! thanks to other shaderhackers for supporting you!
    Cheers
    chtiblue

    ReplyDelete
  4. Jesus, thx alot for this ♥ Donation is coming ^^

    Unfortunately I dont understood one line

    What to do with the cfg? I moved it to the KingdomcomeDeliverance Folder, and than?


    move "user.cfg" to \KingdomComeDeliverance\ <-- add="" following="" lines="" or="" own="" p="" the="" to="" user.cfg="" your="">e_svoTI_Apply=1
    e_SvoTI_GSMCascadeLod=50


    best regards ♥

    ReplyDelete
  5. Sorry ^^ some Blog "html coating error, I will fix this ^^

    ReplyDelete
  6. The user.cfg contains 2 lines that will cure flimmering shadows on objects:


    - move "user.cfg" to \KingdomComeDeliverance\
    - or add the following lines to your user.cfg if you allready have one and you want to keep your settings. Add the following lines (be sure they are not allready present in any case, if yes, please replace if with):
    e_svoTI_Apply=1
    e_SvoTI_GSMCascadeLod=50

    ReplyDelete
  7. After fix installed I still have left-eye picture frozen in 3Dstereo mode. What I did not do right?

    ReplyDelete
    Replies
    1. get the lastest NVIDIA driver!!!!!!!!!!!!!!!!! Use DisplayDriverUninstaller if you run into any issues

      Delete
  8. Wow. I don't own the game, but it put a great big smile on my face to see such attention to detail in the rundown of who fixed what on this game. I have such respect for you all, to continue keeping 3D Vision alive so selflessly - all those hundreds and thousands of hours work for just a little personal satisfaction and on the odd occasion maybe a couple of $ beer money. Feeling the love. Thanks!

    ReplyDelete
  9. Wow!!
    Awesome work , and great to see this community so alive :)
    Biggest respect for working together to keep this tech truly NEXT-GEN

    ReplyDelete
  10. This comment has been removed by the author.

    ReplyDelete
  11. It seems to me that access is denied on V2.54 download link

    ReplyDelete
  12. iam not getting correct screen in 1920 x 1080 resolution but working fine in 2710 x 1520.but then fps drops to 18 not playable.am I doing some thing wrong?

    ReplyDelete
  13. Hey there, thanks for the great work. Only a thing: everytime the separation turn back to the maximum, that is too much for my display and the distance from it. Is there some tweak to avoid it?

    ReplyDelete
  14. Yes, all the separation settings is, if you are using the settings the fix comes with, and if you not changed it, are fix. Open the d3d11.ini and change separation = 100 to what you prefere in "Standard Gaming Depth Key" section. Of cause you are free to delete all the separation = 100 settings in each key setting. and adapt the convergence you need. read the fix description how to do.

    ReplyDelete
  15. Love this, its so much fun in 3D - Thank you!!

    ReplyDelete
    Replies
    1. Seems like they patched something perhaps with graphics in the game today? Some of the shadows now seem off maybe couple other issues?

      Delete
  16. Game version 1.5 has broken water shaders and some rock cliffs look 2D now :(

    ReplyDelete
  17. I have 2 hrs to have a look today

    ReplyDelete
    Replies
    1. OK could have a short look @ it and it seems that some shader hashes are different because of the new optimizations and changes in 1.5 ... could fix a lot of them, some shaders are changed but the fixing routine is still the same. I its only a matter of time to get the fix working for 1.5 ... but THIS IS THE PROBLEM .... i do not have time... ill try my best to get it working today but i have only a couple of time this weekend. But do not worry, ill make it !!!

      Delete
    2. Hey Losti, take your time, no rush :)

      Delete
    3. OK seems i have fixed everything, also the SLI problem...used old KDC profile...will see if i can implement the changes in the current driver profile via the migoto ini but neet to track down the valu that causes problems...

      BUT ==> I will release the update today !!!

      Delete
    4. It's great news Losti! Thanks a lot for your effort. Game in 2D is nice but 3D stereoscopic is the pure Bliss :)

      Delete
  18. New Fix for Game VErsion 1.5 is up for you now!

    ReplyDelete
    Replies
    1. Hello Losti,

      I have followed instructions and tried manual approach as well as 3D fix manager.
      3DS is not working at all. Everything is white, some broken objects appear at lowest separation, only HUD is there or menu. 3D compatibility works fine though. I tried with newest nvidia driver 398.11 and 397.93 as well. Used display driver uninstaller also. Nothing helps.

      P.S. No mods, no reshade.

      Delete
    2. Sorry i forgott to add the d3d11.ini file in the fix .... please redownload, its inside now...SORRY !!!

      Delete
  19. Working great now, great job, thank you!

    ReplyDelete
    Replies
    1. I have fixed some remaining problems i have missed (thy Roland for the hint with the skybox) ... get updated fix Fix V2.56 now.

      Delete
    2. 3D is in best shape again, thanks a lot!

      Delete
  20. how does this run for everyone?. I have sli 1080's with the edited sli profile.
    in 2D everything just on HIGH my GPU's are pinned at 100% usage. with mild frame rate drops.
    ctrl+t turning on 3D GPU usage is at like 50-60% with frame rates all over the place as low as 42.
    ctrl+t again out of 3D goes back to 100%. it's like GTA V done the same thing. we all know how that ran.
    But it's comparable for me the GPU usage does the same thing in 3D and then disabling it to 2D.

    Thanks.

    ReplyDelete
    Replies
    1. Same here. Gtx 1080 runs almost 100 percent everywhere, however, in the 3D, it runs well out of towns but in towns capped somewhere around 65 percent, CPU 45-60 percent, very low FPS 16-25.

      Delete
    2. You have followed the new instructions with the profile?
      Can you both please try it again after adding "0x080040F5" as SLI bit and as SLI bit for DX11 with NvidiaProfileInspector and report back if this is working for you ??

      Can you please export the current profile (with Geforce 3D Profile Manager) and post the entries for KCD here ?

      Delete
  21. In Game with patch 1.6 the auto crosshair does not work, the dot is at depth of hud

    ReplyDelete
  22. Losti, I have some dumb questions. Does your fix work for ONLY 3D Vision? Also, does this work for Patch 1.6? The ambient lights on characters at night when I have my torch out is driving me insane. I would LOVE IT if your fix disables this strange ambient light source (I can see anyone wearing white at night because it literally glows).

    ReplyDelete
    Replies
    1. The fix is working also for 2D (is it that what you mean with "Does your fix work for ONLY 3D Vision") but i dont care about strange ambient light sources in it ^^ Of cause it is possivle to use 3D-Migoto for those issues.....

      Send me a save game and a screenshot and description of what is bothering you in detail to my PayPal donation adress and i will see if i can cure this issue especially for you.

      Delete
  23. Hallo! For me the mouse cursor is not visible. Neither in the main menu, nor in the inventory ingame. Any ideas?

    ReplyDelete
  24. Please try the new version, i have had done some changes here with the migoto version, may it will work for you.

    ReplyDelete