From 3540909821bea9a8c719e7266e783c2f5abd2a53 Mon Sep 17 00:00:00 2001 From: getdls Date: Sun, 3 Jun 2018 03:16:38 +0200 Subject: [PATCH] [XCX] CemuHook Patches , 21:9 Gui, Wide FOV, No offline tag, 60 fps static All patches ported to EU, US, JPN Full changelog https://github.com/slashiee/cemu_graphic_packs/issues/214 --- Modifications/XenobladeX_21_9_gui/patches.txt | 27 ++++ Modifications/XenobladeX_21_9_gui/rules.txt | 4 + .../XenobladeX_FOVSetting/patches.txt | 11 ++ Modifications/XenobladeX_FOVSetting/rules.txt | 4 + .../XenobladeX_NoOfflineTag/patches.txt | 11 ++ .../XenobladeX_NoOfflineTag/rules.txt | 4 + .../XenobladeX_Static60fps/patches.txt | 120 ++++++++++++++++++ .../XenobladeX_Static60fps/rules.txt | 6 + 8 files changed, 187 insertions(+) create mode 100644 Modifications/XenobladeX_21_9_gui/patches.txt create mode 100644 Modifications/XenobladeX_21_9_gui/rules.txt create mode 100644 Modifications/XenobladeX_FOVSetting/patches.txt create mode 100644 Modifications/XenobladeX_FOVSetting/rules.txt create mode 100644 Modifications/XenobladeX_NoOfflineTag/patches.txt create mode 100644 Modifications/XenobladeX_NoOfflineTag/rules.txt create mode 100644 Modifications/XenobladeX_Static60fps/patches.txt create mode 100644 Modifications/XenobladeX_Static60fps/rules.txt diff --git a/Modifications/XenobladeX_21_9_gui/patches.txt b/Modifications/XenobladeX_21_9_gui/patches.txt new file mode 100644 index 00000000..8d72926a --- /dev/null +++ b/Modifications/XenobladeX_21_9_gui/patches.txt @@ -0,0 +1,27 @@ +[XCX219GUIV102J] +moduleMatches = 0x7672271D +0x10185C7C = .float 0.75345999 +_34th = 0x1018607C + +0x02D3BC74 = lis r7, _34th@h # Aspect +0x02D3BC80 = lfs f29, _34th@l(r7) # Aspect + + +[XCX219GUIV100E_V101E] +moduleMatches = 0x218F6E07, 0xF882D5CF +0x1018607C = .float 0.75345999 +_34th = 0x1018607C + +0x02D407AC = lis r7, _34th@h # Aspect +0x02D407B8 = lfs f29, _34th@l(r7) # Aspect + + +[XCX219GUIV102U] +moduleMatches = 0x30B6E091 +0x1018607C = .float 0.75345999 +_34th = 0x1018607C + +#0x02D3EB74 = lis r12, _34th@h # Transparency +#0x02D3EB7C = lfs f0, _34th@l(r12) # Transparency +0x02D4074C = lis r7, _34th@h # Aspect +0x02D40758 = lfs f29, _34th@l(r7) # Aspect \ No newline at end of file diff --git a/Modifications/XenobladeX_21_9_gui/rules.txt b/Modifications/XenobladeX_21_9_gui/rules.txt new file mode 100644 index 00000000..4a4c9df0 --- /dev/null +++ b/Modifications/XenobladeX_21_9_gui/rules.txt @@ -0,0 +1,4 @@ +[Definition] +titleIds = 0005000010116100,00050000101C4C00,00050000101C4D00 +name = "Xenoblade Chronicles X 21:9 GUI patch" +version = 2 \ No newline at end of file diff --git a/Modifications/XenobladeX_FOVSetting/patches.txt b/Modifications/XenobladeX_FOVSetting/patches.txt new file mode 100644 index 00000000..f25c2ce4 --- /dev/null +++ b/Modifications/XenobladeX_FOVSetting/patches.txt @@ -0,0 +1,11 @@ +[XCXFOVV102J] +moduleMatches = 0x7672271D +0x1019087C = .float 0.85 # 1.0 is default, 0.75 wider FOV + +[XCXFOVV100E_V101E] +moduleMatches = 0x218F6E07, 0xF882D5CF +0x10190C7C = .float 0.85 # 1.0 is default, 0.75 wider FOV + +[XCXFOVV102U] +moduleMatches = 0x30B6E091 +0x10190C7C = .float 0.85 # 1.0 is default, 0.75 wider FOV \ No newline at end of file diff --git a/Modifications/XenobladeX_FOVSetting/rules.txt b/Modifications/XenobladeX_FOVSetting/rules.txt new file mode 100644 index 00000000..6fc6ffa6 --- /dev/null +++ b/Modifications/XenobladeX_FOVSetting/rules.txt @@ -0,0 +1,4 @@ +[Definition] +titleIds = 0005000010116100,00050000101C4C00,00050000101C4D00 +name = "Xenoblade Chronicles X - Wider FOV" # change values in patches.txt +version = 2 \ No newline at end of file diff --git a/Modifications/XenobladeX_NoOfflineTag/patches.txt b/Modifications/XenobladeX_NoOfflineTag/patches.txt new file mode 100644 index 00000000..065fa2bc --- /dev/null +++ b/Modifications/XenobladeX_NoOfflineTag/patches.txt @@ -0,0 +1,11 @@ +[XCXNOFFV102J] +moduleMatches = 0x7672271D +0x100B0B28 = nop # frameIn + +[XCXNOFFV100E_V101E] +moduleMatches = 0x218F6E07, 0xF882D5CF +0x100B0B50 = nop # frameIn + +[XCXNOFFV102U] +moduleMatches = 0x30B6E091 +0x100B0B38 = nop # \ No newline at end of file diff --git a/Modifications/XenobladeX_NoOfflineTag/rules.txt b/Modifications/XenobladeX_NoOfflineTag/rules.txt new file mode 100644 index 00000000..af416b0f --- /dev/null +++ b/Modifications/XenobladeX_NoOfflineTag/rules.txt @@ -0,0 +1,4 @@ +[Definition] +titleIds = 0005000010116100,00050000101C4C00,00050000101C4D00 +name = "Xenoblade Chronicles X - Removes offline blinking" +version = 2 \ No newline at end of file diff --git a/Modifications/XenobladeX_Static60fps/patches.txt b/Modifications/XenobladeX_Static60fps/patches.txt new file mode 100644 index 00000000..146fab14 --- /dev/null +++ b/Modifications/XenobladeX_Static60fps/patches.txt @@ -0,0 +1,120 @@ +[XCX60fpsV102J] +moduleMatches = 0x7672271D +#Default as of 0.51 - Limit logic/2d animation to 30 fps Less timing issues, more jitter +0x100D0604 = .float 0.5 # .float 1.0 # GUI animations * +0x1005989C = .float 0.5 # .float 1.0 #Title screen cutscene - +0x10014528 = .float 0.05 # controller acceleration - +0x10171980 = .float 2.0 # arbitrary 2.0 float + +_halfRate = 0x10171980 +_fullRate = 0x100D0604 + +0x0273802C = lis r11, _halfRate@ha # Double updateEventParam cutscene +0x02738038 = lfs f1, _halfRate@l(r11) # - +0x027A1120 = lis r10, _fullRate@ha # half SyncFrame cinematic cutscene, fixes timing issues with cinematic cutscenes - +0x027A1124 = lfs f1, _fullRate@l(r10) # but introduces Shake and stutter issue. CODE XREF: ev::CEvtManager::startPage((float,bool))+6C j - + +#0x02707478 = lis r7, _tmp@ha # ALT calcAdxSkip__Q2_2ev13CFrameManagerFv +#0x0270747C = lfs f1, _tmp@l(r7) # calcAdxSkip__Q2_2ev13CFrameManagerFv +#0x02707660 = lis r9, _tmp@ha # calcCpuSkip__Q2_2ev13CFrameManagerFv # SLOW down +#0x02707668 = lfs f31, _tmp@l(r9) # calcCpuSkip__Q2_2ev13CFrameManagerFv + + +0x025F299C = lis r12, _fullRate@h ### Move__11CfSceneTaskFv #Filter CPU, 30 fps logic +0x025F29A4 = lfs f31, _fullRate@l(r12) ### Move__11CfSceneTaskFv # +0x0276A85C = lis r8, _fullRate@ha # sync in game cut scene +0x0276A860 = lfs f31, _fullRate@l(r8) # +0x0273E3CC = lis r7, _fullRate@ha # sync elevator, vehicles etc +0x0273E3D0 = lfs f31, _fullRate@l(r7) # Ç + +# swapInterval 60 +0x02FD3F5C= li r3, 1 + + +[XCX60fpsV100E_V101E] +moduleMatches = 0x218F6E07, 0xF882D5CF +#Default as of 0.51 - Limit logic/2d animation to 30 fps Less timing issues +0x100D03E8 = .float 0.5 # .float 1.0 # GUI animations * +0x100598E4 = .float 0.5 # .float 1.0 #Title screen cutscene - +0x10014528 = .float 0.05 # controller acceleration - +0x10171980 = .float 2.0 # arbitrary 2.0 float + +_halfRate = 0x10171980 +_fullRate = 0x100D03E8 +# +# +0x027398B4 = lis r11, _halfRate@ha # Double updateEventParam cutscene - +0x027398C0 = lfs f1, _halfRate@l(r11) # - +0x027A33D8 = lis r10, _fullRate@ha # half SyncFrame cinematic cutscene, fixes timing issues with cinematic cutscenes - +0x027A33DC = lfs f1, _fullRate@l(r10) # but introduces Shake and stutter issue. CODE XREF: ev::CEvtManager::startPage((float,bool))+6Cj - + +#0x02707478 = lis r7, _tmp@ha # ALT calcAdxSkip__Q2_2ev13CFrameManagerFv +#0x0270747C = lfs f1, _tmp@l(r7) # calcAdxSkip__Q2_2ev13CFrameManagerFv +#0x02707660 = lis r9, _tmp@ha # calcCpuSkip__Q2_2ev13CFrameManagerFv # SLOW down scene +#0x02707668 = lfs f31, _tmp@l(r9) # calcCpuSkip__Q2_2ev13CFrameManagerFv + + +0x025F299C = lis r12, _fullRate@h ### Move__11CfSceneTaskFv #Filter CPU, 30 fps logic +0x025F29A4 = lfs f31, _fullRate@l(r12) ### Move__11CfSceneTaskFv # +0x0276A85C = lis r8, _fullRate@ha # sync in game cut scene +0x0276A860 = lfs f31, _fullRate@l(r8) # +0x0273E3CC = lis r7, _fullRate@ha # sync elevator, vehicles etc +0x0273E3D0 = lfs f31, _fullRate@l(r7) # Ç + +# swapInterval 60 +0x02FD8A94 = li r3, 1 + +[XCX60fpsV102U] +moduleMatches = 0x30B6E091 + +#Default as of 0.51 - Limit logic/2d animation to 30 fps Less timing issues +0x100D03D0 = .float 0.5 # .float 1.0 # GUI animations +0x100598E4 = .float 0.5 # .float 1.0 #Title screen cutscene +0x10014528 = .float 0.05 # controller acceleration +0x10171980 = .float 2.0 # arbitrary 2.0 float +_halfRate = 0x10171980 +_fullRate = 0x100D03D0 + + +0x027398B4 = lis r11, _halfRate@ha # Double updateEventParam cutscene +0x027398C0 = lfs f1, _halfRate@l(r11) # +0x027A33D8 = lis r10, _fullRate@ha # half SyncFrame cinematic cutscene, fixes timing issues with cinematic cutscenes +0x027A33DC = lfs f1, _fullRate@l(r10) # but introduces Shake and stutter issue. +0x025F299C = lis r12, _fullRate@h ### Move__11CfSceneTaskFv #Filter CPU, 30 fps logic +0x025F29A4 = lfs f31, _fullRate@l(r12) ### Move__11CfSceneTaskFv # +0x0276A85C = lis r8, _fullRate@ha # sync in game cut scene +0x0276A860 = lfs f31, _fullRate@l(r8) # +0x0273E3CC = lis r7, _fullRate@ha # sync elevator, vehicles etc +0x0273E3D0 = lfs f31, _fullRate@l(r7) # Ç + + +#Disabled, original per feature approach, severe timing issues +#0x101231F0 = .float 0.5 # .float 1.0 # ingame animation timing +#0x100D03D0 = .float 0.5 # .float 1.0 # GUI animations +#0x100598E4 = .float 0.5 # .float 1.0 #Title screen cutscene +#0x1003C3A0 = .float 15.0 # .float 30.0 fight 3d animations +#0x1000F7A8 = .float 0.1 # RegistDamage_ButtonChallenge +#0x10014528 = .float 0.05 # controller acceleration +#0x100211D8 = .float 15.0 # .float 30.0 fade in +#0x10034804 = .float 15.0 # .float 30.0 bullets +#0x10035D84 = .float 15.0 # walk acceleration +#0x1003C3A0 = .float 15.0 # arts frame to sec +#0x10012368 = .float 45.0 # respawn +#0x10012644 = .float 15.0 # soulvoice +#0x1000C448 = .float 15.0 # init battle +#0x1000CB90 = .float 15.0 # init battle +#0x1003E538 = .float 0.33333335 #birds, falling leaves +#0x10171980 = .float 2.0 # arbitrary 2.0 float +#0x100955F0 = .float 60.0 # 30.0 Create avatar cam rotation + +# JFF +#0x101123B4 = .float 0.03333335 # .float 0.016666668 superfast (vsync) +#0x10035D7C = .float 0.25 # .float 1.0 fast run +#0x10035E00 = .float 2.0 # jump high.float 0.5 +#0x10190C7C = .float 0.75 # master FOV +#0x10012368 = .float 45.0 # seconds before respawn "cheat" + +# swapInterval 60 +0x02FD8A34 = li r3, 1 + +#SNESticleNGCVERIONPP71Copyright - Sardu you magnificent bastard, we salute you! diff --git a/Modifications/XenobladeX_Static60fps/rules.txt b/Modifications/XenobladeX_Static60fps/rules.txt new file mode 100644 index 00000000..de4786c9 --- /dev/null +++ b/Modifications/XenobladeX_Static60fps/rules.txt @@ -0,0 +1,6 @@ +[Definition] +titleIds = 0005000010116100,00050000101C4C00,00050000101C4D00 +name = "Xenoblade Chronicles X - 60fps" +version = 2 + +vsyncFrequency = 60 \ No newline at end of file