mjrgh / PinballY

A table browser and launcher ("front end") for virtual pinball cabinets.
Other
46 stars 22 forks source link

Pause Menu shows up after launching VPX Pinmame table #205

Open mark-mon opened 2 years ago

mark-mon commented 2 years ago

I have an issue where when launching a VPX (using 10.7) table that also has pinmame, the flow is like this:

This seems to only happen on games that are run with mame. It also didn't occur on VP9 or other systems. The log doesn't show an indicator of the pause button being hit. The pause button was mapped to "none". But I have recently mapped it to "home" (after this issue, not before).

Here is my VPX table entry in settings:

# VP 10
System3 = Visual Pinball X
System3.Class = VPX
System3.Exe = C:\pinball\VP\VPinballX.exe
System3.ShowWindow = SW_SHOWMINIMIZED
System3.Environment = 
System3.TablePath = Tables10
System3.Parameters = /minimized /play "[TABLEPATH]\[TABLEFILE]"
System3.DefExt = .vpx
System3.Enabled = 1
System3.MediaDir = Visual Pinball X
System3.DatabaseDir = Visual Pinball X
System3.TerminateBy = CloseWindow
System3.Process = 
System3.StartupKeys = 
System3.NVRAMPath = 
System3.DOFTitlePrefix = 
System3.RunBeforePre = 
System3.RunBefore = 
System3.RunAfter = 
System3.RunAfterPost = 
System3.ShowWindowsWhileRunning = bg

Here is the logfile showing the launch event. The empty lines are added to show where the pause occurs but nothing is logged:

Table launch: Medusa, table file Medusa, system Visual Pinball X

[Script] *prelaunch running
[Script] *system display name: Visual Pinball X
+ launch: full table path C:\pinball\VP\Tables10\Medusa
+ table launch: table file C:\pinball\VP\Tables10\Medusa doesn't exist; try adding extension -> C:\pinball\VP\Tables10\Medusa.vpx
+ table launch: file + extension (C:\pinball\VP\Tables10\Medusa.vpx) exists, using it
+ table launch: executable: C:\pinball\VP\VPinballX.exe
+ table launch: applying command line variable substitutions:
+ Original> /minimized /play "[TABLEPATH]\[TABLEFILE]"
+ Final   > /minimized /play "C:\pinball\VP\Tables10\Medusa.vpx"
+ table launch: process launch succeeded

+ table launch: Close Game command received
+ table launch: trying to close the game process

Any thoughts? I'd be satisfied if trapping this event and suppressing it via javascript is an option. I will test tomorrow by triggering some javascript events on game launch and pause and see if I can get a hook into when this is happening.