Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: VP9 in MA  (Read 7321 times)

0 Members and 1 Guest are viewing this topic.

premier

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 11
  • Last login:October 10, 2020, 02:11:31 am
VP9 in MA
« on: August 17, 2010, 10:13:27 am »
Hey guys, just wanted to ask if anybody has successfully managed to get Visual Pinball 9(908) to work in MA?
It seems to boot but stay in the background. Ive tried all the window state options to no avail!
can anybody shed some light on this?



« Last Edit: August 17, 2010, 10:15:16 am by premier »

premier

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 11
  • Last login:October 10, 2020, 02:11:31 am
Re: VP9 in MA
« Reply #1 on: August 20, 2010, 01:04:41 am »
Ive got vp9.08, vp9.02 and also vp8.9506.
Funnily enough, even when trying to play a table regularly (not through MA), I do the usual; run VP(editor), open a table, push F5 to play, and still the player boots behind the editor, requiring ALT-TAB to bring it to the front!, just like in MA!
All three verions of VP do this too!

BobA

  • Trade Count: (+14)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5943
  • Last login:July 11, 2018, 09:52:14 pm
  • What Me Worry?
Re: VP9 in MA
« Reply #2 on: August 24, 2010, 04:04:25 pm »
Deleted wrong pinball program
« Last Edit: August 24, 2010, 11:21:48 pm by BobA »

premier

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 11
  • Last login:October 10, 2020, 02:11:31 am
Re: VP9 in MA
« Reply #3 on: August 26, 2010, 05:41:00 am »
Well ive tried another older VP and it works fine now.

if anybody has any idea how to get VP9 to boot in maximus please let us know!

BobA

  • Trade Count: (+14)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5943
  • Last login:July 11, 2018, 09:52:14 pm
  • What Me Worry?
Re: VP9 in MA
« Reply #4 on: August 27, 2010, 04:19:12 pm »
Tried it in Maximus with VP set for XP S2 compatability.   It plays but has one major problem.  When the screen shows I need to click on it with the mouse to get the focus set to VP and then all the controls work and the game plays properly.   Running W7 64 bit.

SephYuyX

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 126
  • Last login:November 28, 2013, 11:40:04 am
  • I Am, Who I Am.
Re: VP9 in MA
« Reply #5 on: August 29, 2010, 12:51:07 am »
I tried many a times to get VP9 to work, or any other verion for that matter. After a day of screwing with it I found "Visuall Install Pack 8.1" which worked for me.

lrdicon2000

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 6
  • Last login:December 09, 2010, 07:36:04 pm
Re: VP9 in MA
« Reply #6 on: November 05, 2010, 05:21:44 pm »
Tried it in Maximus with VP set for XP S2 compatability.   It plays but has one major problem.  When the screen shows I need to click on it with the mouse to get the focus set to VP and then all the controls work and the game plays properly.   Running W7 64 bit.


I am also having the same type of problem for VP 9.08 running on XP 32bit SP2. The table will stay in the background until I click on it with the mouse, then the table loads fine with all of the lights flashing and allowing coins. But that isn't a satisfactory fix as I won't have that option once I put the unit in a cabinet as I won't have a mouse to click the tables.

If somebody has a work around for this particular bug it would be very much appreciated!

tchiacch

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 13
  • Last login:March 16, 2012, 04:03:48 pm
Re: VP9 in MA
« Reply #7 on: November 15, 2010, 05:41:22 pm »
I wrote a script using AutoIT (free software) that gets executed when you launch VP9 from MA.  All it does is count 10 seconds and then executes a couple mouse clicks.  I do not have it here, but when I get home I can post it.  It really works very good.  You create a .au source file and then compile it to a .exe. Then call the .exe file from MA.  It was very easy to create and compile.  I'll let you know.


BobA

  • Trade Count: (+14)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5943
  • Last login:July 11, 2018, 09:52:14 pm
  • What Me Worry?
Re: VP9 in MA
« Reply #8 on: November 16, 2010, 09:22:48 am »
Sounds like just what is needed.  :applaud: :applaud:

tchiacch

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 13
  • Last login:March 16, 2012, 04:03:48 pm
Re: VP9 in MA
« Reply #9 on: November 17, 2010, 01:14:09 am »
Create a source script for autoIt similar to this:


Sleep(8000) ;delay eight seconds
 
; Double click at the current mouse pos
MouseClick("left")
MouseClick("left")

I named source file the following name
mousedelay.au3


You may need to play around with the number of seconds to get it just right for you slowest loading table
I cannot remember what my final second delay I ended up with as I did this on a different machine.

But once you have the file and have downloaded/installed the free autoIt utility simple do start-> programs -> autoIt v3 -> compile script to .exe

follow instructions if 64 bit or not etc. give it a name like mousedelay.exe

Then you call this from Maximus arcade during VP execution.  It works really good for me.  I'm running with windows 7 64 bit and it is stable.

tchiacch

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 13
  • Last login:March 16, 2012, 04:03:48 pm
Re: VP9 in MA
« Reply #10 on: November 17, 2010, 01:16:29 am »
AutoItV3 link

AutoIt v3 is a freeware BASIC-like scripting language designed for automating the Windows GUI and general scripting.

http://www.autoitscript.com/autoit3/index.shtml


Rick

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2787
  • Last login:May 09, 2023, 01:16:55 pm
  • Bartop, Cocktail and Pinball Arcade Cabinets
    • Gameroom Designs Canada
Re: VP9 in MA
« Reply #11 on: November 17, 2010, 01:10:40 pm »
Close to the bottom of this thread in the VPForums, there seems to be something similar, which also fixes *some* nag screens that might appear.  (The ones that say "Are you legally allowed to play this game" seem to disappear, but the PinMAME one stays.)  I'm going to try it out now, as I am also having similar issues with MA and VP9.  Don't try the last link (rapidshare, from a user with a single post) as it is dead.  I'm working on the second-last link, from a user named "HGPinball", who is an Admin, it seems.

Here are the contents of the ".AU3" file:

Code: [Select]
; Just a variable that's used repeatedly in dialog boxes, etc.
$title = "Visual Pinball Assistant"

; TESTING
Opt("TrayIconDebug", 1)

; Show oure little balloon
TrayTip($title, $title & " started.", 3, 1)

; Make sure they see it
Sleep(2000)

; Hide our little balloon
TrayTip("", "", 3, 1)

; Search by title exact or class name
Opt("WinTitleMatchMode", 4)

; Now we go into an infinate loop until the user exits from the tray
While 1
; Look for VPinMAME window
If WinExists("Please answer and press OK...") Then
; Found VPinMAME

; Select Yes radio button
ControlCommand("last", "", 228, "Check", "")

; Click OK button
ControlClick("last", "", 1)
EndIf ; VPinMAME window check

; Look for Visual Pinball Player
$Player = WinGetHandle("classname=VPPlayer")
If Not @error Then
; Player found. Check to see if options dialog is open using a partial match anywhere
Opt("WinTitleMatchMode", 2)
$Options = WinGetHandle("Options Menu")
Opt("WinTitleMatchMode", 4)
If Not @error Then ; Options menu is open
; Close options menu by clicking on the OK button.
ControlClick($Options, "", 1000)
EndIf ; Options menu check

; Check to see if player is active
If WinActive($Player) Then ; Player is active
; User is playing. We don't need to do anything else, but we'll sleep for an extended period
Sleep(4000)

Else ; Player is NOT active
; While the player is not the active window, try and make it so
While Not WinActive($Player)
; If not active, sleep for a bit in case it's actually loading the table
Sleep(1000)

; Try and activate it
WinActivate($Player)
WEnd ; Trying to make the player active

EndIf ; Player active check

EndIf ; Visual Pinball Player Check

; Let the system breathe before we loop.
; This slows down VPM detection but doesn't steal as much of the CPU.
Sleep(1000)
WEnd

Configure the executable in the MA Preferences under "Configuration" for "Visual Pinball".  In the "Pre-launch" tab, you setup the program to run, and in the "Exit" tab, you select "Close all additional processes started during launch".

(I might just remove a few lines of code from above and recompile it - the 'TrayTip' popup and silence routines aren't necessary if you're using a front end.  There's a quick 'blink' from it as you start up, and you don't need to see it in action.)  I think it does work, as I didn't have to use the mouse to do anything...

Now, the only 'new' issue I seem to have is that I'm getting a 'Windows has encountered an issue and needs to close' every time I exit a table.  Hurm.  It seems to only happen when running VP9 through MA, as I just tried running VP9 directly, and didn't have the issue.  Edit: A-Ha!  Thanks to an old post on the MA forums, it looks like my using "Esc" to exit wasn't a good idea.  There's more than a single mapping to exit the VP program, so using "End" works very, very well.

So, that solves that problem.  Everything is working well for me now.
« Last Edit: November 17, 2010, 02:15:02 pm by Rick »

BobA

  • Trade Count: (+14)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5943
  • Last login:July 11, 2018, 09:52:14 pm
  • What Me Worry?
Re: VP9 in MA
« Reply #12 on: November 17, 2010, 10:01:39 pm »
I used the short script posted by tchiacch and it works fine for the mouse click problem.  No other problems encountered.

Rick

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2787
  • Last login:May 09, 2023, 01:16:55 pm
  • Bartop, Cocktail and Pinball Arcade Cabinets
    • Gameroom Designs Canada
Re: VP9 in MA
« Reply #13 on: November 17, 2010, 10:21:57 pm »
I used the short script posted by tchiacch and it works fine for the mouse click problem.  No other problems encountered.

Do you still get the "permission" pop up? If not, how did you bypass it?

BobA

  • Trade Count: (+14)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5943
  • Last login:July 11, 2018, 09:52:14 pm
  • What Me Worry?
Re: VP9 in MA
« Reply #14 on: November 18, 2010, 07:15:06 am »
No permission screen as I have already played the table in VP to check it before using it via Maximus.

DeLuSioNal29

  • Global Moderator
  • Trade Count: (+6)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4778
  • Last login:October 20, 2023, 11:39:06 pm
  • Build the impossible -"There is no Spoon"
    • DeLuSioNaL's YouTube Videos
Re: VP9 in MA
« Reply #15 on: November 19, 2010, 01:12:54 am »
I actually played every pinball table on my arcade (painstakingly clicked on all the legal nag screens).  They only show up once for the first time you played them.  Then I backed up the portion of my registry which contained the Pinball info.  Now when I do a fresh install whenever I re-format my arcade machine, I simply double click on my registry backup and voila, no more nag screens.

D
Stop by my Youtube channel and leave a comment: