Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Problem finding real address

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
SaleMCSE
How do I cheat?
Reputation: 0

Joined: 08 Jan 2010
Posts: 5

PostPosted: Fri Jan 08, 2010 4:12 pm    Post subject: Problem finding real address Reply with quote

Hi all, i want to use cheat engine to try and find an address that stores my current Hit Points in game called DragonOath.

The reason why i need this is because a lot of times i get very low on hp and then i have hard time healing myself. So i wanna make a program that will play a sound when I'm like 30% hp left.

My problem is: When i scan the game's memory for the exact value of my hp it gives me different address every time i run the game. Is there a way to find a the real value even if i restart the game?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 474

Joined: 09 May 2003
Posts: 25953
Location: The netherlands

PostPosted: Fri Jan 08, 2010 4:23 pm    Post subject: Reply with quote

If all you want to do is read it out then try pointers or code injection on the routine that reads out your own health for display.

Of course, I probably won't have to tell you that just changing that value won't do a thing

_________________
Tools give you results. Knowledge gives you control.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
SaleMCSE
How do I cheat?
Reputation: 0

Joined: 08 Jan 2010
Posts: 5

PostPosted: Fri Jan 08, 2010 10:06 pm    Post subject: Reply with quote

yup i know that, and i need it only to read the memory for that number.

I did all Cheat Engine tutorials and i got some of it in my head but still can;t figure out pointers hehe.

Guess i will have to try tomorrow since it is 4:26am here atm.

Also if u can point me to some good pointer tutorial i would appreciate it alot
Back to top
View user's profile Send private message
Lemonlime
Expert Cheater
Reputation: 0

Joined: 15 Sep 2007
Posts: 139

PostPosted: Sat Jan 09, 2010 5:38 am    Post subject: Reply with quote

Just look in the pointer tutorials section, theres plenty of great tutorials Very Happy
Back to top
View user's profile Send private message
Psy
Grandmaster Cheater Supreme
Reputation: 1

Joined: 27 Mar 2008
Posts: 1366

PostPosted: Sat Jan 09, 2010 6:16 am    Post subject: Reply with quote

SaleMCSE, post up with your method and how far you've got. Use pictures! We'll be able to help better..
Back to top
View user's profile Send private message
SaleMCSE
How do I cheat?
Reputation: 0

Joined: 08 Jan 2010
Posts: 5

PostPosted: Sat Jan 09, 2010 8:21 am    Post subject: Reply with quote

OK I will now explain what I do and show you my problem. Fist I run the game and scan for my current HP

htt p://img695.imageshack.us/img695/8900/hp1l.png

For scanning I’m using: Exact Value / 4 Bytes, after healing and rescanning I get 1 address

htt p://img683.imageshack.us/img683/6308/address1.png

Now I go “Find out what writes to this address”, I heal once more and I get

htt p://img192.imageshack.us/img192/3192/point1.png

So now I usually turn to some Pointer tutorial to figure out what to do next, since this is my first time using the program and I started learning it last night hehe.

Anyway I load more info and I get this

htt p://img695.imageshack.us/img695/8558/info1.png

I’m also noob in ASM but as far as I can figure out, there is nothing adding to the value of my preheal HP it just moves one value to another (I might be wrong), but anyway this Is that tutorial tells me to do next. I start new search in Exact Value/ 4Bytes with HEX ticked and search for 180113B0

htt p://img695.imageshack.us/img695/5830/scan2k.png

As u can see I got 3 addresses, now I will “Add address manually” and add them as pointers (I will add all 3 since I have no idea witch one is true tbh)

htt p://img683.imageshack.us/img683/5601/add1d.png

I’m adding the Offset as 000006d4 because as I understood the tutorial I need to do that because of [eax+000006d4], ecx. When I do this for all 3 I get

htt p://img69.imageshack.us/img69/2744/point2.png

As u can see I get the correct value of my current HP in all of them, also when I heal they all change and are correct again. But this is now where my problem is occurring. When I leave that map or reload the game, the values are now

htt p://img402.imageshack.us/img402/9662/wrong1.png

*in this case i reloaded the game*
Any suggestions? Or did I do something wrong or missed something?


P.S. i had to post links like this since the forum is not allowing me to post urls yet.
Back to top
View user's profile Send private message
Psy
Grandmaster Cheater Supreme
Reputation: 1

Joined: 27 Mar 2008
Posts: 1366

PostPosted: Sat Jan 09, 2010 9:27 am    Post subject: Reply with quote

At this stage:

Quote:
I’m also noob in ASM but as far as I can figure out, there is nothing adding to the value of my preheal HP it just moves one value to another (I might be wrong), but anyway this Is that tutorial tells me to do next. I start new search in Exact Value/ 4Bytes with HEX ticked and search for 180113B0

htt p://img695.imageshack.us/img695/5830/scan2k.png

As u can see I got 3 addresses, now I will “Add address manually” and add them as pointers (I will add all 3 since I have no idea witch one is true tbh)


This is where it goes to hell. This is because the pointers you brought up are dynamic themselves. A level-1 pointer-path therefore is not good enough. You need to go deeper.

Once you have added that pointer to the cheat list, find what 'accesses' that pointer. You will get another opcode. Scan for that as before and see if you get any 'green' pointers in the list; these are static. You may need to repeat this to go deeper and deeper until you get a solid path.

Some games are heavily-levelled; insanely so. It may be worth using CE's automated pointer scanner. Right-click the initial address for HP you find and right click then 'pointer scan'. Set the level to maybe 3 to start with and let it scan. You'll need to rescan for your HP later and filter the addresses down (you'll get a lot of bad paths to start with; maybe hundreds -> thousands).

~Psych
Back to top
View user's profile Send private message
SaleMCSE
How do I cheat?
Reputation: 0

Joined: 08 Jan 2010
Posts: 5

PostPosted: Sat Jan 09, 2010 11:27 am    Post subject: Reply with quote

yes that is what i feared, i did try using Pointer Scanner and it was running for like 5 mins and found over 500k pointers before i turned it off. But since u suggested it. i will do that and leave it be hehee

Btw when i do Exact Value / All(Byte to Double) it finds my HP in double, 4 Bytes, 1 Byte and so on. Does it mater witch one i use as my starting point for Pointer Scanner?

P.S. i will try using the Exact Value/ 4 Bytes pointer scanner until i get replay from you
Back to top
View user's profile Send private message
Psy
Grandmaster Cheater Supreme
Reputation: 1

Joined: 27 Mar 2008
Posts: 1366

PostPosted: Sat Jan 09, 2010 11:57 am    Post subject: Reply with quote

No it doesn't matter.
Back to top
View user's profile Send private message
SaleMCSE
How do I cheat?
Reputation: 0

Joined: 08 Jan 2010
Posts: 5

PostPosted: Sat Jan 09, 2010 12:54 pm    Post subject: Reply with quote

ok there has to be something wrong. is it posible to go into like 8 pointer deep and still nothing, i keep getting like 5-8 addresses and only 1 of them work when i go to see what accesses that pointer, but the thing is values in that window are added all the time, not only when i heal.

Also can u explain me how to use that Automated pointer scanner?
I did it once and it found tons of addresses but i couldn't figure out how to filter them.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking All times are GMT - 6 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
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites