Jump to content



Photo
- - - - -

directB2S backglasses crash VP on exit. Any Ideas?


  • Please log in to reply
18 replies to this topic

#1 delta6014

delta6014

    Enthusiast

  • Members
  • PipPipPip
  • 161 posts
  • Location:Near Cincinnati Ohio

  • Flag: United States of America

  • Favorite Pinball: Star Trek TNG

Posted 16 February 2013 - 04:01 AM

I've been running these new back glasses, and they are great, but every time I exit a table whether through hyperpin or VP, VP crashes. This only happens on the tables that I'm running the new back glasses on. Any body have any ideas.? Thanks

#2 Westworld

Westworld

    Enthusiast

  • Members
  • PipPipPip
  • 114 posts
  • Location:Munich

  • Flag: Germany

  • Favorite Pinball: Kiss

Posted 16 February 2013 - 10:21 AM

I've been running these new back glasses, and they are great, but every time I exit a table whether through hyperpin or VP, VP crashes. This only happens on the tables that I'm running the new back glasses on. Any body have any ideas.? Thanks

I've had with some tables crashes on exit for VP, but never HyperPin.

 

Maybe my solution works also for you:

open for one of these tables the script, scroll down (or search) for Controller.Pause

 

Below that part add:

Sub Table1_exit()

 Controller.Stop

End sub

 

if the sub method used for Controller.Pause has a different name, such as Genesis_Pause, use the same start for _exit

 

This stops the controller immediately, before VP quits. For me this has the advantage that music also stops immediately, sometimes it continues to play for 3-5 seconds.

And it does not crash for me anymore.

 

Good luck.



#3 Pinball999

Pinball999

    Pinball Fan

  • Members
  • PipPipPipPip
  • 828 posts
  • Location:Germany

  • Flag: France

  • Favorite Pinball: Star Wars

Posted 16 February 2013 - 03:38 PM

Hi Delta6014,

 

I had the same issue here, and you just need to change the ddraw value for the problematic tables.

All info is here:

http://www.vpforums....=21#entry212009

 

Herweh is aware about the problem since the beta version, and might come with anothe fix.



#4 delta6014

delta6014

    Enthusiast

  • Members
  • PipPipPip
  • 161 posts
  • Location:Near Cincinnati Ohio

  • Flag: United States of America

  • Favorite Pinball: Star Trek TNG

Posted 16 February 2013 - 05:00 PM

Thanks for the help. I will check it out and see if I can get them work. Much appreciated



#5 lizard

lizard

    Enthusiast

  • Platinum Supporter
  • 318 posts
  • Location:Australia

  • Flag: Australia

  • Favorite Pinball: Kiss

Posted 16 February 2013 - 10:10 PM

I've had with some tables crashes on exit for VP, but never HyperPin.

 

Maybe my solution works also for you:

open for one of these tables the script, scroll down (or search) for Controller.Pause

 

Below that part add:

Sub Table1_exit()

 Controller.Stop

End sub

 

if the sub method used for Controller.Pause has a different name, such as Genesis_Pause, use the same start for _exit

 

This stops the controller immediately, before VP quits. For me this has the advantage that music also stops immediately, sometimes it continues to play for 3-5 seconds.

And it does not crash for me anymore.

 

Good luck.

Thanks for the info Westworld that worked for me.



#6 delta6014

delta6014

    Enthusiast

  • Members
  • PipPipPip
  • 161 posts
  • Location:Near Cincinnati Ohio

  • Flag: United States of America

  • Favorite Pinball: Star Trek TNG

Posted 17 February 2013 - 01:31 AM

Where do you adjust the draw value???? Also Westworld, not all tables have the controller.pause, but when I tried your method I got errors. Where exactly does it go?

#7 Pinball999

Pinball999

    Pinball Fan

  • Members
  • PipPipPipPip
  • 828 posts
  • Location:Germany

  • Flag: France

  • Favorite Pinball: Star Wars

Posted 17 February 2013 - 01:47 AM

Got this from Marauder some time ago:

 

You need to change it on Windows' registry. Use regedit and go to HKEY_LOCAL_MACHINE > Software > Freeware > VisualPinMAME. You should see there the ROMs (and not the tables!) as the key names. Edit there.



#8 chepas

chepas

    t.me/horsepin

  • Members
  • PipPipPipPip
  • 1,966 posts

  • Flag: ---------

  • Favorite Pinball: BSD, Tr0n, SW:Stern

Posted 17 February 2013 - 01:55 AM

Had the same problem with Dracula running VP 442.

 

It was fixed with Westworlds solution by adding:  Sub Table1_Exit(): Controller.Stop: End Sub

 

 

Cheers


Edited by chepas, 17 February 2013 - 01:56 AM.

Bump maps are the new auto-tune :BDH:
VPX - RSS Updates ---- blog.flippingflips.xyz/en/ -- Visual Pinball No.1 (2021) . Est.2000


#9 delta6014

delta6014

    Enthusiast

  • Members
  • PipPipPip
  • 161 posts
  • Location:Near Cincinnati Ohio

  • Flag: United States of America

  • Favorite Pinball: Star Trek TNG

Posted 17 February 2013 - 02:46 AM

Thanks. Finally got Westworlds fix to work, but what about the tables that don't have Controller.Pause. Any ideas

#10 Bob5453

Bob5453

    I'm taking a nap

  • VIP
  • 3,896 posts
  • Location:Near Dayton, Ohio USA

  • Flag: United States of America

  • Favorite Pinball: Any table I can play while sitting in a rocking chair




  • Trophies:

Posted 17 February 2013 - 03:28 AM

Hey Westworld, I put that sub in my latest release of Mars Attacks, the table would occasionally not close the Form1 for me, but I added your sub....

Sub Table1_exit()

Controller.Stop

End sub

... and tested it about 40 times and the Form1 has closed on exit every time.

Thanks.

Posted Image

You have discovered an Easter egg. Pat yourself on the back.


#11 chepas

chepas

    t.me/horsepin

  • Members
  • PipPipPipPip
  • 1,966 posts

  • Flag: ---------

  • Favorite Pinball: BSD, Tr0n, SW:Stern

Posted 17 February 2013 - 03:53 AM

Thanks. Finally got Westworlds fix to work, but what about the tables that don't have Controller.Pause. Any ideas

 

Read Pinball999 post above mine for the registry directory. Find the rom that is causing you a problem and change the ddraw to 0.

 

I only had this problem with Addams Family. After you make a change to registry load the table and then exit table for it to work. You could try pushing F3 after table has loaded , it may work the same way.


Bump maps are the new auto-tune :BDH:
VPX - RSS Updates ---- blog.flippingflips.xyz/en/ -- Visual Pinball No.1 (2021) . Est.2000


#12 lizard

lizard

    Enthusiast

  • Platinum Supporter
  • 318 posts
  • Location:Australia

  • Flag: Australia

  • Favorite Pinball: Kiss

Posted 17 February 2013 - 04:12 AM

I have just been putting it right at the end of the script on the tables without the Controller.Pause and it is working great. No need to set ddraw to 0



#13 RNunez187

RNunez187

    Enthusiast

  • Platinum Supporter
  • 250 posts
  • Location:Mundelein, IL

  • Flag: United States of America

  • Favorite Pinball: Scared Stiff

  • PS3 Gamer Tag: RNunez187
  • 360 Gamer Tag: RNunez187

Posted 17 February 2013 - 06:18 AM

Adding the Sub Table1_Exit(): Controller.Stop: End Sub at the end of the script has stopped all of my issues also, especially when needing to restart the backglass after saving changes.  VP would always show a black screen for the playfield and then crash.  Now it works fine.

 

Rudy


stfsgv.png


#14 gogo69

gogo69

    Enthusiast

  • Members
  • PipPipPip
  • 446 posts
  • Location:Salzburg

  • Flag: Austria

  • Favorite Pinball: hard to tell

Posted 26 April 2013 - 07:18 PM

tried all of this but can't get black knight 2000 to -> not crash when exiting the table

  :( does it work for you guys ? what did you ad to the script ?

 

i am playing Lord Hiryu's version of BK2K


Edited by gogo69, 26 April 2013 - 07:19 PM.

my cab : click!


#15 chepas

chepas

    t.me/horsepin

  • Members
  • PipPipPipPip
  • 1,966 posts

  • Flag: ---------

  • Favorite Pinball: BSD, Tr0n, SW:Stern

Posted 26 April 2013 - 08:11 PM

Sub Table1_Exit(): Controller.Stop: End Sub

 

That should stop all crashing , just make sure table1 is the tables name, it could be something like BK2K , you just need to double check.

 


Attached File  Untitled.jpg   16.62KB   16 downloads

 

Sub bk2000_Exit(): Controller.Stop: End Sub


Edited by chepas, 26 April 2013 - 08:15 PM.

Bump maps are the new auto-tune :BDH:
VPX - RSS Updates ---- blog.flippingflips.xyz/en/ -- Visual Pinball No.1 (2021) . Est.2000


#16 gogo69

gogo69

    Enthusiast

  • Members
  • PipPipPip
  • 446 posts
  • Location:Salzburg

  • Flag: Austria

  • Favorite Pinball: hard to tell

Posted 26 April 2013 - 08:22 PM

oh ! thanks.. another thing learned... this scripting thing is like reading hieroglyphs for me !

Thank you very much !


my cab : click!


#17 bob808

bob808

    Hobbyist

  • Members
  • PipPip
  • 46 posts

  • Flag: United States of America

  • Favorite Pinball: Big Guns

Posted 28 June 2013 - 04:57 PM

Finally found this topic after scouring for an hour or so-
I am hopeing this will help with the problem I am having. When I play a table directly from vp, the backglasses (b2s) close upon exiting a table, but when playing from hyperspin, exiting a table, the b2s backglass continues running and I can only get it to close by hitting the 'esc' button.
Hopefully adding this l;ine to the tables script will help with my problem.

Thanks guys! I will update on wether this works for me or not.

#18 LoadedWeapon

LoadedWeapon

    The Night Owl..

  • Members
  • PipPipPipPipPip
  • 2,572 posts
  • Location:South Carolina USA

  • Flag: United States of America

  • Favorite Pinball: Star Trek TNG



Posted 28 June 2013 - 06:28 PM

That is for db2s not b2s... db2s uses the server and you launch the backglass withe the b2s.server in the script. The other one B2S is an exe file that you set to false in the script and have hyperpin launch it by having _B2S at the end of the name

#19 bob808

bob808

    Hobbyist

  • Members
  • PipPip
  • 46 posts

  • Flag: United States of America

  • Favorite Pinball: Big Guns

Posted 28 June 2013 - 08:40 PM

ahh- ok thanks-  Looks like I have some file-renaming to do..

Thanks for the clarification LoadedWeapon!


Edited by bob808, 28 June 2013 - 08:40 PM.