Page 7 of 9

Re: Nioh No 21:9 support (Fix request)

Posted: 15 Nov 2017, 07:38
by daitern
Super Thnkxxxxx

Re: Nioh No 21:9 support (Fix request)

Posted: 15 Nov 2017, 09:01
by Kenzo3721
Is it safe to use fix with steam version? Game has multiplayer so isn't cracked .exe a guaranteed vac ban?

Anyway, thanks for fix. Great job.

Re: Nioh No 21:9 support (Fix request)

Posted: 15 Nov 2017, 09:08
by Nostalgia
Just create the User Account for the sake of being able to say "thank you" to Jackfuste. You are the reason I bought Nioh again on steam (aside from owning it on my PS4 PRO). I'm ready to contribute something to you as a donation as well and please consider it as my deepest gratitude for making this happen. Again if you take some kind of donation please let us know, a guy like u are a valuable person that keeps contributing great things to the community.

Re: Nioh No 21:9 support (Fix request)

Posted: 15 Nov 2017, 10:05
by LennardF1989
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!

Re: Nioh No 21:9 support (Fix request)

Posted: 15 Nov 2017, 16:18
by Bastinazus
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"
    Image
  • Enter constant - 3FE38E39 and press OK
    Image
  • Select second found command "mov dword ptr [rbx+0x50], 0x3FE38E39" click on it RMB (right mouse button) and select "Follow in Disassembler"
    Image
  • Scroll down FPU window and click two times LMB (left mouse button) on XMM0 register
    Image
  • 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
    Image
  • 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 ..."
    Image
  • Go to "Memory Map" tab, select nioh.exe click on it RMB and select "Find Pattern"
    Image
  • Paste to "Hex:" window following bytes 0F 95 C0 88 46 34 and press OK
    Image
  • Select found bytes "0F 95 C0 88 46 34"click on it RMB and select "Follow in Disassembler"
    Image
  • 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 ..."
    Image
  • Select "call 0x00007FF772BA3451" and press "Enter" to go inside it
    Image
  • Press "Enter" again to go inside "jmp 0x00007FF773104E40"
    Image
  • Click two time LMB on command
    jle 0x00007FF773104E70
    and change it to unconditional jump
    jmp 0x00007FF773104E70
    Image
    and also change command
    jns 0x00007FF773104E86
    to unconditional jump
    jmp 0x00007FF773104E86
    Image Image
  • 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)"
    Image
  • You will see values 1080 and 1920
    Image
  • 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
    Image
  • Click two times LMB on 1920 value in the Dump window and change it to 45200000
    Image Image
  • 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)"
    Image
  • You will see two group of values
    Image
    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...
    Image Image
    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.
    Image
  • File - Patch file
  • Click "Patch File"
    Image
    Make copy of nioh.exe, and select it for patch, but make sure that file doesn't have attribute "Read only"
    Image

Wow it's much more complex than I thought. Thank you very much anyway for the effort.

So, before doing all this work, we have to wait for a new cracked nioh.exe?

Re: Nioh No 21:9 support (Fix request)

Posted: 16 Nov 2017, 01:48
by shrgnatlas
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


I downloaded your tool and unfortunately the game launches in a 2560x1080 window but does not render the game, it's menu, the UI, or anything else you might expect to fill the screen outside of the 1920x1080 settings that you suggested were to be applied in the launcher. There are black bars on both sides of the screen, and the steam overlay fills up the entire screen, but the game itself is constrained to its normal resolution. I'll continue to use Jack's fix for now, but if there is something I missed I'd love to use the automated process in the future.

Re: Nioh No 21:9 support (Fix request)

Posted: 16 Nov 2017, 01:53
by DaemonXHUN
Is there a way to fix the HUD position?

Re: Nioh No 21:9 support (Fix request)

Posted: 17 Nov 2017, 18:18
by HWGuy
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.

Re: Nioh No 21:9 support (Fix request)

Posted: 17 Nov 2017, 23:16
by LennardF1989
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.

I just released v1.1.0 which incorporates the fixes provided by @Jackufuste :) With 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

Re: Nioh No 21:9 support (Fix request)

Posted: 20 Nov 2017, 08:58
by shrgnatlas
LennardF1989 wrote:I just released v1.1.0 which incorporates the fixes provided by @Jackufuste :) With 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


Well, there we go folks! It works flawlessly and the supersampling is an absolute godsend since this game has no native support for anti-aliasing. You and @Jackufuste should both be commended for your efforts, though it's a shame the game seems like it'll never receive the "proper" support it needs, considering the movies are all stretched to 21:9 (when they are encoded at 16:9) and some UI elements aren't shifted or stretched appropriately. This is common for nearly every game like it so I'm not one to complain, but I may want to track down something like this for Nioh:

https://steamcommunity.com/sharedfiles/ ... =890543121

Has anyone seen an easy way to complete the process? Honestly, if I can't find one it should be pretty easy to do, considering every video in the game is its own individual .wmv file (inside ..\Steam\steamapps\common\Nioh\movie).

Re: Nioh No 21:9 support (Fix request)

Posted: 30 Nov 2017, 11:25
by niceee
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?

Re: Nioh No 21:9 support (Fix request)

Posted: 30 Nov 2017, 15:32
by wsgf_fan
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

Re: Nioh No 21:9 support (Fix request)

Posted: 30 Nov 2017, 15:37
by jackfuste
Update for v1.21.03

Nioh_v1_21_03.part001.rar
(5 MiB) Downloaded 2092 times

Nioh_v1_21_03.part002.rar
(5 MiB) Downloaded 1759 times

Nioh_v1_21_03.part003.rar
(4.84 MiB) Downloaded 1731 times

Re: Nioh No 21:9 support (Fix request)

Posted: 01 Dec 2017, 05:11
by niceee
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

I dont get it how it works :)
jackfuste wrote:Update for v1.21.03

Nioh_v1_21_03.part001.rar

Nioh_v1_21_03.part002.rar

Nioh_v1_21_03.part003.rar

Thx a lot you are the best :rockout:

Re: Nioh No 21:9 support (Fix request)

Posted: 01 Dec 2017, 19:53
by LiquidSam
jackfuste wrote:Update for v1.21.03

Nioh_v1_21_03.part001.rar

Nioh_v1_21_03.part002.rar

Nioh_v1_21_03.part003.rar

It seems that files are corrupt, could be?

Re: Nioh No 21:9 support (Fix request)

Posted: 01 Dec 2017, 20:04
by jackfuste
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

Re: Nioh No 21:9 support (Fix request)

Posted: 02 Dec 2017, 19:40
by mistershan
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


Thank you for the fix! Is there a way to also adjust the interface for 21:9? The interface seems to be set to 16:9. I don't remember but I thought last time it fit the full screen. Thanks again.

Re: Nioh No 21:9 support (Fix request)

Posted: 05 Dec 2017, 10:04
by LiquidSam
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

It was my fault. Winrar version. Thx! u rock!
:rockout:

Re: Nioh No 21:9 support (Fix request)

Posted: 05 Dec 2017, 23:03
by Hitsui
New Update just hit steam.

Still using the fix for 1.21.03. Working fine.

Re: Nioh No 21:9 support (Fix request)

Posted: 06 Dec 2017, 11:37
by jackfuste
Update for v1.21.04

Nioh_v1_21_04.part001.rar
(5 MiB) Downloaded 3127 times

Nioh_v1_21_04.part002.rar
(5 MiB) Downloaded 2550 times

Nioh_v1_21_04.part003.rar
(4.9 MiB) Downloaded 2896 times