| View previous topic :: View next topic |
| Author |
Message |
roby65
Joined: 01 Jun 2008 Posts: 55 Location: Mid Italy
|
Posted: Sun Aug 17, 2008 6:49 pm Post subject: Creating a cheatdevice....need help :( |
|
|
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? |
|
| Back to top |
|
 |
PosX100
Joined: 15 Aug 2007 Posts: 98
|
Posted: Tue Aug 19, 2008 2:46 am Post subject: |
|
|
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... |
|
| Back to top |
|
 |
roby65
Joined: 01 Jun 2008 Posts: 55 Location: Mid Italy
|
Posted: Tue Aug 19, 2008 3:08 am Post subject: |
|
|
| 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 :) |
|
| Back to top |
|
 |
|