Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patches: Various additions and improvements #221

Merged
merged 4 commits into from
Oct 21, 2023
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 2 additions & 12 deletions patches/SLES-50326_52E0597D.pnach
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,5 @@ gametitle=Max Payne [PAL-M4] (SLES_503.26)

[Widescreen 16:9]
gsaspectratio=16:9
comment=Widescreen Hack by El_Patas

//Gameplay 16:9
//ELF file is called "MAIN_P.RUN"
patch=1,EE,0050eae0,word,3c013f40 //00000000 (Increases hor. axis)
patch=1,EE,0050eae8,word,4481f000 //00000000
patch=1,EE,0050eaec,word,0c04821c //00000000
patch=1,EE,0050eaf0,word,00000000 //0c04821c
patch=1,EE,0050eaf4,word,461e0003 //00000000
patch=1,EE,0050eb04,word,461e0082 //c68201f8


author=El_Patas
comment=Widescreen Hack
Copy link
Member

Choose a reason for hiding this comment

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

Where did the patch go?

Copy link
Contributor Author

@CRASHARKI CRASHARKI Oct 17, 2023

Choose a reason for hiding this comment

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

It's one of those situations where the main ELF isn't the one to apply the patch to, but it's required for the game to show the patches and be able to activate them. It is better explained here: PCSX2/pcsx2#9243 (comment)
More specific:

I see the point about it being an edge case with a loader ELF - in this case, I'd suggest duplicating the pnach file for both CRCs, but leaving the codes empty for the loader.

We will not be restoring the old behaviour. It was broken from the beginning, and caused crashes/broken games when patches were applying to the wrong ELF.

I've tested it and this way it shows the patches on the game settings and applies the chosen patches on the right ELFs.

Copy link
Member

Choose a reason for hiding this comment

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

oh one of those... well that's kind of annoying. Alright, maybe put a comment in the patch file mentioning the filename of the one it's enabling, and why that one is there, same for the other one.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

15 changes: 15 additions & 0 deletions patches/SLES-50326_C669B63C.pnach
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
gametitle=Max Payne [PAL-M4] (SLES_503.26)

[Widescreen 16:9]
gsaspectratio=16:9
author=El_Patas
comment=Widescreen Hack

//Gameplay 16:9
//ELF file is called "MAIN_P.RUN"
patch=1,EE,0050eae0,word,3c013f40 //00000000 (Increases hor. axis)
patch=1,EE,0050eae8,word,4481f000 //00000000
patch=1,EE,0050eaec,word,0c04821c //00000000
patch=1,EE,0050eaf0,word,00000000 //0c04821c
patch=1,EE,0050eaf4,word,461e0003 //00000000
patch=1,EE,0050eb04,word,461e0082 //c68201f8
8 changes: 8 additions & 0 deletions patches/SLES-52382_4CF48A70.pnach
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
gametitle=Shrek 2 (Spain) (SLES_523.82)
//Main CRC 4CF48A70
//SHREK2.ELF CRC 76C01D41

[Widescreen 16:9]
gsaspectratio=16:9
author=CRASHARKI
comment=Patches the game to run at 16:9 Widescreen Aspect Ratio. (Original NTSC-U pnach by Arapapa)
14 changes: 14 additions & 0 deletions patches/SLES-52382_76C01D41.pnach
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
gametitle=Shrek 2 (Spain) (SLES_523.82)
//Main CRC 4CF48A70
//SHREK2.ELF CRC 76C01D41

[Widescreen 16:9]
gsaspectratio=16:9
author=CRASHARKI
comment=Patches the game to run at 16:9 Widescreen Aspect Ratio. (Original NTSC-U pnach by Arapapa)

//Wide 16:9 (EA4ED1BC 00000000 7FAAAA3F 00000000)
patch=1,EE,20379A30,word,3F800000 // 3FAAAA7F

//00 00 80 3F 00 00 80 3F 00 00 00 00
patch=1,EE,20367674,extended,3f400000 //3f800000 HUD fix
7 changes: 7 additions & 0 deletions patches/SLES-54904_4C7BB3C8.pnach
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
gametitle=Simpsons Game, The (PAL-M4) SLES-54904 4C7BB3C8

[50 FPS]
author=CRASHARKI
comment=Unlocked at 50 FPS. Set EE Cycle Skipping to Mild Underclock to prevent framedrops and 130% EE Overclock to be stable.
patch=1,EE,00215954,word,00000000 //1440FFFA
patch=1,EE,003603B4,word,00000000 //1040FFF8
7 changes: 7 additions & 0 deletions patches/SLES-54905_5C1EBF61.pnach
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
gametitle=Simpsons Game, The (PAL-F) SLES-54905 5C1EBF61

[50 FPS]
author=CRASHARKI
comment=Unlocked at 50 FPS. Set EE Cycle Skipping to Mild Underclock to prevent framedrops and 130% EE Overclock to be stable.
patch=1,EE,00215904,word,00000000 //1440FFFA
patch=1,EE,0036033C,word,00000000 //1040FFF8
6 changes: 3 additions & 3 deletions patches/SLES-54906_565B7E04.pnach
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ gametitle=Simpsons Game, The (PAL-S-I) SLES-54906 565B7E04

[50 FPS]
author=PeterDelta
comment=Unlocked at 50 FPS. Might need enable EE Overclock to be stable.
patch=1,EE,003603AC,word,00000000 //1040FFF8
patch=1,EE,00215954,word,00000000 //1440FFFA
comment=Unlocked at 50 FPS. Set EE Cycle Skipping to Mild Underclock to prevent framedrops and 130% EE Overclock to be stable.
patch=1,EE,00215954,word,00000000 //1440FFFA
patch=1,EE,003603AC,word,00000000 //1040FFF8
7 changes: 7 additions & 0 deletions patches/SLES-55020_5C1EBD61.pnach
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
gametitle=Simpsons Game, The (PAL-G) SLES-55020 5C1EBD61

[50 FPS]
author=CRASHARKI
comment=Unlocked at 50 FPS. Set EE Cycle Skipping to Mild Underclock to prevent framedrops and 130% EE Overclock to be stable.
patch=1,EE,00215904,word,00000000 //1440FFFA
patch=1,EE,0036033C,word,00000000 //1040FFF8
15 changes: 15 additions & 0 deletions patches/SLUS-20230_513CA7D9.pnach
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
gametitle=Max Payne (NTSC-U)

[Widescreen 16:9]
gsaspectratio=16:9
author=ElHecht
comment=Widescreen Hack

// 16:9
// ELF file is called "MAIN.RUN"
patch=1,EE,0050e030,word,3c013f40 // 00000000 hor fov
patch=1,EE,0050e038,word,4481f000 // 00000000
patch=1,EE,0050e03c,word,0c04821c // 00000000
patch=1,EE,0050e040,word,00000000 // 0c04821c
patch=1,EE,0050e044,word,461e0003 // 00000000
patch=1,EE,0050e054,word,461e0082 // c68201f8
14 changes: 2 additions & 12 deletions patches/SLUS-20230_BEB4577E.pnach
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,5 @@ gametitle=Max Payne (NTSC-U)

[Widescreen 16:9]
gsaspectratio=16:9
comment=Widescreen hack by ElHecht

// 16:9
// ELF file is called "MAIN.RUN"
patch=1,EE,0050e030,word,3c013f40 // 00000000 hor fov
patch=1,EE,0050e038,word,4481f000 // 00000000
patch=1,EE,0050e03c,word,0c04821c // 00000000
patch=1,EE,0050e040,word,00000000 // 0c04821c
patch=1,EE,0050e044,word,461e0003 // 00000000
patch=1,EE,0050e054,word,461e0082 // c68201f8


author=ElHecht
comment=Widescreen Hack
Copy link
Member

Choose a reason for hiding this comment

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

Where did the patch go?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Same as the other one.

15 changes: 10 additions & 5 deletions patches/SLUS-20745_11D7EC66.pnach
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
gametitle=Shrek 2 (U) (SLUS_207.45)
//Main CRC 11D7EC66
//SHREK2.ELF CRC 9C41124B

[Widescreen 16:9]
gsaspectratio=16:9
comment=Widescreen hack by Arapapa
author=Arapapa
comment=Patches the game to run at 16:9 Widescreen Aspect Ratio.

//Wide 16:9 (EA4ED1BC 00000000 7FAAAA3F 00000000)
patch=1,EE,203792B0,word,3F800000 // 3FAAAA7F

//00 00 80 3F 00 00 80 3F 00 00 00 00 25 64 20 00
patch=1,EE,203604B4,extended,3f400000 //3f800000 HUD fix





[60 FPS]
author=asasega
comment=Patches the game to run at 60 FPS.
20 changes: 20 additions & 0 deletions patches/SLUS-20745_9C41124B.pnach
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
gametitle=Shrek 2 (U) (SLUS_207.45)
//Main CRC 11D7EC66
//SHREK2.ELF CRC 9C41124B

[Widescreen 16:9]
gsaspectratio=16:9
author=Arapapa
comment=Patches the game to run at 16:9 Widescreen Aspect Ratio.

//Wide 16:9 (EA4ED1BC 00000000 7FAAAA3F 00000000)
patch=1,EE,203792B0,word,3F800000 // 3FAAAA7F

//00 00 80 3F 00 00 80 3F 00 00 00 00 25 64 20 00
patch=1,EE,203604B4,extended,3f400000 //3f800000 HUD fix

[60 FPS]
author=asasega
comment=Patches the game to run at 60 FPS.
patch=1,EE,2014B6C8,word,24040001
patch=1,EE,202ADFA8,word,3C013F00
7 changes: 7 additions & 0 deletions patches/SLUS-21665_BBE4D862.pnach
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
gametitle=Simpsons Game, The (NTSC-U) SLUS-21665 BBE4D862

[60 FPS]
author=asasega
comment=Unlocked at 60 FPS. Set EE Cycle Skipping to Mild Underclock to prevent framedrops and 130% EE Overclock to be stable.
patch=1,EE,002158DC,word,00000000 //1440FFFA
patch=1,EE,0035FEA4,word,00000000 //1040FFF8