From 6fd8a88986e39de507b6952ef9030d3bb5cd0278 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 28 Sep 2026 14:10:36 +0000 Subject: [PATCH] chore(logs): drop hard-coded temporary probe logs Remove three one-off investigation aids pinned to one seed/coordinate: - [VoxelForgeExplore][TemporaryShaftConnectors] in the shaft connector op's Eval (a thread_local flag + coordinate test in the density path); - [VoxelForgeExplore][TemporaryVerticalLanding] in the vertical-shaft landing search (seed 14, bottom Z -736 only); - [VoxelForgeExplore][TemporaryShaftProbe] in the explore commandlet walk mode (seed 14 VerticalShafts only; its own comment said it would be removed once the seam was fixed). No tool, test or script matches these tags (Tools/*.ps1 only parse [VoxelForgeExplore][OwnerAssets] under that prefix). The probe's density reads were log-only, so generated geometry and reports are unchanged. All cvar-gated diagnostics and test result lines are kept. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01URDGLsu7c4nunqNFPJEFPU --- .../Private/VoxelCaveMorphology.cpp | 8 --- .../Private/VoxelDensityOpStack.cpp | 21 -------- .../Private/VoxelForgeExploreCommandlet.cpp | 51 ------------------- 3 files changed, 80 deletions(-) diff --git a/Source/VoxelForge/Private/VoxelCaveMorphology.cpp b/Source/VoxelForge/Private/VoxelCaveMorphology.cpp index baec027..04f4f63 100644 --- a/Source/VoxelForge/Private/VoxelCaveMorphology.cpp +++ b/Source/VoxelForge/Private/VoxelCaveMorphology.cpp @@ -5865,14 +5865,6 @@ namespace SampleShaft, OutPoint)) { - if (Seed == 14 && FMath::IsNearlyEqual(StrateBottomZ, -736.0f)) - { - UE_LOG(LogTemp, Display, - TEXT("[VoxelForgeExplore][TemporaryVerticalLanding] axis=(%.3f,%.3f) " - "safeRadius=%.3f candidate=(%.3f,%.3f,%.3f)"), - BestAxisX, BestAxisY, BestSafeRadius, - CandidateFeet.X, CandidateFeet.Y, CandidateFeet.Z); - } return true; } } diff --git a/Source/VoxelForge/Private/VoxelDensityOpStack.cpp b/Source/VoxelForge/Private/VoxelDensityOpStack.cpp index bf4be9d..d4bc33b 100644 --- a/Source/VoxelForge/Private/VoxelDensityOpStack.cpp +++ b/Source/VoxelForge/Private/VoxelDensityOpStack.cpp @@ -2806,27 +2806,6 @@ namespace { if (Field == nullptr) return; const FShaftFieldSource::FCells& Cells = Field->GetCellsAt(WorldX, WorldY); - static thread_local bool bLoggedTemporaryShaftConnectors = false; - if (!bLoggedTemporaryShaftConnectors - && FMath::IsNearlyEqual(WorldZ, -700.0f) - && WorldX > -180.0f && WorldX < -170.0f - && WorldY > -48.0f && WorldY < -38.0f) - { - bLoggedTemporaryShaftConnectors = true; - UE_LOG(LogTemp, Display, - TEXT("[VoxelForgeExplore][TemporaryShaftConnectors] query=(%.3f,%.3f,%.3f) count=%d"), - WorldX, WorldY, WorldZ, Cells.Conns.Num()); - for (const FShaftFieldSource::FConn& DebugConn : Cells.Conns) - { - UE_LOG(LogTemp, Display, - TEXT("[VoxelForgeExplore][TemporaryShaftConnectors] A=(%.3f,%.3f,%.3f) " - "B=(%.3f,%.3f,%.3f) radius=%.3f floor=%.3f walk=%d"), - DebugConn.A.X, DebugConn.A.Y, DebugConn.A.Z, - DebugConn.B.X, DebugConn.B.Y, DebugConn.B.Z, - DebugConn.Radius, DebugConn.FloorZ, - DebugConn.bWalkableFloor ? 1 : 0); - } - } for (const FShaftFieldSource::FConn& Conn : Cells.Conns) { if (!Conn.bWalkableFloor) continue; diff --git a/Source/VoxelForgeEditor/Private/VoxelForgeExploreCommandlet.cpp b/Source/VoxelForgeEditor/Private/VoxelForgeExploreCommandlet.cpp index 9739dbc..9b9bd41 100644 --- a/Source/VoxelForgeEditor/Private/VoxelForgeExploreCommandlet.cpp +++ b/Source/VoxelForgeEditor/Private/VoxelForgeExploreCommandlet.cpp @@ -3610,57 +3610,6 @@ bool RunWalk( OutOutput.bHasArrival = true; OutOutput.bHasDeparture = true; - // Temporary seed-14 probe while diagnosing the fitted VerticalShafts junction. This is - // intentionally narrow and will be removed after the floor/tree seam is corrected. - if (Arguments.Archetype == ECaveGeneratorType::VerticalShafts && Arguments.Seed == 14) - { - const FVector ProbeA = OutOutput.ArrivalVoxels; - const FVector ProbeB(-100.8f, -26.9f, ProbeA.Z); - for (int32 Index = 0; Index <= 10; ++Index) - { - const float T = static_cast(Index) / 10.0f; - const FVector P = FMath::Lerp(ProbeA, ProbeB, T); - const float Dm704 = World.Generator->GetDensityAt(P.X, P.Y, -704.0f); - const float Dm702 = World.Generator->GetDensityAt(P.X, P.Y, -702.0f); - const float Dm7005 = World.Generator->GetDensityAt(P.X, P.Y, -700.5f); - const float Dm700 = World.Generator->GetDensityAt(P.X, P.Y, -700.0f); - const float Dm6995 = World.Generator->GetDensityAt(P.X, P.Y, -699.5f); - const float Dm697 = World.Generator->GetDensityAt(P.X, P.Y, -697.0f); - float MinBody = FLT_MAX; - int32 NumSolidBody = 0; - int32 SolidOffsetX = 0; - int32 SolidOffsetY = 0; - int32 SolidBodyRow = -1; - for (int32 OffsetY = -1; OffsetY <= 1; ++OffsetY) - { - for (int32 OffsetX = -1; OffsetX <= 1; ++OffsetX) - { - for (int32 BodyRow = 0; BodyRow < 8; ++BodyRow) - { - const float BodyDensity = World.Generator->GetDensityAt( - P.X + static_cast(OffsetX), - P.Y + static_cast(OffsetY), - -699.5f + static_cast(BodyRow)); - if (BodyDensity < MinBody) - { - MinBody = BodyDensity; - SolidOffsetX = OffsetX; - SolidOffsetY = OffsetY; - SolidBodyRow = BodyRow; - } - NumSolidBody += BodyDensity <= 0.0f ? 1 : 0; - } - } - } - UE_LOG(LogTemp, Display, - TEXT("[VoxelForgeExplore][TemporaryShaftProbe] t=%.2f xy=(%.2f,%.2f) " - "d[-704,-702,-700.5,-700,-699.5,-697]=[%.3f,%.3f,%.3f,%.3f,%.3f,%.3f] " - "bodyMin=%.3f bodySolid=%d/72 firstMinOffset=(%d,%d) row=%d"), - T, P.X, P.Y, Dm704, Dm702, Dm7005, Dm700, Dm6995, Dm697, - MinBody, NumSolidBody, SolidOffsetX, SolidOffsetY, SolidBodyRow); - } - } - FVoxelStrateMeasureSettings Settings; Settings.SampleStep = 1; Settings.MaxCells = Arguments.MaxWalkCells;