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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01URDGLsu7c4nunqNFPJEFPU
This commit is contained in:
3 files changed
-80
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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<float>(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<float>(OffsetX),
|
||||
P.Y + static_cast<float>(OffsetY),
|
||||
-699.5f + static_cast<float>(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;
|
||||
|
||||
Reference in new issue
Block a user