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 


Pinball Mouse Vac

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Wed Oct 24, 2007 6:39 am    Post subject: Pinball Mouse Vac Reply with quote

I'm working on an AA script in Pinball for Windows XP to vac the ball to where the mouse is. Yes I'm aware there already a built-in one but I'd like to try to make one also.

So I have found the X coordinates of the ball are stored in these addresses:
00A00F28
00A00F0C
00A00F40

And the Y coordinates of the ball (the value decreases as you go up, took me a while to find these Evil or Very Mad ):
00A00F10
00A00F2C
00A00F44

I propose to find the mouse X/Y coordinates in memory, then I was thinking of writing an AutoAssembler script to move the X value of the mouse into (00A00F28, 00A00F0C or 00A00F40) at every specified time interval. Then same with the Y coordinate.

I came across a few problems already:
1) The X/Y memory addresses I found are dynamic and I'm having trouble finding the pointers. I don't know how to use the pointer scanner on CE so I just attached the debugger and clicked more information for probable value held at pointer then scanned for it without much success.
2) I have no idea how I'm supposed to scan for mouse X/Y coordinates. I'm not even sure whether Pinball will hold the mouse coordinates in memory.
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Wed Oct 24, 2007 3:35 pm    Post subject: Reply with quote

Stop spamming Mikey lol. Help me instead Wink

Btw I'm not even sure if Pinball will have the mouse addresses since it doesn't need them in anyway. But then that doesn't explain why the built-in mouse vac works. Guess it's time to get good ol' Olly out again :p
Back to top
View user's profile Send private message
wofo
Expert Cheater
Reputation: 0

Joined: 12 Aug 2007
Posts: 211

PostPosted: Wed Oct 24, 2007 5:03 pm    Post subject: Reply with quote

Could be a multilevel pointer, look at a video tut for the CE tutorial, go to step 8. That is almost the same (I think, not tested).

If you can do it then send me in a pm plz Very Happy.
Good Luck

_________________
! 10\/3 1337

Happy Cheating guys
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Wed Oct 24, 2007 5:15 pm    Post subject: Reply with quote

I know how to find multiple level pointers, I did the whole CE tutorial but I'm just having a bit of trouble on this one for some reason. If someone could test it, that'd be great.
Back to top
View user's profile Send private message
Lord Hacker
Cheater
Reputation: 0

Joined: 08 Jul 2007
Posts: 29
Location: <---What he said

PostPosted: Wed Oct 24, 2007 6:34 pm    Post subject: Reply with quote

I could test it. ^^
_________________


Back to top
View user's profile Send private message
Labyrnth
Moderator
Reputation: 10

Joined: 28 Nov 2006
Posts: 6301

PostPosted: Wed Oct 24, 2007 7:19 pm    Post subject: Reply with quote

Slugsnack wrote:
Stop spamming Mikey lol. Help me instead Wink

Btw I'm not even sure if Pinball will have the mouse addresses since it doesn't need them in anyway. But then that doesn't explain why the built-in mouse vac works. Guess it's time to get good ol' Olly out again :p


Ok first of all, that built in one works while holding down left click.
Im not sure how much more in problems you will have trying to do this because the coords of the mouse are in perspective of the desktop resolution and not the game window for 1.

The easiest way would be to, find the address of the built in vac.
Then find the address of Left Mouse Down/Left Mouse Up.

Enable the Built in vac and enable Left Mouse Down then you can move the mouse and it should work. Just as if you typed "hidden test" and then held down Left Mouse Button.

I have not done this but im sure the theory is a good one.
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Wed Oct 24, 2007 10:09 pm    Post subject: Reply with quote

What about checking if the ball is going past your flippers? That way you could just set it back somewhere else and keep playing instead of just dragging the ball all over the place.
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Thu Oct 25, 2007 2:05 am    Post subject: Reply with quote

Quote:
Ok first of all, that built in one works while holding down left click.
Im not sure how much more in problems you will have trying to do this because the coords of the mouse are in perspective of the desktop resolution and not the game window for 1.

Yes that was one of my problems. I have no idea how I'm supposed to get the addresses of the mouse coordinates.
Quote:
The easiest way would be to, find the address of the built in vac.

Enable the Built in vac and enable Left Mouse Down then you can move the mouse and it should work. Just as if you typed "hidden test" and then held down Left Mouse Button.
Then find the address of Left Mouse Down/Left Mouse Up.

I have not done this but im sure the theory is a good one.

No idea how to do that unless I'm supposed to scan unknown initial value, turn the vac on. Scan changed value, restart Pinball and scan first value, etc. I'm pretty sure the address would change too. Any hints on how to find the Left Mouse Down/Up address ?

Actually I'm still having trouble getting the pointer to the ball coordinates. I know that when you start the game and it rests on the launcher, in memory, the ball coordinates hold the values:
X = 319
Y = 369

Quote:
What about checking if the ball is going past your flippers? That way you could just set it back somewhere else and keep playing instead of just dragging the ball all over the place.

Not quite sure how to do that either :p But I'm aiming to get a vac rather than unlimited lives which is relatively easy.
Back to top
View user's profile Send private message
Labyrnth
Moderator
Reputation: 10

Joined: 28 Nov 2006
Posts: 6301

PostPosted: Thu Oct 25, 2007 6:15 pm    Post subject: Reply with quote

To not let the ball get below the flippers you will do a compare on the y location of the ball and if it is < then the flippers Y it can be set to a higher value Y, say like center of the game or very top Wink.


It is going to be tough to get the cheat address, start with a scan of 0,
Enable the cheat and scan for 1.

Now you will have to go through the rest manually.
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