Hacking ROM Hack PS1/2 PS2 Game Hacking - Finding instructions in binary

MichiS97

"Leftist snowflake milennial"
OP
Member
Joined
Jun 14, 2011
Messages
1,817
Trophies
2
Age
26
Location
Munich
XP
3,619
Country
Germany
Hi all,

tl;dr: Shadow of the Colossus main binary doesn't seem to contain the entire code of the game...where else can I look?

I'm a bit stumped with a technical question regarding PS2 games right now and I'm hoping somebody here can help me.
I love writing assembly based cheat codes for games and I have a ton of experience doing just that on Nintendo systems but I'm kinda new to the Playstation side of things.
Anyway, right now I'm trying to hack Shadow of the Colossus for the PS2 to give myself infinite health and infinite stamina. (Yes, of course, cheats like this definitely already exist but I want to do it myself :) )
Using the debugger in PCSX2 I was quickly able to determine the function which calculates the player's health and stamina and I was able to patch two branch instructions so that the current max health and stamina values that a player can have at any point in the game are always written into the offsets for the current values, so the game literally always stores the max values instead of a subtracted value. So that's nice. I was then able to write a pnach file for PCSX2 which handles that exact patch and I'm pretty sure I have also made a correct CHT file for OPL to play the game using my cheats on real hardware, which is always my goal. So far so good.
However, my end goal would be to patch those two instructions directly in the executable of the game, allowing myself to burn a copy of the game using my hack and it would immediately work on all systems that are able to run backups without having to rely on ps2rd or anything.
My problem is: I cannot find the instructions that I found in RAM with PCSX2 and that I modify for my cheats anywhere in the game's binary (SCES_533.26) nor anywhere else in the entire ISO.
Are some PS2 executables compressed? I don't think so because I couldn't find anything about that online but that's the only explanation I have left.
Binwalk tells me that IOPRP300.IMG also contains ELFs but those also don't seem to contain the bytes that I'm looking for?
I know that there are ways to basically hardcode pnach patches directly into a game by basically hardcoding in a patch handler into the game but this really isn't what I'm looking for. I know that the type of mod that I'm looking to do isn't necessary or the only way to achieve playing a game with cheats but I'm just trying to learn from this.

Any help? :D
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • BigOnYa @ BigOnYa:
    So a man, wifey laying in bed, and man wants sum and rubs on her a little, she turns and says "Not tonight, I have a gyno apt in the morning." So man rolls over, but after few minutes starts rubbing her again. She says didn't you here me, no messing around, I have a gyno apt tomorrow. " Man says, "Well you don't have a dentist apt tomorrow also do you?"
  • BigOnYa @ BigOnYa:
    Damn I have 8 modded rgh3 x360 slims I've done, I need to get rid of, I figured my family members or friends would want but times have changed. Think I'm gonna stop buying them and modding. Time to Switch it up (pun intended)
  • K3Nv2 @ K3Nv2:
    Yay power outages
  • K3Nv2 @ K3Nv2:
    @BigOnYa, I'm your friend
    +1
  • BigOnYa @ BigOnYa:
    There literally no storms in your area, does it go out alot? You need to just send me your slim n ill rgh3 it free.
  • BigOnYa @ BigOnYa:
    Or grow sum balls and do it yourself, not hard. More of a pain to jailbreak a ps4 than it is the 360, other than little soldering.
  • K3Nv2 @ K3Nv2:
    Problem is my dick gets in the way
  • BigOnYa @ BigOnYa:
    Yea true, would be a pain having that on your forehead
  • K3Nv2 @ K3Nv2:
    The chicks love it
    +1
  • K3Nv2 @ K3Nv2:
    Every damn time there's a loud noise dudes car alarm goes off freaking annoying
  • BigOnYa @ BigOnYa:
    Stun gun the metal of the car (door, bumper, etc), you won't hear it again, promise.
  • realtimesave @ realtimesave:
    damn accidentally ripped my car cover just now
  • realtimesave @ realtimesave:
    happens
  • K3Nv2 @ K3Nv2:
    Or plant drugs get him evicted
  • realtimesave @ realtimesave:
    the one on my other car is all ripped up
  • K3Nv2 @ K3Nv2:
    Not your $400 car cover :ohnoes:
  • BigOnYa @ BigOnYa:
    There you go, thinking with your "dickhead"
  • realtimesave @ realtimesave:
    some day the wind will blow so hard it'll rip in half
  • K3Nv2 @ K3Nv2:
    I think in big inches
    +1
  • BigOnYa @ BigOnYa:
    @realtimesave Can you sew it back together? Or is it not worth trying.
  • realtimesave @ realtimesave:
    nah sewing it will make it come apart more :)
  • realtimesave @ realtimesave:
    that one is pretty old
  • realtimesave @ realtimesave:
    the one on my mercedes is a couple years old. these things don't last very long at all
    +1
    realtimesave @ realtimesave: the one on my mercedes is a couple years old. these things don't last very long at all +1