forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Creating a cheatdevice....need help :(

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
roby65



Joined: 01 Jun 2008
Posts: 55
Location: Mid Italy

PostPosted: Sun Aug 17, 2008 6:49 pm    Post subject: Creating a cheatdevice....need help :( Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
PosX100



Joined: 15 Aug 2007
Posts: 98

PostPosted: Tue Aug 19, 2008 2:46 am    Post subject: Reply with quote

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
View user's profile Send private message
roby65



Joined: 01 Jun 2008
Posts: 55
Location: Mid Italy

PostPosted: Tue Aug 19, 2008 3:08 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group