Resident Evil 7 No 21:9 support

Gaming on 21:9 and ultra-wide single screen monitors
zens
Posts: 100
Joined: 04 Mar 2015, 14:35

Re: Resident Evil 7 No 21:9 support

Post by zens »

RESIDENTEVIL7(RE7.EXE) WIDESCREEN BLACKBARS ASPECTRATIO FIX

Image

Hexadezimal comparing based on 43:18 :

(Original vs. Fixed steam version 08/02/2017)
Image

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)
Spoiler:
Diagonal Floating Point Value(removes/openes the black bars):
1.777778(float) 3FE38E39(hex aligned) "39 8E E3 3F"(binary) to 1.333333(float) 3FAAAAAB(hex aligned) "AB AA AA 3F"(binary)
Fix the ratio (horizontal X):
16.00000(float) 41800000(hex aligned) "00 00 80 41"(binary) to 4.00000(float) 40800000(hex aligned) "00 00 80 40"(binary)
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)


5:4 (1280×1024, 2560×2048, 5120×4096 || SXGA,QSXGA,HSXGA)
Spoiler:
Diagonal Floating Point Value(removes/openes the black bars):
1.777778(float) 3FE38E39(hex aligned) "39 8E E3 3F"(binary) to 1.250000(float) 3FA00000(hex aligned) "00 00 A0 3F"(binary)
Fix the ratio (horizontal X):
16.00000(float) 41800000(hex aligned) "00 00 80 41"(binary) to 5.00000(float) 40A00000(hex aligned) "00 00 A0 40"(binary)
Fix the ratio (vertical Y) a:
9.00000(float) 41100000(hex aligned) "00 00 10 41"(binary) to 4.00000(float) 40800000(hex aligned) "00 00 80 40"(binary)
Fix the ratio (vertical Y) b:
10.00000(float) 41200000(hex aligned) "00 00 20 41"(binary) to 4.00000(float) 40800000(hex aligned) "00 00 80 40"(binary)


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)
Spoiler:
Diagonal Floating Point Value(removes/openes the black bars):
1.777778(float) 3FE38E39(hex aligned) "39 8E E3 3F"(binary) to 1.600000(float) 3FCCCCCD(hex aligned) "CD CC CC 3F"(binary)
Fix the ratio (horizontal X):
16.00000(float) 41800000(hex aligned) "00 00 80 41"(binary) to 8.00000(float) 41000000(hex aligned) "00 00 00 41"(binary)
Fix the ratio (vertical Y) a:
9.00000(float) 41100000(hex aligned) "00 00 10 41"(binary) to 5.00000(float) 40A00000(hex aligned) "00 00 A0 40"(binary)
Fix the ratio (vertical Y) b:
10.00000(float) 41200000(hex aligned) "00 00 20 41"(binary) to 5.00000(float) 40A00000(hex aligned) "00 00 A0 40"(binary)


16:3 (5760x1080 || THD)
Spoiler:
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)


16:10 (1920×1200 || WUXGA)
Spoiler:
Diagonal Floating Point Value(removes/openes the black bars):
1.777778(float) 3FE38E39(hex aligned) "39 8E E3 3F"(binary) to 1.600000(float) 3FCCCCCD(hex aligned) "CD CC CC 3F"(binary)
Fix the ratio (horizontal X):
nothing todo here
Fix the ratio (vertical Y):
nothing todo here


21:9 (2560×1080, 3440×1440, 3840×1600 || UW-UXGA,QHD (1440p),QHD+ (1600p) UW4k)
Spoiler:
Diagonal Floating Point Value(removes/openes the black bars):
1.777778(float) 3FE38E39(hex aligned) "39 8E E3 3F"(binary) to 2.3333333(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):
nothing todo here


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™"

Image
(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_mVOQ

PayPal Donation:
http://goo.gl/K70q7J

Greetings
zens
Last edited by zens on 13 Feb 2017, 05:24, edited 56 times in total.
Landau
Posts: 8
Joined: 04 Jun 2013, 13:08

Re: Resident Evil 7 No 21:9 support

Post by Landau »

@zens
16:10 1920x1200 perfect, thanks
zens
Posts: 100
Joined: 04 Mar 2015, 14:35

Re: Resident Evil 7 No 21:9 support

Post 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
bacardi
Posts: 7
Joined: 05 Feb 2017, 11:34

Re: Resident Evil 7 No 21:9 support

Post 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.
zens
Posts: 100
Joined: 04 Mar 2015, 14:35

Re: Resident Evil 7 No 21:9 support

Post by zens »

-double post see above
bacardi
Posts: 7
Joined: 05 Feb 2017, 11:34

Re: Resident Evil 7 No 21:9 support

Post 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/JJWH2
I'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.
zens
Posts: 100
Joined: 04 Mar 2015, 14:35

Re: Resident Evil 7 No 21:9 support

Post 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.
bacardi
Posts: 7
Joined: 05 Feb 2017, 11:34

Re: Resident Evil 7 No 21:9 support

Post 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.
zens
Posts: 100
Joined: 04 Mar 2015, 14:35

Re: Resident Evil 7 No 21:9 support

Post 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.
Guest

Re: Resident Evil 7 No 21:9 support

Post 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.
zens
Posts: 100
Joined: 04 Mar 2015, 14:35

Re: Resident Evil 7 No 21:9 support

Post 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.
User avatar
Funkengreuven
I Donated
I Donated
Posts: 92
Joined: 30 May 2012, 03:56

Re: Resident Evil 7 No 21:9 support

Post 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!
| i7 3930K | 16GB Mushkin Redline 2133MHz | ASUS Rampage IV Formula | EVGA 2080ti SC ULTRA | EVGA Supernova 1200W PS | 2x Samsung EVO 500GB SSD RAID 0 | 2x IBM 520 SSD 240GB | Rosewill Blackhawk | 3x Acer Predator G-Sync 144MHz @ 7680x1440 |
zens
Posts: 100
Joined: 04 Mar 2015, 14:35

Re: Resident Evil 7 No 21:9 support

Post 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.phtml

Maybe u didnt saw that picture, wich helps u to find the vals.
Image

They are all in one row. So a hexadecimal search pattern, looks like:
"398EE33F000010410000204100008041"
Last edited by zens on 11 Feb 2017, 05:07, edited 1 time in total.
User avatar
Funkengreuven
I Donated
I Donated
Posts: 92
Joined: 30 May 2012, 03:56

Re: Resident Evil 7 No 21:9 support

Post 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 re7_ 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!
| i7 3930K | 16GB Mushkin Redline 2133MHz | ASUS Rampage IV Formula | EVGA 2080ti SC ULTRA | EVGA Supernova 1200W PS | 2x Samsung EVO 500GB SSD RAID 0 | 2x IBM 520 SSD 240GB | Rosewill Blackhawk | 3x Acer Predator G-Sync 144MHz @ 7680x1440 |
zens
Posts: 100
Joined: 04 Mar 2015, 14:35

Re: Resident Evil 7 No 21:9 support

Post 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
Last edited by zens on 11 Feb 2017, 05:31, edited 1 time in total.
User avatar
Funkengreuven
I Donated
I Donated
Posts: 92
Joined: 30 May 2012, 03:56

Re: Resident Evil 7 No 21:9 support

Post 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!
| i7 3930K | 16GB Mushkin Redline 2133MHz | ASUS Rampage IV Formula | EVGA 2080ti SC ULTRA | EVGA Supernova 1200W PS | 2x Samsung EVO 500GB SSD RAID 0 | 2x IBM 520 SSD 240GB | Rosewill Blackhawk | 3x Acer Predator G-Sync 144MHz @ 7680x1440 |
zens
Posts: 100
Joined: 04 Mar 2015, 14:35

Re: Resident Evil 7 No 21:9 support

Post 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
User avatar
HaYDeN
Insiders
Insiders
Posts: 761
Joined: 14 Feb 2010, 13:39

Re: Resident Evil 7 No 21:9 support

Post 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.
Resident Jester - Flawless Widescreen - Widescreen gaming the way it should be.
[Steam Profile]

Want to keep Flawless Widescreen alive? Donate Here
zens
Posts: 100
Joined: 04 Mar 2015, 14:35

Re: Resident Evil 7 No 21:9 support

Post 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
Image

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)
Guest

Re: Resident Evil 7 No 21:9 support

Post by Guest »

Can somepose post correct 21:9 hex edit download file where no stretching/zooming for retail version of RE7. Muchly oblized.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests