Skip to content

player: Start tables that have no gamelogic engine - #592

Merged
freezy merged 1 commit into
masterfrom
fix/player-without-gamelogic
Oct 16, 2026
Merged

freezy merged 1 commit into
masterfrom
fix/player-without-gamelogic

Conversation

@freezy

@freezy freezy commented Oct 16, 2026

Copy link
Copy Markdown
Owner

A table without a gamelogic engine never finished starting: the lamp, coil, switch and wire players only got their Awake when an engine was present, but OnStart always ran, so Player.Start threw a NullReferenceException in WirePlayer.OnStart.

Now these players always get their Awake (they handle a null engine already). Only the display player still needs an engine, and its OnDestroy tolerates none.

Found while loading T2 in the player with its gamelogic engine removed, for comparing the HDRP and URP renders.

The lamp, coil, switch and wire players only got their Awake when the table
had a gamelogic engine, but their OnStart always ran, so Player.Start threw
in WirePlayer.OnStart and never finished.
@greptile-apps

greptile-apps Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge.

Summary

Fixes startup for tables without a game-logic engine.

  • Tables without a gamelogic engine now finish player startup.

No actionable issues found. Review was based on code inspection; no runtime tests were run.

Reviews (1) · Last reviewed commit: "player: Start tables that have no gamelo..." · Reviewed by Greptile

@freezy
freezy merged commit 6c702b5 into master Oct 16, 2026
15 checks passed
@freezy
freezy deleted the fix/player-without-gamelogic branch October 16, 2026 20:45
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