From 787defde92bb1d360677830425a9a3eb1869331d Mon Sep 17 00:00:00 2001 From: freezy Date: Mon, 30 Nov 2026 11:37:17 +0100 Subject: [PATCH] plugins: add a service-manual numbering for real-time outputs Controllers that number their elements the way the machine's service manual does (drivers, switches, the light table and motors) can now publish their real-time outputs under their own numbering instead of claiming PinMAME's, whose GI ranges, cabinet switch numbers and mech speed values they don't share. --- VisualPinball.Plugins/Resources/ResourceContracts.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/VisualPinball.Plugins/Resources/ResourceContracts.cs b/VisualPinball.Plugins/Resources/ResourceContracts.cs index 07e2f3d29d..cf7352306c 100644 --- a/VisualPinball.Plugins/Resources/ResourceContracts.cs +++ b/VisualPinball.Plugins/Resources/ResourceContracts.cs @@ -759,6 +759,16 @@ public static class RealtimeOutputNumbering /// are -7..0), GI strings from 0, user mechs from 1 (position) and -1 (speed). /// public const string PinMame = "pinmame"; + + /// + /// The numbers the machine's service manual prints, for controllers that number their elements that way: + /// solenoids and other drivers by driver number, switches by switch number (cabinet switches the manual numbers + /// apart as -1, -2, ...), lamps and GI strings by their number in the manual's light table (one table, so a lamp + /// and a GI string never share a number), mechs by motor number. Solenoids, lamps and GI strings report their drive + /// level 0..255. A mech reports its position, or its drive level 0..255 when the machine drives it straight off a + /// lamp line; there are no speed values. + /// + public const string ServiceManual = "service-manual"; } ///