Skip to content

Commit

Permalink
Merge branch 'main' into patch-9
Browse files Browse the repository at this point in the history
  • Loading branch information
Ultranova7658 authored Nov 12, 2024
2 parents 5ade3db + c0d6018 commit c8d5017
Show file tree
Hide file tree
Showing 242 changed files with 2,480 additions and 549 deletions.
21 changes: 20 additions & 1 deletion .github/scripts/validate_patches.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,25 @@ def is_file_valid(file_path):
if re.match(",\d{8}(\n|\s*(//.*)*)+(?!.)", line):
log_error(file_path, line_number, "Invalid comment syntax at end of patch line.", line, False)
return False
elif cleaned_line.startswith("dpatch"):
match = re.match(r"^dpatch=(\d+),(\d+),(\d+)((?:,[\dA-Fa-f]+)+)", line)
if not match:
log_error(file_path, line_number, "Invalid dpatch format.", line, True)
return False
num_tuples = int(match.group(2)) + int(match.group(3))
dat_str = match.group(4).strip(',').split(',')
if len(dat_str) != num_tuples * 2:
log_error(file_path, line_number, "Invalid dpatch format.", line, True)
return False
for i in range(0, num_tuples, 2):
# Offsets must be hex
if not re.match(r'^[0-9A-Fa-f]+$', dat_str[i]) or not re.match(r'^[0-9A-Fa-f]+$', dat_str[i+1]):
log_error(file_path, line_number, "Invalid dpatch format.", line, True)
return False
# Offsets must be 4 byte aligned
if int(dat_str[i], 16) % 4 != 0:
log_error(file_path, line_number, "Invalid dpatch offset alignment (must be 4 byte aligned).", line, True)
return False
else:
log_error(file_path, line_number, "Unknown line format.", line, True)
return False
Expand Down Expand Up @@ -73,4 +92,4 @@ def main():
sys.exit(0)

if __name__ == '__main__':
main()
main()
4 changes: 2 additions & 2 deletions patches/PBPX-95503_8AA991B0.pnach
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ patch=1,EE,102112F0,extended,0000005A
patch=1,EE,20211014,extended,00000000

[Metric units]
description=Changes MPH to KMH, ft.lb to NM
description=Changes MPH to KMH, ft.lb to kgf.m
author=Silent

// Speed and distance units
Expand All @@ -43,4 +43,4 @@ patch=1,EE,202F59D8,extended,0
// 0 - kgf.m
// 1 - ft.lb
// 2 - NM
patch=1,EE,202F59E0,extended,2
patch=1,EE,202F59E0,extended,0
8 changes: 6 additions & 2 deletions patches/SCES-50361_9C712FF0.pnach
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
gametitle=Jak and Daxter - The Precursor Legacy (PAL-M6) (SCES-50361)
gametitle=Jak and Daxter - The Precursor Legacy (PAL-M6) (SCES-50361) 9C712FF0

[Widescreen 16:9]
gsaspectratio=16:9
author=ElHecht
comment=Widescreen Hack
description=Widescreen fix
// 16:9
patch=1,EE,202af8b0,extended,3f1f3b64 // 3f000000 zoom
patch=1,EE,202af85c,extended,bf1f3b64 // bf000000 hud fix for zoom
Expand All @@ -23,3 +23,7 @@ patch=1,EE,00702998,extended,000000E0
patch=1,EE,20110084,extended,30420000


[NTSC Mode]
author=PeterDelta
description=NTSC mode at start.
patch=1,EE,0079F724,word,001503E4 //0014939C
178 changes: 174 additions & 4 deletions patches/SCES-50760_5C991F4E.pnach
Original file line number Diff line number Diff line change
@@ -1,21 +1,191 @@
gametitle=ICO (SCES-50760)
gametitle=ICO * PAL-M5 * SCES-50760 * 5C991F4E

[Widescreen 16:9]
gsaspectratio=16:9
author=nemesis2000
comment=Widescreen Hack
//widescreen

// 16:9 widescreen
patch=1,EE,00114dd0,word,3c013f40
patch=1,EE,00114dd4,word,4481c000
patch=1,EE,00114de0,word,46181082

//render fix
// 16:9 Render fix
patch=1,EE,001146F4,word,240302ab
patch=1,EE,0054E478,word,44fa0000

[Widescreen 16:10]
gsaspectratio=Stretch
author=nemesis2000 & pgert
patch=1,EE,00114dd0,word,3c013f55
patch=1,EE,00114dd4,word,4481c000
patch=1,EE,00114de0,word,46181082
patch=1,EE,001146F4,word,240302ab
patch=1,EE,0054E478,word,44e10000

[Widescreen 15:10]
gsaspectratio=Stretch
author=nemesis2000 & pgert
patch=1,EE,00114dd0,word,3c013f64
patch=1,EE,00114dd4,word,4481c000
patch=1,EE,00114de0,word,46181082
patch=1,EE,001146F4,word,240302ab
patch=1,EE,0054E478,word,44d2f000

[Widescreen 20:9]
gsaspectratio=Stretch
author=nemesis2000, kripkrop, Devina & pgert
comment=Imperfections might show up.
patch=1,EE,00114dd0,word,3c013f1a
patch=1,EE,00114dd4,word,4481c000
patch=1,EE,00114de0,word,46181082
patch=1,EE,001146F4,word,24030aaa
patch=1,EE,0054E478,word,451c4000

[Widescreen 21:9]
gsaspectratio=Stretch
author=nemesis2000, kripkrop, Devina & pgert
comment=Imperfections might show up.
patch=1,EE,00114dd0,word,3c013f12
patch=1,EE,00114dd4,word,4481c000
patch=1,EE,00114de0,word,46181082
patch=1,EE,001146F4,word,24030aaa
patch=1,EE,0054E478,word,45241000

[Remove Blackbars]
author=nemesis2000
description=Removes black bars in cutscenes
patch=1,EE,00113450,word,3c010000

/////////////////////

[60 fps & No Interlacing]
author=Red_Tv
comment=Might need EE overclocking to be stable.

// 60 fps
patch=1,EE,0028F4C4,word,00000001

// Revert to 30 fps during Cutscenes
//patch=1,EE,e0010001,extended,0063AA08
//patch=1,EE,2028F4C4,extended,00000002

// No Interlacing (needed for 60 fps)
patch=1,EE,0013CAD0,word,30420000
patch=1,EE,001144AC,word,30420000

/////////////////////

[60 fps]
author=synce & Agrippa
// 60 fps hack by Agrippa based on the NTSC-U hack by synce
comment=Set EE Cyclerate to 130% - 180% in combination with this.
// - makes some animations run too fast
patch=1,EE,E0010000,extended,0063AA08
patch=1,EE,0028F4C4,extended,00000001

// Revert to 30 fps during Cutscenes
patch=1,EE,E0010001,extended,0063AA08
patch=1,EE,0028F4C4,extended,00000002

[No-Interlacing]
comment=Don't combine with the 60 fps hacks.
patch=1,EE,0013CAD0,word,30420000
patch=1,EE,001144AC,word,30420000

///////////////////

[Full height back buffer]
author=asasega & Agrippa

// Hacks by Agrippa based on the asasega patch for the NTSC version.
// A full height back buffer enabled, instead of a downsampled front buffer.
// Works with both PAL and NTSC modes.

// set the back buffer
patch=1,EE,2028F500,extended,00001040
patch=1,EE,2028F528,extended,00001040
// switch to the interlaced mode with FFMD set to 0. Progressive mode, applied by default,
// does add a black bar at the bottom in the NTSC mode when the back buffer is enabled
patch=1,EE,2028F4F8,extended,00000001
patch=1,EE,2028F520,extended,00000001

// check if the PAL mode is turned on to extend the display buffer from 256 to 512
patch=1,EE,E0024290,extended,0028F508
patch=1,EE,2028F50C,extended,001FF9FF
patch=1,EE,2028F534,extended,001FF9FF
// check if the NTSC mode is turned on to extend the display buffer from 224 to 448
patch=1,EE,E002927C,extended,0028F508
patch=1,EE,2028F50C,extended,001DF9FF
patch=1,EE,2028F534,extended,001DF9FF

///////////////////

[Debug Menu]
description=Press Select to open the Debug Menu.
// Enable 'Single Framestep' in the menu for 60fps.
patch=1,EE,20101F94,word,0C06C966
patch=1,EE,201AF850,word,0806BD28

[Maximum Graphics Booster]
description=No Blur-Effect and maxed out Game Sharpness.
patch=1,EE,001322f0,word,03e00008
patch=1,EE,001322f4,word,00000000
patch=1,EE,001fca60,word,03e00008
patch=1,EE,001fca64,word,00000000
patch=1,EE,001137f8,word,03e00008
patch=1,EE,001137fc,word,00000000
patch=1,EE,001136b0,word,03e00008
patch=1,EE,001136b4,word,00000000

[Disable Motion Blur]
patch=1,EE,001fca60,word,03e00008
patch=1,EE,001fca64,word,00000000

[Disable Post-Effects]
description=Disables Post-Effect like the bright reddish Sky.
patch=1,EE,0028F808,word,00000000

[No Blackborders]
patch=1,EE,001133F8,word,44800800
patch=1,EE,00113410,word,44800800
patch=1,EE,00113420,word,44800800
patch=1,EE,00113534,word,44800000

[No Shadow Effects]
patch=1,EE,0028F7CC,word,00000000
patch=1,EE,0028F7D0,word,00000000
patch=1,EE,0028F7D4,word,00000000
patch=1,EE,0028F7D8,word,00000000
patch=1,EE,0028F7DC,word,00000000
patch=1,EE,0028F7E0,word,00000000
patch=1,EE,0028F7E4,word,00000000
patch=1,EE,0028F7E8,word,00000000

[RGB Values]
description=RGB Values enhanced & fixed

// Characters RGB Values decently enhanced,
// disable extra Light on Boy and Objects
// and disable Boy-Dimming in dark Areas.
patch=1,EE,001170b4,word,24020000
patch=1,EE,00117000,word,24130000
patch=1,EE,00117010,word,24130000
patch=1,EE,001175f4,word,44806000
patch=1,EE,0028F780,word,3F900000
patch=1,EE,0028F784,word,3F900000
patch=1,EE,0028F788,word,3F900000
patch=1,EE,0028F78C,word,3F800000

// World and Character main RGB fixed Values.
patch=1,EE,0028F7F0,word,00000080
patch=1,EE,0028F7F4,word,00000080
patch=1,EE,0028F7F8,word,00000080
patch=1,EE,0028F7FC,word,00000000

///////////////////

// Mastercode - not needed for pcsx2
//patch=1,EE,0E3C7dF2,extended,1456E7A5
//patch=1,EE,F024E5d4,extended,0024E5d7

///////////////////
6 changes: 6 additions & 0 deletions patches/SCES-53422_D1003514.pnach
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
gametitle=Stuart Little 3 - Big Photo Adventure PAL-M SCES-53422 D1003514

[50 FPS]
author=Gabominated
description=Might need EE Overclock.
patch=1,EE,00105F24,word,24110001 //24110002
6 changes: 6 additions & 0 deletions patches/SCES-55662_DB2EE959.pnach
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
gametitle=Chandragupta - Warrior Prince PAL-IN SCES-55662 DB2EE959

[50 FPS]
author=Gabominated
description=Might need EE Overclock.
patch=1,EE,0045593C,word,28630001 //28630002
20 changes: 10 additions & 10 deletions patches/SCKA-20084_1AFD7469.pnach
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
gametitle=Monster House (NTSC-K)(SCKA-20084)

[Widescreen 16:9]
gsaspectratio=16:9
author=Arapapa
comment=Widescreen Hack
//Widescreen hack 16:9
//[Widescreen 16:9]
//gsaspectratio=16:9
//author=Arapapa
//comment=Widescreen Hack
//After the first mission the game breaks on the other levels

//Y-Fov + Zoom in
//00000000 00000000 03150146 00000000
//763f013c 00f88144 42081f46 46011503
patch=1,EE,001c610c,word,3c013f76 //00000000
patch=1,EE,001c6110,word,4481f800 //00000000
patch=1,EE,001c6114,word,461f0842 //46011503
patch=1,EE,001c6118,word,46011503 //00000000
//patch=1,EE,001c610c,word,3c013f76 //00000000
//patch=1,EE,001c6110,word,4481f800 //00000000
//patch=1,EE,001c6114,word,461f0842 //46011503
//patch=1,EE,001c6118,word,46011503 //00000000

//Zoom out
//0040023c 00008244 3c00a2c7
//dd3f023c 00008244 3c00a2c7
//Zoom value adjust : NTSC-K(3c023fdd), NTSC-U and PAL(3c023fe0)
patch=1,EE,001c60f8,word,3c023fe0 //3c024000
//patch=1,EE,001c60f8,word,3c023fe0 //3c024000

//////////////////////////////////////
//zoom
Expand Down
Loading

0 comments on commit c8d5017

Please sign in to comment.