eric3dee Posted November 8, 2024 Posted November 8, 2024 (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 November 8, 2024 by eric3dee
max88k Posted November 9, 2024 Posted November 9, 2024 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 Â
eric3dee Posted November 9, 2024 Author Posted November 9, 2024 Aha! Thank you! This makes much more sense- especially when looking at other tables
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now