Since you included ultraDMD, i changed it a little
i turned off the debug options, and changes the ultraDMD part of the script to the following
Not really needed as it does score in the backglass, but in case someone wants to use their DMD and maybe wants to redesign the backglass around that
(if one doesnt like RedOrange, pick another color)
Also, table needs a timer added named uDMDScoreTimer as it appears to be missing from the table
' ****************************************************************
' Ultradmd support
' ****************************************************************
Dim DMDColor, DMDColorSelect, UseFullColor
Dim DMDPosition, DMDPosX, DMDPosY, DMDSize, DMDWidth, DMDHeight
Dim UltraDMD
Sub LoadUltraDMD
UseFullColor = "False" ' "True" / "False"
DMDColorSelect = "OrangeRed" ' Rightclick on UDMD window to get full list of colours
DMDPosition = False ' Use Manual DMD Position, True / False
DMDPosX = 100 ' Position in Decimal
DMDPosY = 40 ' Position in Decimal
DMDSize = False ' Use Manual DMD Size, True / False
DMDWidth = 512 ' Width in Decimal
DMDHeight = 128 ' Height in Decimal
Set UltraDMD = CreateObject("UltraDMD.DMDObject")
UltraDMD.Init
uDMDScoreTimer.Interval = UltraDMDUpdateTime
uDMDScoreTimer.Enabled = 1
uDMDScoreUpdate
End Sub
Sub uDMDScoreTimer_Timer
uDMDScoreUpdate
End Sub
Sub uDMDScoreUpdate
If UseUltraDMD = 1 Then
If TestMode = 0 Then
UltraDMD.DisplayScoreboard00 PlayersPlayingGame, CurrentPlayer, Score(1), Score(2), Score(3), Score(4), " ", "Ball " & Balls
Else
UltraDMD.DisplayScoreboard00 PlayersPlayingGame, CurrentPlayer, Score(1), Score(2), Score(3), Score(4), "DEBUG MODE" & ":BP:" & BallsOnPlayfield, "Ball " & Balls
End If
ElseIf UseUltraDMD = 2 Then
If TestMode = 0 Then
UltraDMD.DisplayScoreboard PlayersPlayingGame, CurrentPlayer, Score(1), Score(2), Score(3), Score(4), "Reactor Val:" & ReactorValue(CurrentPlayer), "Ball " & Balls
Else
UltraDMD.DisplayScoreboard PlayersPlayingGame, CurrentPlayer, Score(1), Score(2), Score(3), Score(4), "RV:" & ReactorValue(CurrentPlayer) & ":BP:" & BallsOnPlayfield, "Ball " & Balls
End If
End If
End Sub
Sub UDMD (toptext, bottomtext, utime)
If UseUltraDMD > 0 Then UltraDMD.DisplayScene00Ex "", toptext, 8, 14, bottomtext, 8,14, 14, utime, 14
End Sub
GetDMDColor
Sub GetDMDColor
Dim WshShell,filecheck,directory
Set WshShell = CreateObject("WScript.Shell")
If DMDSize then
WshShell.RegWrite "HKCU\Software\UltraDMD\w",DMDWidth,"REG_DWORD"
WshShell.RegWrite "HKCU\Software\UltraDMD\h",DMDHeight,"REG_DWORD"
End if
If DMDPosition then
WshShell.RegWrite "HKCU\Software\UltraDMD\x",DMDPosX,"REG_DWORD"
WshShell.RegWrite "HKCU\Software\UltraDMD\y",DMDPosY,"REG_DWORD"
End if
WshShell.RegWrite "HKCU\Software\UltraDMD\fullcolor",UseFullColor,"REG_SZ"
WshShell.RegWrite "HKCU\Software\UltraDMD\color",DMDColorSelect,"REG_SZ"
End Sub

Edited by wiesshund, 26 August 2021 - 01:56 AM.