Log inGet started
World

Save Point

Branchmain
Branchesmain
Commit8937fc8d08

README.md

courtyardBake

Bakes the night courtyard's buildings offline into static meshes, so the scene build only places finished assets: a scene build may not cook a procGraph, and live Generators would cook on every client.

Each building in BUILDINGS (footprint, tiers, seed, window density; residential, signChance 0) is cooked once with CitySwinger's BuildingGen (systems.BuildingGen.Building) over outside.CourtyardHudson. Every instanced kit piece is transformed into place and merged into one mesh per building per material under outside/courtyardMeshes/. The building's window slots go beside the mesh list in outside.courtyardBuildings, and outside.nightCourtyard reads that file to place the meshes and glaze each window with a FakeInteriors room.

Run it in edit mode from an execute or a tool, never from a build: require("outside.courtyardBake").bake() bakes every building, and bake({ "court_west" }) bakes only the named ones. Then touch the comment above the nightCourtyard call in the scene's build.luau so the scene's meshes are made again.