Jump to content



Photo
- - - - -

VPX and DirectB2S


  • Please log in to reply
5 replies to this topic

#1 TedB

TedB

    Pinball Fan

  • Charter Member
  • 715 posts

  • Flag: Netherlands

  • Favorite Pinball: those with non virtual steel balls

Posted 12 December 2016 - 10:20 PM

I have a new graphics card that makes it possible for me to try out some VPX tables that I couldn't play before but my setup is still not good enough for some of the tables.

So sometimes I want to use DirectB2S and sometimes I do not. 

 

In VP 9 I changed that manually per table with

 

Set Controller = CreateObject("VPinMAME.Controller")

or
Set Controller = CreateObject("B2S.Server")
 
In VPX that doesn't work for me anymore and changing the controller file in the user directory from "forcedisableB2S=0" to "forcedisableB2S=1" doesn't make a difference as well.
Tables are still looking for directb2s files and prompt an error even with "forcedisableB2S=1"
 
I am now wondering if something in my registry is messed up.. Using Win8
 
 
 
 
 
 
 
 


#2 allknowing2012

allknowing2012

    Pinball Fan

  • Members
  • PipPipPipPip
  • 1,948 posts
  • Location:Waterloo, ON

  • Flag: Canada

  • Favorite Pinball: bucaneer

Contributor

Posted 13 December 2016 - 12:40 AM

Latest VPX 10.2 has an option in preferences -- where keys are defined to disableb2s.


* I don't know everything - I just have no life *
testimageNL

 

 

 

#3 TedB

TedB

    Pinball Fan

  • Charter Member
  • 715 posts

  • Flag: Netherlands

  • Favorite Pinball: those with non virtual steel balls

Posted 13 December 2016 - 11:57 AM

Thx that worked - it seems to be a global setting so not sure how to handle it on a 'per table' basis. Might have to experiment a bit with the new settings.



#4 DJRobX

DJRobX

    Pinball Fan

  • VP Dev Team
  • PipPipPipPip
  • 941 posts
  • Location:Valencia, CA

  • Flag: United States of America

  • Favorite Pinball: F14 Tomcat

Posted 14 December 2016 - 02:23 AM

I've always just renamed the .directb2s file to 

 

table.directb2s.off 

 

To turn it off, and just rename it back to its original name re-enable it.   Way easier than messing with the table scripts.    

 

There's a global B2S setting in B2STableSettings.xml to surpress the missing .directb2s error file also 

 

<ShowStartupError>0</ShowStartupError>


Edited by DJRobX, 14 December 2016 - 02:26 AM.


#5 gtxjoe

gtxjoe

    VPF Veteran

  • VIP
  • 5,151 posts

  • Flag: United States of America

  • Favorite Pinball: Medieval Madness, AbraCadabra



Contributor

Posted 14 December 2016 - 03:04 AM

Hmmm, if you want to turn B2S on or off on a table basis...

 

Make a copy of controller.vbs and rename it to controllerOff.vbs.  Open it in notepad and change the line 

  

    tempC = objShell.RegRead(directory & "ForceDisableB2S")

to

    tempC = 1

 

This controllerOff.vbs file will always run VPinmame and not B2S

 

 

Now, if you want to disable B2S for a certain table that has "controller.vbs", just change "controller.vbs" to "controlleroff.vbs"


Edited by gtxjoe, 14 December 2016 - 03:04 AM.


#6 TedB

TedB

    Pinball Fan

  • Charter Member
  • 715 posts

  • Flag: Netherlands

  • Favorite Pinball: those with non virtual steel balls

Posted 14 December 2016 - 08:16 AM

thanks - might give that a try. Would be nice to have this setting in the VPX table itself though. Will request this in the 10.2 beta thread.