Re: Nioh No 21:9 support (Fix request)
Posted: 15 Nov 2017, 07:38
Super Thnkxxxxx
[-noun] Web community dedicated to ensuring PC games run properly on your tablet, netbook, personal computer, HDTV and multi-monitor gaming rig.
https://www.wsgf.org/phpBB3/
jackfuste wrote:
- First you need a cracked nioh.exe. Why it's needed? Because legit exe is encrypted and you can't modify it.
- Download latest version x64dbg debugger - https://sourceforge.net/projects/x64dbg/files/snapshots/
- Run release\x64\x64dbg.exe with Administrator rights
- Go to Options - Preferences
- Uncheck "System Breakpoint"; "TLS Callback"; "Attach Breakpoint" and save settings
- File - Open - nioh.exe
- Click RMB and select "Search for - Current Module - Constant"
- Enter constant - 3FE38E39 and press OK
- Select second found command "mov dword ptr [rbx+0x50], 0x3FE38E39" click on it RMB (right mouse button) and select "Follow in Disassembler"
- Scroll down FPU window and click two times LMB (left mouse button) on XMM0 register
- Input to "Float:" window you new aspect ratio, for example, for resolution 2560x1080 it will be 2560/1080 = 2.37037037037037
Click on "Hexadecimal" and copy value from "Long:" window to clipboard, in my case it will be 4017B426- Click two time LMB on command
mov dword ptr [rbx+0x50], 0x3FE38E39
and change aspect ratio value 3FE38E39 to your new aspect ratio value 4017B426
mov dword ptr [rbx+0x50], 0x4017B426
Click "OK" and then close window "Assemble at ..."- Go to "Memory Map" tab, select nioh.exe click on it RMB and select "Find Pattern"
- Paste to "Hex:" window following bytes 0F 95 C0 88 46 34 and press OK
- Select found bytes "0F 95 C0 88 46 34"click on it RMB and select "Follow in Disassembler"
- Click two time LMB on command
setne al
Check "Fill with NOP's" and change it to
xor al,al
Click "OK" and then close window "Assemble at ..."- Select "call 0x00007FF772BA3451" and press "Enter" to go inside it
- Press "Enter" again to go inside "jmp 0x00007FF773104E40"
- Click two time LMB on command
jle 0x00007FF773104E70
and change it to unconditional jump
jmp 0x00007FF773104E70
and also change command
jns 0x00007FF773104E86
to unconditional jump
jmp 0x00007FF773104E86![]()
- Go to "Memory Map" tab, select nioh.exe click on it RMB and select "Find Pattern"
- Paste to Hex: window following bytes 00 00 87 44 00 00 F0 44 and press OK
- Select found bytes "00 00 87 44 00 00 F0 44"click on it RMB and select "Follow in Dump"
- Click RMB in Dump window and change view to "Float - Float (32-bit)"
- You will see values 1080 and 1920
- For aspect ratio lower than 1.77777 (16:9) you should change 1080 value.
How to recalc it:
for aspect ratio 1.6 (16:10); 1920/1.6 = 1200
for aspect ratio 1.33333 (4:3); 1920/1.33333 = 1440
And for aspect ratio higher than 1.77777 (16:9) you should change 1920 value.
How to recalc it:
for aspect ratio 2.37037 (2560:1080); 1080*2.37037 = 2560
for aspect ratio 2.38888 (3440:1440); 1080*2.38888 = 2580- So, for resolution 2560x1080, change 1920 to 2560
Click two times LMB on XMM0 register
Input value 2560 to "Float:" window
Click on "Hexadecimal" and copy value from "Long:" window to clipboard, in my case it will be 45200000- Click two times LMB on 1920 value in the Dump window and change it to 45200000
![]()
- Go to "Memory Map" tab, select nioh.exe click on it RMB and select "Find Pattern"
- Paste to Hex: window following bytes 00 0F 00 00 70 08 00 00 and press OK
- Select first found bytes "00 0F 00 00 70 08 00 00"click on it RMB and select "Follow in Dump"
- Click RMB in Dump window and change view to "Integer - Signed long (32-bit)"
- You will see two group of values
First is a real resolution:Code: Select all
3840 2160
2560 1440
2048 1152
1920 1080
1600 900
1366 768
1280 720
Second is internal game resolution:Code: Select all
3840 2160
3328 1872
2560 1440
1920 1080
1664 936
1280 720
960 540- So, for resolution 2560x1080, change all values to 2560 and 1080
Click two times LMB on 3840 value in the Dump window and change it to 2560
Click two times LMB on 2160 value in the Dump window and change it to 1080
etc...![]()
You can increase/decrease internal game resolution to manipulate image quality.
So if you wish to get supersampling 2x2 change all internal game resolution values to 5120 and 2160.- File - Patch file
- Click "Patch File"
Make copy of nioh.exe, and select it for patch, but make sure that file doesn't have attribute "Read only"
LennardF1989 wrote:Hey everyone, I released a tool yesterday to do patching work based on my own research, you can find it here: https://github.com/LennardF1989/NiohResolution
LennardF1989 wrote:Hey everyone, I released a tool yesterday to do patching work based on my own research, you can find it here: https://github.com/LennardF1989/NiohResolution
When I compare my logic to what @Jackfuste does, it's almost the same except for the aspect ratio "fix" it seems, but in theory it does the final steps and should work for any version to come.
I'll look into incorporating some of Jackfuste's notes, the super-sampling support sounds fun! Pull Requests to get additional steps in here are appreciated!
HWGuy wrote:LennardF1989 wrote:Hey everyone, I released a tool yesterday to do patching work based on my own research, you can find it here: https://github.com/LennardF1989/NiohResolution
When I compare my logic to what @Jackfuste does, it's almost the same except for the aspect ratio "fix" it seems, but in theory it does the final steps and should work for any version to come.
I'll look into incorporating some of Jackfuste's notes, the super-sampling support sounds fun! Pull Requests to get additional steps in here are appreciated!
Yeah no dice here my dude, I am at 3840x1080, and had to do the Jackfuste method - yours just gave me a pillar boxed screen.
LennardF1989 wrote:I just released v1.1.0 which incorporates the fixes provided by @JackufusteWith a little bit of luck, it remains forward compatible! Tool now also has support for the mentioned supersampling (or downsampling if you want some more performance).
https://github.com/LennardF1989/NiohResolution/releases
niceee wrote:The Game have a new patch, now 21:9 again still not working, need a refresh version .exe file of resolution, can someone attach it plz?
wsgf_fan wrote:niceee wrote:The Game have a new patch, now 21:9 again still not working, need a refresh version .exe file of resolution, can someone attach it plz?
LennardF1989's Fix still works!
https://github.com/LennardF1989/NiohResolution/releases
jackfuste wrote:Update for v1.21.03
jackfuste wrote:Update for v1.21.03
jackfuste wrote:LiquidSam wrote:It seems that files are corrupt, could be?
Forum doesn't allow to attach files more than 5MB, so the archive divided into 3 parts.
You need to download all 3 parts of archive and start unpack it from first part - Nioh_v1_21_03.part001.rar
You can unpack it using 7-Zip or WinRAR
jackfuste wrote:LiquidSam wrote:It seems that files are corrupt, could be?
Forum doesn't allow to attach files more than 5MB, so the archive divided into 3 parts.
You need to download all 3 parts of archive and start unpack it from first part - Nioh_v1_21_03.part001.rar
You can unpack it using 7-Zip or WinRAR