Page 10 of 16
Re: Resident Evil 7 No 21:9 support
Posted: 07 Feb 2017, 21:00
by zens
RESIDENTEVIL7(RE7.EXE) WIDESCREEN BLACKBARS ASPECTRATIO FIX
Hexadezimal comparing based on 43:18 :(Original vs. Fixed steam version 08/02/2017)
Hex Solution Exempals:4:3 (640×480,800×600,960×720,1024×768,1152×864,1280×960,1400×1050,1600×1200,,1920×1440,2048×1536,2800×2100,3200×2400,4096×3072,6400×4800 || EVGA,XGA,SXVGA,QVGA,SXGA+,UXGA,SUXGA,QXGA,QSXGA+,QUXGA,HSVGA,HXGA,HUXGA)
5:4 (1280×1024, 2560×2048, 5120×4096 || SXGA,QSXGA,HSXGA)
8:5 (320×200, 1280×800, 1440×900, 1680×1050,1920×1200, 2560×1600, 3840×2400, 5120×3200, 7680×4800 || CGA,WXGA,WXGA+,WSXGA+,WUXGA,WQXGA,QWUXGA,WQUXGA,WHXGA,WHUXGA)
16:3 (5760x1080 || THD)
16:10 (1920×1200 || WUXGA)
21:9 (2560×1080, 3440×1440, 3840×1600 || UW-UXGA,QHD (1440p),QHD+ (1600p) UW4k)
RE7.exe(latest steam version at that time (08.02.2017))-
21:9 || re7_21-9_fix.rar:
https://goo.gl/qTHORO Scales perfectly to 21(21.5):9. Fullscreen ,Window mode and Borderless Window working correctly.
USE AT OWN RISK - DON`T FORGET TO BACKUP YOUR ORIGNAL FILES ALLWAYS - ALL RIGHTS BELONG TO "CAPCOM™" 
(Screenshot based on FULLSCREEN, Res.: 3440x1440@60Hz, FOV: 90, Aspect Ratio: 21.5:9)
NewThread:http://www.wsgf.org/forums/viewtopic.php?f=62&t=31914 Links:- Aspect Ratio Calculator:
http://andrew.hedges.name/experiments/aspect_ratio/- Floating Point Converter:
https://gregstoll.dyndns.org/~gregstoll/floattohex/- Hexeditor:
https://mh-nexus.de/de/hxd/Youtube:"aaeroshiva" (german):
https://www.youtube.com/watch?v=abw0sNEdHUk"gamer taboo":
https://www.youtube.com/watch?v=yfawSFPuWwo"WideAsFcuk":
https://www.youtube.com/watch?v=GFKB2O_mVOQPayPal Donation:http://goo.gl/K70q7JGreetings
zens
Re: Resident Evil 7 No 21:9 support
Posted: 07 Feb 2017, 21:53
by Landau
@zens
16:10 1920x1200 perfect, thanks
Re: Resident Evil 7 No 21:9 support
Posted: 07 Feb 2017, 21:56
by zens
Nice, good to know, enjoy Landau!
Did a single thread now, hope its ok for the mods.
http://www.wsgf.org/forums/viewtopic.php?f=62&t=31914
Re: Resident Evil 7 No 21:9 support
Posted: 08 Feb 2017, 20:46
by bacardi
Can anyone playing with a 3440x1440 resolution please show me how the re7.exe should look like?
This is how my re7.exe looks like after the changes described in zens post but this does not work for me
(game is still 16:9 and stretched even after alt+enter):
https://imgur.com/a/xzGyw.
Re: Resident Evil 7 No 21:9 support
Posted: 08 Feb 2017, 21:49
by zens
-double post see above
Re: Resident Evil 7 No 21:9 support
Posted: 09 Feb 2017, 12:32
by bacardi
Thanks zens but sadly the the 21:9 (3440x1440) does not work for me. With standard re7.exe and with your re7.exe:
https://imgur.com/a/JJWH2I've tried fullscreen, windowed and borderless but all of them are zoomed-in and/or stretched.
I have a GTX 1080 with the newest driver, a Acer x34 monitor (3440x1440) and the latest RE7 update from steam.
Re: Resident Evil 7 No 21:9 support
Posted: 09 Feb 2017, 12:46
by zens
Thats weird, but the second picture looks correct to me, just set fov to 90 (it should directly zoom out).
Use the 43:18 for 21:9 solution, it may help to setup the nativ monitor resolution before apply the fix,
maybe delete the old configuration (re7_config.ini in the game directory) before applying the fix.
Re: Resident Evil 7 No 21:9 support
Posted: 09 Feb 2017, 12:58
by bacardi
I've alrealdy done that multiple times. I even restarted steam after I replaced the re7.exe or started a new game and so on...
It seems that the fix does not work for my hardware/monitor setup.
Re: Resident Evil 7 No 21:9 support
Posted: 09 Feb 2017, 13:04
by zens
Then im running out of ideas.
Check the re7_config.ini:
[RenderConfig]
...
Fov=40
FullScreenDisplayMode=41
FullScreenMode=true
WindowMode=FullScreen
...
No clue what FullScreenDisplayMode=41 means, but thats how mine looks at all.
Re: Resident Evil 7 No 21:9 support
Posted: 10 Feb 2017, 09:20
by Guest
Can some please kindly post a fix for the 21:9 retail/CPY version of the game ? The version I have stretches and zooms the game in 21:9 mode. Thanking you.
Re: Resident Evil 7 No 21:9 support
Posted: 10 Feb 2017, 20:19
by zens
babebunny wrote:Can some please kindly post a fix for the 21:9 retail/CPY version of the game ? The version I have stretches and zooms the game in 21:9 mode. Thanking you.
There is only steam and windows store version as "retail" available. You should not ask for support, to a pirated version of the game.
Re: Resident Evil 7 No 21:9 support
Posted: 11 Feb 2017, 04:29
by Funkengreuven
The 21:9 downloadable fix doesn't seem to work correctly. When the screen is stretched you're zoomed out the right amount. If you hit Alt-enter the stretching is gone, but then you're zoomed in way too far. It's like it's not working right or it's backward. Also, your "spoiler" view for the 48:9 5760x1080 triple-wide fix shows you changing the x value to the following:
Fix the ratio (horizontal X):
16.00000(float) 41800000(hex aligned) "00 00 80 41"(binary) to 48.00000(float) 42400000(hex aligned) "00 00 40 42"(binary)
At what line in the file is this value found? There are multiple instances of this value in the .exe. The reason I ask is I play at 5892x1080 resolution which has an aspect ratio of 5.44445 or "E8 93 AE 40" hex aligned. I could edit my own .exe file, but I don't know where in the file to find this "X" value you're changing.
Also, in your spoiler view you say you make the following change in the "fixed" .exe file you can download:
"39 8E E3 3F"(binary) to 5.333333(float) 40AAAAAB(hex aligned) "AB AA AA 40"
However, when i search the file I downloaded that value is not found in the .exe file??? Searched forward & backward... Shouldn't they match? I'm just trying to draw parallels so i can edit it for 5892x1080 myself. Please advise. Thanks for your assistance!
Re: Resident Evil 7 No 21:9 support
Posted: 11 Feb 2017, 04:50
by zens
I know stupid question, but did u tryed my uploaded file for 48:9 ? The FOV for this game is bounded to the horizontal line, so a diffrent in that ratio value plus in the diagonal value can make the screen look ugly.
Try (steam version)
re7_ 5892x1080.rar:
https://dropfile.to/fjNSGaM.
Also it may help u to hex compare the original .exe with my patched .exe to find those values.
http://www.flexhex.com/docs/howtos/file-comparison.phtmlMaybe u didnt saw that picture, wich helps u to find the vals.

They are all in one row. So a hexadecimal search pattern, looks like:
"398EE33F000010410000204100008041"
Re: Resident Evil 7 No 21:9 support
Posted: 11 Feb 2017, 05:06
by Funkengreuven
zens wrote:I know stupid question, but did u tryed my uploaded file for 48:9 ? The FOV for this game is bounded to the horizontal line, so a different in that ratio value plus in the diagonal value can make the screen look ugly.
Try r
e7_ 5892x1080.rar:
https://dropfile.to/fjNSGaM
Yes, that was the file I tried. i also figured out in the post where the X & Y values are that you were changing...kinda easy once you see them in a row in the one picture in an earlier post. I edited a fresh .exe with my aspect ratio. Instead of 5.3, it's 5.44445 for 5892x1080 or E8 93 AE 40 (corrected or back-to-front). I used this same value to fix the movies in Witcher 3 at my resolution and it works perfectly. I then used your values to edit the X value like you did in the 48:9 example. It ran fine, but it has the same issue; when you go to full-screen mode it's still zoomed in real bad & if you ALT-enter you get the right zoom, but then everything is stretched. I'll try this latest file & thanks very much for sending it. I'll let you know ASAP how it works.
Thanks!
Re: Resident Evil 7 No 21:9 support
Posted: 11 Feb 2017, 05:10
by zens
Also u can try to use the 16:3 solution. Both @fov90 should give a playable result in window or fullscreen. Sadly i cant setup that resolution to debug. So its abit guessing what may cause the problem.
re7_16-3_zens.rar:
https://goo.gl/oo45mu
Re: Resident Evil 7 No 21:9 support
Posted: 11 Feb 2017, 05:30
by Funkengreuven
I tried the new file and it was almost identical to what I had on the one I edited. Same issue unfortunately; even though the graphics fills the three screens it's not zooming out far enough so that you get the right proportions like you do in a game that supports 21:9 natively. If you could somehow figure out how to adjust the game while it's in borderless, then that would work. When in borderless it's zoomed out the right amount, but it's stretched. Thanks a lot for your help!
Re: Resident Evil 7 No 21:9 support
Posted: 11 Feb 2017, 05:33
by zens
Just to correct, u dont have a 21:9 setup. The problem for a tripple screen setup is still u "increase" just the horizontal resolution, but not the vertical. physically with a fov bound ur up and down is "cut". In math it means: (16x3):9 = 48:9 = 16:3 . So horizontal fov of 90 means 90° degree to the most outside point of the horizontal line in that case "5870". So on the other hand the vertical line has to be locked to the horizontal. So with that values plus a Z axe u have the camera point in the 3D room.
...U could try to use a higher values too like 48:10 = 4.8 or even better 49:9
Re: Resident Evil 7 No 21:9 support
Posted: 11 Feb 2017, 07:08
by HaYDeN
It's a design choice by Capcom - they constrain to 16:9, what actually happens without any modifications is the engine will run at 5760x3240 instead of 5760x1080 to maintain the 16:9 ratio.
All that changing the 9 to 3 (or whatever you need to change it to) does is stop the engine from compensating which ultimately screws up everything including performance.
A more reliable approach is to simply NOP/JMP this code out.
Re: Resident Evil 7 No 21:9 support
Posted: 11 Feb 2017, 07:38
by zens
Ya, did not test more in that direction, 21:9 worked quit fine.
Also dont think Denovu will like patching the function. May corrupt the SFX or later CRC checks on the memory.
The code contains jump cases for 16:9 and 16:10 with the diagonal floating point as "constant", wich is a general fault.
So changing vertical cases and the diagonal to the result of the ratio should work for any ratio/resolution.
Did u allready found a solution?
...well tested alot now and its quit bugged for the window modes, depending on the hor:ver. and increasing the ratio really does not matter just eats performance, so i use now 21.5 : 9 and 2.38888889 wich removes the bars completly and it does not looked streched/zoomed atleast for 2560x1080 and 3440×1440.
Diagonal Floating Point Value(removes/openes the black bars):
1.777778(float) 3FE38E39(hex aligned) "39 8E E3 3F"(binary) to 2.3888889(float) 40155555(hex aligned) "55 55 15 40"(binary)
Fix the ratio (horizontal X):
16.00000(float) 41800000(hex aligned) "00 00 80 41"(binary) to 21.00000(float) 41A80000(hex aligned) "00 00 A8 41"(binary)
Fix the ratio (vertical Y) a:
nothing todo here
Fix the ratio (vertical Y) b:
10.00000(float) 41200000(hex aligned) "00 00 20 41"(binary) to 9.0000(float) 41100000(hex aligned) "00 00 10 41"(binary)
and thats how the game should look in 16:3 || 48:9

using:
Diagonal Floating Point Value(removes/openes the black bars):
1.777778(float) 3FE38E39(hex aligned) "39 8E E3 3F"(binary) to 5.300000(float) 40A9999A(hex aligned) "9A 99 A9 40"(binary)
Fix the ratio (horizontal X):
nothing todo here
Fix the ratio (vertical Y) a:
9.00000(float) 41100000(hex aligned) "00 00 10 41"(binary) to 3.00000(float) 40400000(hex aligned) "00 00 40 40"(binary)
Fix the ratio (vertical Y) b:
10.00000(float) 41200000(hex aligned) "00 00 20 41"(binary) to 3.00000(float) 40400000(hex aligned) "00 00 40 40"(binary)
Re: Resident Evil 7 No 21:9 support
Posted: 11 Feb 2017, 11:51
by Guest
Can somepose post correct 21:9 hex edit download file where no stretching/zooming for retail version of RE7. Muchly oblized.