Skip to content

Commit

Permalink
Fixes for shadow errors, ultrawide and FPS problems
Browse files Browse the repository at this point in the history
  • Loading branch information
AmbiguousInteractive committed Jun 21, 2024
1 parent b1f45c4 commit a61ea19
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions EldenRingFPSUnlockAndMore/GameData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ internal class GameData
00007FF6AEA0EF5F (Version 1.2.0.0)
*/
internal const string PATTERN_FRAMELOCK = "C7 ?? ?? 89 88 3C EB"; // first byte can can be 88/90 instead of 89 due to precision loss on floating point numbers
internal const string PATTERN_FRAMELOCK = "C7 43 1C 89 88 3C EB"; // first byte can can be 88/90 instead of 89 due to precision loss on floating point numbers
internal const int PATTERN_FRAMELOCK_OFFSET = 3; // offset to byte array from found position
internal const string PATTERN_FRAMELOCK_FUZZY = "89 73 ?? C7 ?? ?? ?? ?? ?? ?? EB ?? 89 73";
internal const int PATTERN_FRAMELOCK_OFFSET_FUZZY = 6;
Expand All @@ -39,10 +39,11 @@ HARDCODED limit to 60 Hz monitor refresh rate on every resolution change. FromSo
00007FF7A30CAB27 (Version 1.2.0.0)
*/
//"eb .. c7 .. .. 3c 00 00 00 c7 .. .. 01 00 00 00
internal const string PATTERN_HERTZLOCK = "EB ?? C7 ?? ?? 3C 00 00 00 C7 ?? ?? 01 00 00 00";
internal const int PATTERN_HERTZLOCK_OFFSET = 2;
internal const int PATTERN_HERTZLOCK_OFFSET_INTEGER1 = 3;
internal const int PATTERN_HERTZLOCK_OFFSET_INTEGER2 = 10;
internal const int PATTERN_HERTZLOCK_OFFSET = 5;// 2
internal const int PATTERN_HERTZLOCK_OFFSET_INTEGER1 = 0; //3
internal const int PATTERN_HERTZLOCK_OFFSET_INTEGER2 = 0; // 10
internal const int PATCH_HERTZLOCK_INSTRUCTION_LENGTH = 14;


Expand All @@ -66,8 +67,8 @@ DATA SECTION. All resolutions are listed in memory as <int>width1 <int>height1 <
00007FF7A30C8D80 | 74 39 | je eldenring.7FF7A30C8DBB |
00007FF7A30C8D82 | 41:8BD3 | mov edx,r11d |
*/
internal const string PATTERN_RESOLUTION_SCALING_FIX = "48 C7 45 B8 FE FF FF FF 48 89 58 10 48 89 70 18 48 89 78 20 0F 29 70 C8 48 8B";
internal const int PATTERN_RESOLUTION_SCALING_FIX_OFFSET = 148;
internal const string PATTERN_RESOLUTION_SCALING_FIX = "74 4F 45 8B 94 CC";
internal const int PATTERN_RESOLUTION_SCALING_FIX_OFFSET = 0;
internal static readonly byte[] PATCH_RESOLUTION_SCALING_FIX_ENABLE = new byte[] { 0xEB }; // jmp
internal static readonly byte[] PATCH_RESOLUTION_SCALING_FIX_DISABLE = new byte[] { 0x74 }; // je

Expand Down

2 comments on commit a61ea19

@Mogoat-sudo
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, I just want to ask how I can use that code? Because The Fps unlocker was an application and this is a code?

@Ginta420
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to download the zip folder, extract it, open the ".sln" file in Visual Studio, delete "icon.co", set it to release x64 and and at the top select "Build Solution". The .exe file will be located in "EldenRingFpsUnlockAndMore-main\EldenRingFPSUnlockAndMore\bin\x64\Release". But I would recommend you get flawlesswidescreen, it also has an option to uncap your fps.

Please sign in to comment.