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:

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.

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._________________

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.

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot vote in polls in this forumYou cannot attach files in this forumYou can download files in this forum