Devil May Cry 4 Special Edition

Devil May Cry 4 Special Edition

51 ratings
21:9 FOV/Resolution Fix (HEX)
By Bitvar
This guide goes into detail about concepts in finding both the Resolution and FOV in Devil May Cry 4: Special Edition to modify beyond what the game allows. These concepts can be applied to ANY game (be careful though, some games consider this grounds for cheating). I can confirm you will not suffer any adverse affects for modifying the resolution section but as always use this guide at your own risk.

This 21:9 resolution hack requires the game to be played in Fullscreen due to the asinine way the developers bound the resolution.

Enjoy!
   
Award
Favorite
Favorited
Unfavorite
Resolution Modification How-to (Step-by-Step)
  1. First you need Notepad++: https://notepad-plus-plus.org/repository/6.x/6.9.1/npp.6.9.1.Installer.exe
  2. Second once installed you need to go to Plugins > Plugin Manager > select HEX-Editor and install it
  3. Now navigate to your game files (Right click the game in steam > Properties > Local Files > Browse Local Files)
  4. In the top-level folder look for DevilMayCry4SpecialEdition.exe
  5. Right-click on DevilMayCry4SpecialEdition.exe > select Copy > Paste this file in the same window to create a backup
  6. Right-click on the DevilMayCry4SpecialEdition.exe > open in Notepad++ (or drag it into the notepad++ window)
  7. Click Plugins > HEX-Editor > View in HEX (if you fail later it is because you aren't in 8-bit mode, you can set this in the options for the plugin)
  8. This next step is for 3440x1440 (2560x1080 will be at the end)
  9. CTRL+F and click the Replace Tab
  10. Paste "39 8E E3 3F" in the Find field and "8E E3 18 40" Replace field (Don't click anything yet, and you obviously do not include the quotation marks)
  11. Click FIND to find the entry (make sure your cursor is at the top) and replace that entry.
  12. There should be only one entry to find (we can only modify the resolution of the in-game in-engine content, not the menus unfortunately)
  13. Now click Save and close Notepad++
  14. Launch the game
  15. Note how the game may appear to be Windowed at 2560x1440, press alt+enter to fullscreen
  16. Note that the menus are still stretched and look like s*%# (don't worry about this, I haven't found a way to modify the menus, but your in-game will be the right resolution)
  17. Enjoy true 21:9 gameplay with no black bars or stretching

Note: For 2560x1080 use "26 B4 17 40" as the new value instead.

Tip: This method can be applied to most games that do not officially support 21:9, but be weary of doing this hack on games with VAC or anti-cheat as it might trigger those systems.



Aspect Ratios in HEX
In anticipation of requests for odd/unusual aspect rations I have included a list of common ones below:

Common Name
Formatted Value
5:04
00 00 A0 3F
4:03
AB AA AA 3F
3:02
00 00 C0 3F
16:10
CD CC CC 3F
15:09
55 55 D5 3F
16:09
39 8E E3 3F
1.85:1
CD CC EC 3F
2.39:1
C3 F5 18 40
2.76:1
D7 A3 30 40
3x5:4
00 00 70 40
3x4:3
00 00 80 40
3x16:10
9A 99 99 40
3x15:9
00 00 A0 40
3x16:9
AB AA AA 40
21:9 (2560x1080)
26 B4 17 40
21:9 (3440x1440)
8E E3 18 40
FOV Overview (Concept to find FOV)
NOTE: This is just the concept for finding FOV and modifying it. I have no interest in troubleshooting this or determining what works and does not. Use this guide at your own risk. For understanding how to modify the below and what, refer to the other page in this guide.

FOV for games can be found in hex in one of the game's files (probably xgcore.dll like the resolution). Format will most likely be in IEEE 754 which is comprised of four hex pairs (just like resolution in this game and most games).
  • Example: An of 60.0 would be "42 70 00 00" in hex.
Typically this is formatted from right to left game files. So "42 70 00 00" becomes "00 00 70 42" in hex.

You can use a IEEE 754 calculator to get your fov value into hex (ex http://babbage.cs.qc.cuny.edu/IEEE-754.old/Decimal.html). Paste your fov in the decimal field and click the Rounded or Not Rounded button (either works) and look for the hex result under single precision field.
  • Example: Instead of hex in this format "ST UV WX YZ" it would be in this format "YZ WX UV ST"
49 Comments
MinteeMackerel Mar 20 @ 10:35am 
My exe doesn't have the 39 8E E3 3F values at all
Rude Gentleman Jan 14, 2024 @ 1:25am 
Seems like this no longer works in 2024.
Самурай Привет Jul 3, 2021 @ 7:43am 
Just checking if this guide is in date because my NP++ is counting 2 instances of 39 8E E3 3F existing
wason_home Nov 6, 2020 @ 8:56pm 
Hi I Want to Use 5760x1080 Can I Change Hex , What value and Which line ?
I Use Notepad++ 7.9
Silvoom Sep 10, 2020 @ 6:46pm 
Doing (exactly) as this guide instructed, it didn't work for me. The end result was the game video being "chopped in half" by the window, only showing what would be the upper-half of the screen while the lower 40-50% of the video is obscured; this happens in both the menus *and* in gameplay, making the game, well, unplayable. This also, for some reason, forces the game into fullscreen on occasion, regardless of if it's set to be that or windowed.
Nocel Crown Jun 17, 2020 @ 1:54pm 
I followed this guide, used HxD to find the correct hex value to change, made sure the in game resolution is ONLY set to 2560x1440, and then hit alt-enter to enter fullscreen. However, the game still displays a 16:9 view, even though it's obvious the ingame models are squished and wants to be displayed as 21:9. First off, I'm only changing the first 39 8E E3 3F hex, as my exe, like other people have said before, has two exact hex values that appear as that. What gives? And as @JacKV64 mentions, once you hit alt enter, the in game settings option should say no for fullscreen while mine says yes, even when I start the game in windowed mode and hit alt-enter. I've tried this multiple times, and made sure my AMD graphic options doesn't have scaling enabled.
Eilanyan Mar 20, 2020 @ 9:20pm 
I don't get black bars, I get "squished" 16:9, as though it was made to be stretched to 21:9 but wasn't.
Sourdough35 Mar 7, 2020 @ 3:06pm 
I think it was something in my NVIDIA scaling settings. I tweaked those a bit and it works perfectly now.
Sourdough35 Mar 7, 2020 @ 2:10pm 
I must be stupid but I've tried this maybe 50 times and it never works.
Sourdough35 Mar 6, 2020 @ 4:56pm 
@Bit - Thanks for the direct reply! I don't think I'm skipping those steps, but I do think I must be misreading something here because when I hit alt+enter it just goes into fullscreen at what appears to be 2560x1440 but with a 21:9 aspect ratio that causes the smushing. To be clear, this happens even if I don't touch the config.ini file or ever go into the in-game options menu. Literally just changing the values, running the game, seeing it start in a windowed mode, and then hitting alt+enter. Also, depending on which of the 39 8E E3 3F I change (because seriously, my .exe has two of them!) I might not even get a windowed mode with the black bars and the game will start completely in 2560x1440 with the only difference being the 21:9 aspect ratio. I did check JackV16s comment... have kind of pored over the entire comment thread at this point. Totally stumped on what I'm missing.