Race condition in coil activation
還沒有人認領這個 Issue。
評估
研究方向
Start by tracing Unity's Player.Start, CoilPlayer.OnStart, CoilPlayer.HandleCoilEvent, and IGameLogicEngine.OnCoilChanged, then reproduce the table script and "Pulse Coil" sequence. Done means the ball spawns reliably regardless of the order in which the relevant startup methods run.
由索引模型根據 Issue 內容生成。
描述
Problem
This script has no effect:
This script causes the ball to spawn:
Cause
What should happen is:
Player.Startis called by UnityCoilPlayer.OnStartis calledCoilPlayer.HandleCoilEventis added as a callback toIGameLogicEngine.OnCoilChanged- The table script starts running and the "Pulse Coil" node is executed
- The ball spawns
The problem is that the table script starts running before Player.Start is called and nothing happens because CoilPlayer.HandleCoilEvent does not yet observe IGameLogicEngine.OnCoilChanged. This might be non-deterministic as well because the order of in which Start is called on MonoBehaviours is. Not sure how it is in Visual Scripting.
- 主要語言
- C#
- 星號
- 0
- 分支
- 1
- PR 合併指標
- 30 天內沒有已合併 PR
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
VisualPinball/VisualPinball.Unity.VisualScripting 的其他 Issue
-
難度 5/5 一週以上 新手友好度 25/100
查看 VisualPinball/VisualPinball.Unity.VisualScripting 的全部 Issue
相似的 Issue
-
type/automation type/tech-debt
難度 2/5 1-3 小時 新手友好度 78/100
-
bug
難度 2/5 1-3 小時 新手友好度 88/100
-
t/bug
難度 2/5 1-3 小時 新手友好度 82/100
-
ci-failure-cause test-failure
難度 2/5 1-3 小時 新手友好度 82/100
-
area:auth FE mvp P3
難度 2/5 1-3 小時 新手友好度 88/100
klasolsson81/jobbliggaren#1788 ·