| View previous topic :: View next topic |
| Author |
Message |
Slugsnack Grandmaster Cheater Supreme
Reputation: 71
Joined: 24 Jan 2007 Posts: 1857
|
Posted: Wed Oct 24, 2007 6:39 am Post subject: Pinball Mouse Vac |
|
|
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 ):
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 |
|
 |
Slugsnack Grandmaster Cheater Supreme
Reputation: 71
Joined: 24 Jan 2007 Posts: 1857
|
Posted: Wed Oct 24, 2007 3:35 pm Post subject: |
|
|
Stop spamming Mikey lol. Help me instead
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 |
|
 |
wofo Expert Cheater
Reputation: 0
Joined: 12 Aug 2007 Posts: 211
|
|
| Back to top |
|
 |
Slugsnack Grandmaster Cheater Supreme
Reputation: 71
Joined: 24 Jan 2007 Posts: 1857
|
Posted: Wed Oct 24, 2007 5:15 pm Post subject: |
|
|
| 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 |
|
 |
Lord Hacker Cheater
Reputation: 0
Joined: 08 Jul 2007 Posts: 29 Location: <---What he said
|
Posted: Wed Oct 24, 2007 6:34 pm Post subject: |
|
|
I could test it. ^^ _________________
|
|
| Back to top |
|
 |
Labyrnth Moderator
Reputation: 10
Joined: 28 Nov 2006 Posts: 6301
|
Posted: Wed Oct 24, 2007 7:19 pm Post subject: |
|
|
| Slugsnack wrote: | Stop spamming Mikey lol. Help me instead
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 |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Wed Oct 24, 2007 10:09 pm Post subject: |
|
|
| 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 |
|
 |
Slugsnack Grandmaster Cheater Supreme
Reputation: 71
Joined: 24 Jan 2007 Posts: 1857
|
Posted: Thu Oct 25, 2007 2:05 am Post subject: |
|
|
| 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 |
|
 |
Labyrnth Moderator
Reputation: 10
Joined: 28 Nov 2006 Posts: 6301
|
Posted: Thu Oct 25, 2007 6:15 pm Post subject: |
|
|
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 .
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 |
|
 |
|