EDIT: I uploaded the file to Mediafire. Download address: http://www.mediafire...nu0x5anjji9co20
The idea is that user can choose the images that are used in the backglass and images for different bands / themes can be stored in separate folders so this one B2S_MUSIC.exe can be used with any music table.
It currently only shows player scores, current player and remaining balls. I planned to duplicate the original LED displays as such but it would have required so much more work that it didn't seem possible at the moment. So this is a simplified version for 2 screen cab use mainly. I haven't tested it much so there can be problems with scaling to different resolutions. I have used 1280 x 720 myself and it works fine.
There is no point in doing any B2S table mods because I'm planning to use the same exe with all the different themes and it's really easy to add into an existing table.
Steps needed to add this B2S to the table:
-----------------------------------------------------------------------------------------------------
1) Add new timer "scoretimer" and check that it is enabled. Defautlt interval 100 seems to be ok although it will work fine with higher settings as well.
2) Copy The following code to the tablescript right after the track filenames:
'*************************************
' B2S
'*************************************
ExecuteGlobal GetTextFile("b2s.vbs")
LaunchBackGlass "B2S_MUSIC", true 'True=Launch bg , False=Don't launch bg.
'reset string values
B2SWriteString "",1
B2SWriteString "",2
B2SWriteString "",3
B2SWriteString "",4
B2SWriteString "0",5
B2SWriteString "0",6
B2SWriteString "0",7
'WRITE TABLE NAME ONCE FOR B2S
B2SWriteString TableName,8
Function B2SWriteString(ByVal Value, ByVal b2snr)
Key = objRegistry.RegWrite("HKCU\B2S\B2SSCORESTRING"&b2snr,Value,"REG_SZ")
B2SWriteString = Key
End Function
Sub scoretimer_timer()
B2SWriteString Score(0),1
B2SWriteString Score(1),2
B2SWriteString Score(2),3
B2SWriteString Score(3),4
B2SWriteString BallsRemaining(CurrentPlayer),5
B2SWriteString CurrentPlayer,6
B2SWriteString PlayersPlayingGame,7
End sub
'***************************************
3) Make sure you have the B2S.vbs and Screenres.txt files in the table folder as well (as always with B2S tables).
4) Create folder "MusicTableImages\backglass" under the table folder
5) Copy the backglass images to the new folder:
a) If you are only planning to use one music table you can use the backglass folder directly
b) If you want to use differend bands / themes then create a folder under the backglass folder that matches the "TableName" variable in the table script. For example "MusicTableImages\backglass\SCORPIONS". Now you can have multiple music tables and matching backglass folders and only use this one B2S_MUSIC exe.
NOTE! The backglass will randomly use all the images from the folder and switch them every 30 seconds. The interval is not configurable at the moment. If you don't want to switch the images then only copy 1 image to the folder.
That's all!
---------------------------------------------------------------------------------------------------------------
BR,
-Teppo-
Attached Files
Edited by teppotee, 01 July 2012 - 05:08 PM.





Top








are all trademarks of VPFORUMS.