Creating a cheatdevice....need help :(

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Locked
roby65
Posts: 52
Joined: Sun Jun 01, 2008 9:12 pm
Location: Mid Italy
Contact:

Creating a cheatdevice....need help :(

Post by roby65 »

Hi guys,
i want to create a cheatdevice for some of my games.....
I use cwcheat to get addresses.....but the game afaik uses dynamic memory.... because addresses always change :(
Is there a way to "hook" the malloc like on windows, or a way to find when new memory is allocated? Maybe with a prx?
PosX100
Posts: 98
Joined: Wed Aug 15, 2007 1:02 am

Post by PosX100 »

I've tried in the past to do something similar...but failed(lawl...).

Here's what i tried(might help you):

1.Run the game
2.Create a memory dump
3.Find the wanted addr
4.Save the address in a text file or something...
5.Turn off & restart psp
6.repeat steps : 1 - 4
7.Find a program to compare memory dumps
8.Subtract each address from each dump file.
If you're lucky you might find something.

Also , if i remember correctly , you have to add or subtract 0x8xxxx to each addr >.<!.


End of story...
roby65
Posts: 52
Joined: Sun Jun 01, 2008 9:12 pm
Location: Mid Italy
Contact:

Post by roby65 »

PosX100 wrote:I've tried in the past to do something similar...but failed(lawl...).

Here's what i tried(might help you):

1.Run the game
2.Create a memory dump
3.Find the wanted addr
4.Save the address in a text file or something...
5.Turn off & restart psp
6.repeat steps : 1 - 4
7.Find a program to compare memory dumps
8.Subtract each address from each dump file.
If you're lucky you might find something.

Also , if i remember correctly , you have to add or subtract 0x8xxxx to each addr >.<!.


End of story...
i'm gonna code a program to do it ;)

edit: this is what i'm gonna do:

get the ammo (that location is variable)
get a dump of memory
restart game
get the ammo (that location is variable)
get a dump of memory

then i know that the pointer must be changed of (ammo1-ammo2), so i check every value in dump1 that decreased/increased of (ammo1-ammo2) in dump2, and this is the pointer :)
Locked