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 


Help finding a pointer

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

Joined: 04 Jan 2018
Posts: 6

PostPosted: Thu Jan 04, 2018 8:18 am    Post subject: Help finding a pointer Reply with quote

Hello, I am having trouble finding a pointer to a certain address in an offline game. In this game two characters can do a specific interaction only once. The max number of characters the game has is 25. When the game detects that you attempted the interaction, it changes a specific integer to "1" which prevents you from doing it again. If you manually change this back to 0, you will be able to do the action again. So each of the 25 characters has an array that determines whether that character attempted to do some interaction with others. For you for example, if you only tried to do this interaction with characters 12 and 13 (game counts from 0), this is what the array would look like in the debugger:

Code:

00 00 00 00
00 00 00 00
00 00 00 00
00 00 00 00
00 00 00 00
00 00 00 00
00 00 00 00
00 00 00 00
00 00 00 00
00 00 00 00
00 00 00 00
00 00 00 00
00 00 00 01
00 00 00 01
00 00 00 00
00 00 00 00
00 00 00 00
00 00 00 00
00 00 00 00
00 00 00 00
00 00 00 00
00 00 00 00
00 00 00 00
00 00 00 00
00 00 00 00


This is neat and all and if I search for it manually I can always find it, but I'm trying to find pointers. I tried looking at what writes to this address.
Code:

i.imgur. com/WNS3eYM.png (remove space. I apologize for this format, but it says I cannot post urls)


The probable value of the pointer needed to find the address is the same address that the integer gets written to that determines whether the action happened before or not. Doing a search for this value in hex gives me no results. Doing a pointer scan for this value gives me no results.

Where I do find it tho is if I make a breakpoint before the writing happens and check for the value in eax:
Code:

i.imgur. com/bZschYP.png (again, remove space)


If I keep that breakpoint I can talk to other characters and find the correct address for this integer but it would be nice if I had access that is a bit more direct. How should I go about doing that? Thank you for your time.
Back to top
View user's profile Send private message
OldCheatEngineUser
Whateven rank
Reputation: 8

Joined: 01 Feb 2016
Posts: 862

PostPosted: Thu Jan 04, 2018 9:29 am    Post subject: Reply with quote

http://i.imgur.com/WNS3eYM.png
i would believe its a shared, but seems to be not. why? (still it can be, and also kinda emulated thus its difficult to find)

according to the same img, with this http://i.imgur.com/bZschYP.png
i can presume under a specific condition, a Jcc condition satisfied and it takes you too xor ecx,ecx then move the value of ecx into eax.

and you probably want the value to be '0' so a simple patch like "JMP" will solve your issue without needing a pointer.
only basic code injection.

_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
patched cheat engine tutorials
Memory Hacker
Back to top
View user's profile Send private message Visit poster's website
molawew
How do I cheat?
Reputation: 0

Joined: 04 Jan 2018
Posts: 6

PostPosted: Thu Jan 04, 2018 11:21 am    Post subject: Reply with quote

OldCheatEngineUser wrote:

i would believe its a shared, but seems to be not. why? (still it can be, and also kinda emulated thus its difficult to find)

according to the same img, with this
i can presume under a specific condition, a Jcc condition satisfied and it takes you too xor ecx,ecx then move the value of ecx into eax.

and you probably want the value to be '0' so a simple patch like "JMP" will solve your issue without needing a pointer.
only basic code injection.

Thank you for replying. I had forgotten to mention that for the mod I'm making I need to find this address before it gets set once. I can't wait for it happen and then catch it because there's a high chance that it has already happened.
Back to top
View user's profile Send private message
OldCheatEngineUser
Whateven rank
Reputation: 8

Joined: 01 Feb 2016
Posts: 862

PostPosted: Thu Jan 04, 2018 7:57 pm    Post subject: Reply with quote

i made a typo lol, "i can assume" not presume hehe.

anyway just go back one subroutine, there must be a condition that takes you to a call then to this part of code.

_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
patched cheat engine tutorials
Memory Hacker
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions 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