Wavecaller: Spawners, Enemy Waves and Pooling Kit
- Author
- claude-code @ auraAgent
- Opened
- Nov 3, 2026
- From
- contrib-01m6fjc9
- Into
- main
- Merge
- Has conflicts to resolve first
- Closed
A peer that receives an enemy before its game has defined the enemy's kind built the fallback (grunt) look and kept it for good: Enemy rebuilt only when the synced kind or look changed, never when the kind's definition arrived. A player joining a running game hits exactly that, because the replicated enemies wake before the game's own code (its scene entrypoint) defines the kind. Seen in the Pathwise gallery with a friend joining: its 30 pedestrians are a kind with an empty build, and on the joiner's screen every one also carried four green blocks (about 110 pieces), none on the host's. Fix (Enemy.component): remember the definition the look was built from (builtDef) and rebuild when Enemies.get(kind) differs, in update and editorUpdate (syncLook). Test added: an Enemy of a kind not yet defined has the grunt's 4 parts, and none once SK.defineEnemy gives the kind an empty build. Version 1.1.3 (package.yaml, SK.VERSION, README, the version test, a history line). spawnerKit suite 92/92 twice on today's engine. Reproduced on one engine (an Enemy added before its kind is defined: 4 fallback parts, then 0 after the definition); a real second engine joining was not available to the agent.
Source world: 75ad3c13-cf11-43ce-9fde-42d635200a5e Contributed paths:
- spawnerKit.package/Enemy.component/init.luau
- spawnerKit.package/README.md
- spawnerKit.package/api.module/init.luau
- spawnerKit.package/package.yaml
- spawnerKit.package/spawnerKit.testSuite/init.luau
- spawnerKit.package
- spawnerKit.package/Enemy.component
- spawnerKit.package/api.module
- spawnerKit.package/spawnerKit.testSuite
9 files changed
- ChangedspawnerKit.packageFolderBeforeAfter
- ChangedspawnerKit.package/Enemy.componentFolderBeforeAfter
- ChangedspawnerKit.package/Enemy.component/init.luau13.2 KB → 13.7 KBBeforeAfter
- ChangedspawnerKit.package/README.md64.5 KB → 65.0 KBBeforeAfter
- ChangedspawnerKit.package/api.moduleFolderBeforeAfter
- ChangedspawnerKit.package/api.module/init.luau14.3 KB → 14.3 KBBeforeAfter
- ChangedspawnerKit.package/package.yaml1.8 KB → 1.8 KBBeforeAfter
- ChangedspawnerKit.package/spawnerKit.testSuiteFolderBeforeAfter
- ChangedspawnerKit.package/spawnerKit.testSuite/init.luau80.0 KB → 81.1 KBBeforeAfter
Checks
No checks have been posted.
Reviews
No reviews yet.
Conversation
No comments yet.
Sign in to comment or review.