Skip to content

feed: follow games numbered by their service manual - #3

Merged
freezy merged 1 commit into
masterfrom
feat/service-manual-numbering
Nov 30, 2026
Merged

freezy merged 1 commit into
masterfrom
feat/service-manual-numbering

Conversation

@freezy

@freezy freezy commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

DOF now follows real-time outputs in the new service-manual numbering (freezy/VisualPinball.Engine#654) as well as PinMAME's. Gamelogic engines other than PinMAME use it.

DOF takes the numbers as they come, so a configuration's rows for such a game use the manual's driver, switch, light and motor numbers. Feeds in any other numbering are still refused.

Needs freezy/VisualPinball.Engine#654 first: it uses RealtimeOutputNumbering.ServiceManual.

Summary by CodeRabbit

  • Bug Fixes
    • DOF feeds now work with both PinMAME and service-manual output numbering, including when switching to a replacement feed.
    • Added test coverage confirming service-manual solenoid and lamp updates reach the configured Art-Net rows.

DOF now also follows real-time outputs in the service-manual numbering,
which gamelogic engines other than PinMAME use. DOF takes the numbers as
they come, so a configuration's rows for such a game use the manual's
driver, switch, light and motor numbers.
@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Changes: Service-manual feed support

Layer / File(s) Summary
Feed numbering acceptance and output verification
VisualPinball.Engine.DOF.Unity/Runtime/Player/DofPlugin.cs, VisualPinball.Engine.DOF.Unity/Tests/DofPluginTests.cs
Reads accepts PinMAME and service-manual numbering. FeedOf and Subscribe use this check. The added test verifies that updates for solenoid 12 and lamp 160 set their configured output rows to 255.

Change: Feature

Merge Risk: Minimal · up to 4253e

This change lets DOF feeds and replacement sources that use service-manual numbering drive configured outputs. Other numbering is still refused. No concrete merge-blocking risk was found. The upstream engine change it depends on should land first.

Security architecture risk: Minimal · up to 4253e

Games that use service-manual numbering can now drive cabinet outputs through the existing game-feed connection. Their cabinet configuration must use the same numbering. Other unsupported formats are still refused, and the existing shutdown behavior is unchanged.

Security review details

Security Blast Radius

  • inferred — The newly admitted data can affect outputs mapped for the selected game session through the existing cabinet wiring. The change does not alter the resource selector or the configured output maps.

Trust Boundaries and Controls

  • observed — DOF selects a real-time output resource by controller and game session and requires a bound, non-null source before checking numbering. Numbering determines format compatibility; it is not a producer identity check.

Resilience and Maintainability Implications

  • observed — Releasing a followed source outside normal game end disposes its subscription and faults the session. The first fault stops event admission and latches the output gate closed; a later subscription does not reset that fault.

Hardening Proposals

  • proposed — Verify with the upstream binding that a replacement cannot deliver updates before the old source's withdrawal faults the session. If the binding permits mixed-numbering handoffs, reject a numbering mismatch before subscribing the replacement.
Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 975c90fd-85f5-427d-84c7-a2f5d7518b39
Commits

Reviewing files that changed from the base of the PR and between 3d6226a and 4253e25.

Files selected for processing: 2

  • VisualPinball.Engine.DOF.Unity/Runtime/Player/DofPlugin.cs
  • VisualPinball.Engine.DOF.Unity/Tests/DofPluginTests.cs

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.

@freezy
freezy merged commit 878b29b into master Nov 30, 2026
17 checks passed
@freezy
freezy deleted the feat/service-manual-numbering branch November 30, 2026 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant