PinballY icon indicating copy to clipboard operation
PinballY copied to clipboard

Some tables does not close backlass after exit pinbally

Open StifflersM0M opened this issue 10 months ago • 5 comments

Hi there!

For some reasons after exit a table (some, not all) the backglass is still active and running in the background.

Is there a fix for this?

Thanks!

StifflersM0M avatar Feb 17 '25 18:02 StifflersM0M

I haven't run into that, but it sounds more like something to pursue on the VP end. PinballY is just a launcher, so it doesn't have much control over what the program launched (VP in this case, I assume) does or how it behaves after launch. You might ask on the forums if anyone else has run into a similar thing. Since you mentioned that this is a "some, not all" thing, my first guess would be that the tables exhibiting the problem have scripting bugs that are preventing VP from completing an orderly shutdown when you end the game, so it's leaving some of the other components it launches running. The backglasses (and sometimes the DMD, depending on how you have VP set up) can be launched in separate processes under VP's control, so they need VP to tell them when to exit. If VP itself isn't exiting properly because a script problem or anything else, it might not be able to close down the other things it launches.

mjrgh avatar Feb 17 '25 19:02 mjrgh

Thanks for the reply. For my understanding VP should not be the Problem, because when u start this tables directly from VP and exit with "q" all windows are closed fine.

So i assumed the problem related to pinballY

StifflersM0M avatar Feb 17 '25 19:02 StifflersM0M

@StifflersM0M I would recommend that you for those tables in question do the following. In the script, there will be a ... _init very often "table1_init". This is the "object name" of the VPX file - so to speak. (you can see it in the upper right corner of VPX when you open a table. Default it is 'table1', but, the author can change it to something else. So, that is why I say ... _init.

This should preferably have a corresponding _exit routine, and in that one. JPSalas, even with his decades of table script edits, often doesn't close his tables in the recommended way. If you don't find any 'xxxxx_exit' routine in the script. Try to add it yourself. Examples are plentiful - my repo pr example.

Here is an example of such a sub.

https://github.com/sverrewl/vpxtable_scripts/blob/master/Algar%20(Williams%201980)%201.34.vbs#L1049

sverrewl avatar Feb 21 '25 14:02 sverrewl

I have a similar problem with all tables that use FlexDMD. Also the focus taken by the DMD.

mase76 avatar Feb 25 '25 17:02 mase76

I solved the issue by selecting WM_close as closing method.

mase76 avatar Sep 13 '25 14:09 mase76