toggle gameplay hud (not map) on / off
decrease map opacity

- description

Code vein a well lit game alas slightly a bit too much
of the 'lets sucker punch you from precarious ledges' school
of game play, but never the less still engaging.

This tweak allows you to toggle the hud through:
Key=XB_X hud off
Key=XB_A hud on
Key=XB_START hud on

These buttons have been selected as a form of auto
on / off however if you want something different see
further tweaking below.

- install

Copy the contents of the zip file to the install folder of code vein, the folder which
contains CodeVein-Win64-Shipping.exe. (code vein\CodeVein\Binaries\Win64)

If you do not like using unverified dll's you can download 3dmigoto from
https://github.com/bo3b/3Dmigoto/releases
download version 1.3.16 and place the following dlls in the install dir of code vein
d3d11.dll
d3dcompiler_46.dll
then copy ShaderCache and ShaderFixes from the zip file and the d3dx.ini
to the same dir aka folder.

- verify

After running the game the folder ShaderFixes should contain the .bin versions:

29666d32512b8309-ps_replace.bin
4f489b9956bd3e30-ps_replace.bin
645fbe441f81610c-ps_replace.bin

of

29666d32512b8309-ps_replace.txt
4f489b9956bd3e30-ps_replace.txt
645fbe441f81610c-ps_replace.txt

This means that the file(s) .txt have been compiled by 3dmigoto (d3d11.dll)

- tested

Tested with version 1.01.86038 of code vein on win 7 / nvidia 1050gtx ti
See screenshot for settings game.

- performance

No performance impact measured.
Note: No idea if this influences latency (button press)

- further tweaking

If you like you can compare the modified shader, ShaderCache contains
the original shader, to alter values.

There are two shaders that have been modified for toggling (see comment in file):
// toggle hud with button or key
// toggle text companion name with button or key

if you do not want map transparency remove:
4f489b9956bd3e30-ps_replace.txt
// decrease opacity map more transparent map right top corner
or if you want the map to toggle add:

  float4 iniParams = IniParams.Load(0);
  if (iniParams.x == 1) {discard;}

after:

  float4 r0,r1,r2,r3;
  uint4 bitmask, uiDest;
  float4 fDest;

(see other shaders for example)
More info on adding a toggle see:
https://www.reddit.com/r/Ni_no_Kuni/comments/88bxfm/hud_removal_using_3dmigoto_guide/

Altering buttons look in d3dx.ini for:
[Key1]
Key=XB_X
x=1
type=cycle

[Key2]
Key=XB_A
x=0
type=cycle

[Key3]
Key=XB_START
x=0
type=cycle

change to for example:

[Key1]
Key=XB_GUIDE
x=1,0
type=cycle

For just one button which switches the hud on and off

tip!
launch with (unreal 4 command line parameters):
CodeVein-Win64-Shipping.exe -norc -nowrite -nodatabase -useallavailablecores -noforcefeedback -nosplash -fullscreen -nosteam
