Daikoku PA: two perimeter ramps, far side served by the median opening
Rework the PA junction to match the reference drawing: yellow = PA -> highway (entry), red = highway -> PA (exit). Entry and exit swap sides (entry now EAST, exit WEST) and both trunks hug the PA perimeter instead of running concentric spirals. The simplification: both carriageways sit at the same deck level, adjacent, so the median opening IS the far-side access path. The under-deck crossing and merge runs are deleted outright -- 8 runs collapse to 4, and the girder-soffit ceiling logic that constrained the crossing goes with them. Part count 24,210 -> 21,691. The median opening is now load-bearing rather than cosmetic (it is the only route from the far carriageway to the ramps), so it widens from 6 to 9 samples per junction. Orientation is a single flip-able constant (ORIENT) so a mirrored result is a one-line correction, not a rewrite. Measured on the built map (not asserted): - 600 entry + 600 exit ramp parts - max grade 8.00% / 8.27%, under the 9% limit - 0 collisions with piers/masts/girders (558 structural parts) - segment continuity <= 2.5 studs; trunk->merge handoff <= 1.7 studs - merge lands at dY 0.0 (exact deck level), 33 studs lateral - median open at junctions: 0 parts vs. control ~7 on plain mainline Two traps worth recording, both caught by controls: 1. Studio's require() cache silently rebuilt STALE code. The first "passing" build reported 17,575 parts and zero ramps, and the map contained PAOffRamp/PAOnRamp parts whose names exist nowhere in the current source. Every measurement taken before this was describing an old map. Added tools/rebuild_fresh.luau, which clones the module to bust the cache; use it rather than requiring MapBuilder directly. 2. A reported "median never opens" bug was a bad probe, not a defect. It counted `Barrier` (the outer edge parapet, which must NEVER open) instead of `Median_<i>`. Re-run against the right name: control 7, junctions 0. Both were only visible because the probes carry controls -- a 0-hit result with no control is vacuous. The verification harnesses are kept in tools/ with their controls built in.
This commit is contained in:
+37
-14
@@ -2,7 +2,9 @@
|
||||
-- Asserts NUMBERS the build produced, not "the build ran".
|
||||
local sss = game:GetService("ServerScriptService")
|
||||
local orig = sss:FindFirstChild("MapBuilder", true)
|
||||
if not orig then return "FAIL: MapBuilder not found" end
|
||||
if not orig then
|
||||
return "FAIL: MapBuilder not found"
|
||||
end
|
||||
|
||||
-- Freshness gate: prove we are measuring the NEW source before trusting anything.
|
||||
local fresh = {}
|
||||
@@ -54,14 +56,26 @@ for _, s in ipairs(Circuit.samples) do
|
||||
end
|
||||
end
|
||||
local girders = counts["BridgeGirder"] or 0
|
||||
line(("FIX1 bridge flag: samples=%d girders=%d piercaps=%d piercols=%d -> %s"):format(
|
||||
nBridgeSamples, girders, counts["PierCap"] or 0, counts["PierColumn"] or 0,
|
||||
(girders >= nBridgeSamples * 0.5 and girders > 0) and "PASS" or "FAIL"))
|
||||
line(
|
||||
("FIX1 bridge flag: samples=%d girders=%d piercaps=%d piercols=%d -> %s"):format(
|
||||
nBridgeSamples,
|
||||
girders,
|
||||
counts["PierCap"] or 0,
|
||||
counts["PierColumn"] or 0,
|
||||
(girders >= nBridgeSamples * 0.5 and girders > 0) and "PASS" or "FAIL"
|
||||
)
|
||||
)
|
||||
|
||||
-- FIX 2: Ginza overpasses with piers between the carriageways ----------------
|
||||
local ov, pier = counts["GinzaOverpass"] or 0, counts["OverpassPier"] or 0
|
||||
line(("FIX2 Ginza 跨道橋: overpass=%d pier=%d parapet=%d -> %s"):format(
|
||||
ov, pier, counts["OverpassParapet"] or 0, (ov > 0 and pier == ov) and "PASS" or "FAIL"))
|
||||
line(
|
||||
("FIX2 Ginza 跨道橋: overpass=%d pier=%d parapet=%d -> %s"):format(
|
||||
ov,
|
||||
pier,
|
||||
counts["OverpassParapet"] or 0,
|
||||
(ov > 0 and pier == ov) and "PASS" or "FAIL"
|
||||
)
|
||||
)
|
||||
|
||||
-- Piers must actually sit BETWEEN the carriageways (near the centreline),
|
||||
-- not off to one side -- that is the whole point of the fix.
|
||||
@@ -79,8 +93,7 @@ for _, d in ipairs(map:GetDescendants()) do
|
||||
worstPier = math.max(worstPier, best)
|
||||
end
|
||||
end
|
||||
line(("FIX2 pier centreline offset: worst=%.2f studs -> %s"):format(
|
||||
worstPier, worstPier < 6 and "PASS" or "FAIL"))
|
||||
line(("FIX2 pier centreline offset: worst=%.2f studs -> %s"):format(worstPier, worstPier < 6 and "PASS" or "FAIL"))
|
||||
|
||||
-- FIX 3: 40 km/h plates in junctions ----------------------------------------
|
||||
local n40, n50 = 0, 0
|
||||
@@ -98,8 +111,7 @@ for _, d in ipairs(map:GetDescendants()) do
|
||||
end
|
||||
end
|
||||
end
|
||||
line(("FIX3 speed plates: 40kmh=%d 50kmh=%d -> %s"):format(
|
||||
n40, n50, (n40 > 0 and n50 > 0) and "PASS" or "FAIL"))
|
||||
line(("FIX3 speed plates: 40kmh=%d 50kmh=%d -> %s"):format(n40, n50, (n40 > 0 and n50 > 0) and "PASS" or "FAIL"))
|
||||
|
||||
-- FIX 4: Shiodome 3+3 widening ----------------------------------------------
|
||||
local shioW, baseW, shioN, baseN = 0, 0, 0, 0
|
||||
@@ -117,8 +129,13 @@ for i, s in ipairs(Circuit.samples) do
|
||||
end
|
||||
shioW = shioN > 0 and shioW / shioN or 0
|
||||
baseW = baseN > 0 and baseW / baseN or 0
|
||||
line(("FIX4 deck width: Shiodome avg=%.1f Kasumigaseki avg=%.1f -> %s"):format(
|
||||
shioW, baseW, (shioW > baseW + 8) and "PASS" or "FAIL"))
|
||||
line(
|
||||
("FIX4 deck width: Shiodome avg=%.1f Kasumigaseki avg=%.1f -> %s"):format(
|
||||
shioW,
|
||||
baseW,
|
||||
(shioW > baseW + 8) and "PASS" or "FAIL"
|
||||
)
|
||||
)
|
||||
|
||||
-- Lane boundary count: 3 lanes per side needs 2 boundary lines per side.
|
||||
local function boundariesNear(zone)
|
||||
@@ -156,8 +173,14 @@ for i = 1, n do
|
||||
holes += 1
|
||||
end
|
||||
end
|
||||
line(("REGRESSION decks=%d holes=%d maxSeamLip=%.3f -> %s"):format(
|
||||
n, holes, maxLip, (holes == 0 and maxLip <= 0.30) and "PASS" or "FAIL"))
|
||||
line(
|
||||
("REGRESSION decks=%d holes=%d maxSeamLip=%.3f -> %s"):format(
|
||||
n,
|
||||
holes,
|
||||
maxLip,
|
||||
(holes == 0 and maxLip <= 0.30) and "PASS" or "FAIL"
|
||||
)
|
||||
)
|
||||
|
||||
map:Destroy()
|
||||
clone:Destroy()
|
||||
|
||||
Reference in New Issue
Block a user