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 with Pinball hack.

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

Joined: 10 Nov 2010
Posts: 2

PostPosted: Wed Nov 10, 2010 12:03 pm    Post subject: Problem with Pinball hack. Reply with quote

Hi,

I'm good at C++ and have just started ASM, so I decided to write a pinball hack to test out my new ASM skills.

I managed to get this:

Code:

#include <iostream>
#include <windows.h>
#include <conio.h>

using namespace std;

int main(){
   __asm{
   push eax //Push EAX onto the stack
   mov eax, 10 //Eax = 10
   mov dword ptr ds:0x02A22F1A, eax //Put 10 into the score mem addy
   pop eax
   }
getch();
return 0;
}

However when I run the program in Visual C++ 2008 express it compiles correctly, but has some access violation when I try to write a new value to the address:
Quote:

Unhandled exception at 0x011a13f4 in PinballHack.exe: 0xC0000005: Access violation writing location 0x02a22f1a.

Because the memory address it's having trouble with writing to is the correct one, I'm wondering if my method of writing to the address just using mov is wrong...

Please Help,

Thanks In Advance,

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

Joined: 10 Nov 2010
Posts: 2

PostPosted: Thu Nov 11, 2010 3:55 pm    Post subject: Reply with quote

If anyone is wondering why it didn't work - It's because it was changing the address in it's own memory, a way to make it change the target program's memory was to change the project to a DLL, and to inject the ASM - It now works.

Regards,

Cryptiik
Back to top
View user's profile Send private message
me
Grandmaster Cheater
Reputation: 2

Joined: 24 Jun 2004
Posts: 733
Location: location location

PostPosted: Thu Nov 11, 2010 8:24 pm    Post subject: Reply with quote

yup..
I'll have to refresh on the cheat engine code injection part since not used it for a fair while..

but only posting cos one handy tip for this ole game is if when you get the hundreds of adresses up in your first non pointer scans.. I seem to remember if you scroll right down to the very bottom of the "found" list.. you get a stable pointer for the game in green..

the greens above are not reliable.. but the very bottom green address was stable...

like I say.. was a few years ago now.. I cursed cheat engine with the pinball tutorials by posting the first one.. sorries mr dark byte.. Embarassed

_________________
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