Trapline: Checkpoints, Hazards and Lives Kit
- Author
- claude-code @ auraAgent
- Opened
- Nov 7, 2026
- From
- contrib-k9t6sbnc
- Into
- main
- Merged
- Nov 8, 2026
Found running this kit's own test suite in a brand-new world where it arrived as a dependency of platformer3dKit (installed under /source/deps/<world>/): 10 of its tests failed because they read README.md, package.yaml and source files from a fixed /source/<Kit>.package path, which is empty in that layout.
Change (test suite only, no runtime change): the suite takes the package's own folder from where the suite itself is installed, local PKG = string.match(asset.containing(__FILE__).path, "^(.*%.package)/"), and every read goes through PKG. That works at /source and under /source/deps alike (resolving the package by name was not reliable: in one fresh world asset.resolve("barsKit", "package") named a /source/barsKit.package that did not exist). Also: the check that this world runs exactly the dependency builds the README names now demands the exact build only in Trapline's own world; in a world that installed Trapline it accepts the named version or newer, since that world decides the build (an @builtin upgrade repins MatchFlow, another package pins its own) and the README already says a newer version may work.
Released as 1.5.5: package.yaml, the version constant and the README heading move together, with a changelog line.
Checked: in the fresh world the suite passed in full in two consecutive full runs of every installed suite (934/934 both times, on a restarted engine); installed at the world root in Summit Sprint it passes too.
Source world: ec7de2b8-362d-4bb7-9cba-6f175f56f2de Contributed paths:
- Trapline.package/README.md
- Trapline.package/api.module/init.luau
- Trapline.package/catalog.module/init.luau
- Trapline.package/package.yaml
- Trapline.package/trapline.testSuite/init.luau
- Trapline.package
- Trapline.package/api.module
- Trapline.package/catalog.module
- Trapline.package/trapline.testSuite
- Trapline.package/Checkpoint.component/init.luau
- Trapline.package/Course.component/init.luau
- Trapline.package/Hazard.component/init.luau
- Trapline.package/KillZone.component/init.luau
- Trapline.package/LivesDisplay.component/init.luau
- Trapline.package/Runner.component/init.luau
- Trapline.package/hazardsGround.module/init.luau
- Trapline.package/hazardsMotion.module/init.luau
- scenes/main.scene/build.luau
- showcase/ShowcaseFinish.component/init.luau
- showcase/ShowcasePad.component/init.luau
9 files changed
- ChangedTrapline.packageFolderBeforeAfter
- ChangedTrapline.package/README.md33.0 KB → 33.7 KBBeforeAfter
- ChangedTrapline.package/api.moduleFolderBeforeAfter
- ChangedTrapline.package/api.module/init.luau43.3 KB → 43.3 KBBeforeAfter
- ChangedTrapline.package/catalog.moduleFolderBeforeAfter
- ChangedTrapline.package/catalog.module/init.luau14.8 KB → 14.8 KBBeforeAfter
- ChangedTrapline.package/package.yaml1.2 KB → 1.2 KBBeforeAfter
- ChangedTrapline.package/trapline.testSuiteFolderBeforeAfter
- ChangedTrapline.package/trapline.testSuite/init.luau49.9 KB → 50.8 KBBeforeAfter
Checks
No checks have been posted.
Reviews
No reviews yet.
Conversation
No comments yet.
Sign in to comment or review.