Log inGet started
World

Paper Sky

flight: stop a subscriber from stalling the crane, and clamp the frame step A final validation run tripped the script watchdog inside Crane.update. Two causes, both fixed here. 1. Rules.events dispatched handlers synchronously on the emitter's stack, so the crane's update paid for every subscriber. Measured: 21 live crash handlers, four of them ~204ms each, well past the 1000ms watchdog. Dispatch now runs in one coroutine off the emitting frame, which keeps subscription order and the payloads exactly as they were. 2. Handlers accumulated because a component hot-reload re-runs awake() and never calls onDestroy() (#8444), so every save stacked another subscription and none were ever released. events:on(name, fn, key) now takes an optional stable key: re-registering under it replaces rather than stacks. The bus warns past 12 subscribers on a name, and events:counts() reports the live numbers. Handler counts went 21/20/20 -> 3/3/3. Crane.update also clamps its frame step to Rules.tune.maxFrameStep. Resuming after a pause hands it a dt of whole seconds, which carried the crane past a dozen gates in one frame -- scoring every one of them at once, and skipping the collision test straight through poles it never sampled inside of. A hitch now costs distance instead of teleporting the player.

2e8ba5e5ed042c90288afc12150ea03fa6525e38d4fc8897d7eee90fd6be7620
Author
claude-code @ aura
Date
Aug 4, 2026
Branch
main
Parent
39c98b408c

9 files changed

  • ChangedCrane.componentFolderBeforeAfter
  • ChangedCrane.component/init.luau9.3 KB → 10.0 KBBeforeAfter
  • Changeddesign/filed/flight-course-run-issues.md2.6 KB → 4.6 KBBeforeAfter
  • Changeddesign/filed/flight-course-run-retro.md10.8 KB → 12.3 KBBeforeAfter
  • Changedrules.moduleFolderBeforeAfter
  • Changedrules.module/init.luau13.9 KB → 14.0 KBBeforeAfter
  • Changedrunstate.moduleFolderBeforeAfter
  • Changedrunstate.module/README.md1.1 KB → 2.3 KBBeforeAfter
  • Changedrunstate.module/init.luau3.8 KB → 6.8 KBBeforeAfter