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

Hooking ps2 games via PCSX2 #418

Closed
shukumeiteki opened this issue Oct 14, 2020 · 1 comment
Closed

Hooking ps2 games via PCSX2 #418

shukumeiteki opened this issue Oct 14, 2020 · 1 comment

Comments

@shukumeiteki
Copy link

shukumeiteki commented Oct 14, 2020

Hello everyone,
so here is my issue, I can manage to find text and hook it into visual novels but here is the thing, once I close the emulator and load everything back the code either doesn't work or freezes the game, so I need to search for another hook and so on.
I managed to create a hook that works by creating save states in one game, what I did was:

Create a quick save, find a hook, create another save state, insert that hook and then use the save/load function inside the game itself to play the game and load the game using the quicksave to use that particular hook and it works. Very cumbersome but it worked. The game is "Thread Colors - Sayonara no Mukougawa [NTSC-J] [SLPM-65187]"

Just for reference, here are the codes:

HS932#20000000+-8@3002E2BA <--- first insert this one

HS932#20000000+-4@3007CCC6 <------ and then this one

if you instead use the second one first it crashes, but in that order, it works fine.
Without the save state is useless so here it is:
http://www.mediafire.com/file/ze59kbyle4hwg0c/SLPM-65187+(D1B2ACE0).02.p2s/file

But now I'm trying with a different game:
StarTRain - Your Past Makes Your Future (First Print Limited Edition) [NTSC-J] [SLPM-66879]

And again, I found a hook that works but I just can't make it work all the time and the quicksave trick is not working this time.

Any tips or suggestions on how to constantly and reliably hook games on pcsx2? maybe I'm doing something wrong...

Thanks!

EDIT, I kinda figured it out using save states, still is not ideal but oh well, I guess it has to do with how the emulation works and the memory address constantly changing, that's why using save states works, anyway, suggestions or tips are welcomed.

@Artikash
Copy link
Owner

Yeah because of how emulators work it's nearly impossible to reliably get a hook that works across different play sessions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants