Jump to content

Recommended Posts

Posted (edited)

I'm a bit lost in implementing a bespoke B2S Backglass into my original table.  I've created a directb2s file, but I can't seem to figure out what script code I need to run in VPX.  I've looked at other tables and for the life of me cannot figure out how they are doing it either 😕  I see plenty of script lines that tell the backglass what to do, but can't find any code about initializing the backglass to get it up and going in the first place.  Any help would be greatly appreciated!

 

UPDATE:  After some more googling, I found that the line I was missing was:

Dim Controller
Set Controller = CreateObject("B2S.Server")
Controller.Run

 

Still I'm curious why I couldn't seem to find these lines of code in any of the other tables I was studying?

 

 

Edited by eric3dee
Posted

You can find help inside the controller.vbs file, open it with notepad.

 

At the top of the scripts you should put this

On Error Resume Next
ExecuteGlobal GetTextFile("Controller.vbs")
If Err Then MsgBox "Unable to open Controller.vbs. Ensure that it is in the Scripts folder of Visual Pinball."
On Error Goto 0

 

and in the table initialization this

LoadEM

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...