Probe: also log server-side (client RPT unreliable here)
ActionYAProxyProbe.OnFinishProgressServer logs target.GetObject + parent house + positions to the server RPT (reliable), since this setup's client RPT never captures @YAProxy Prints. Reveals what a non-enumerated proxy (vending machine) resolves to when targeted, to design its override. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
54bdfb3a19
commit
8902e27f49
1 changed files with 32 additions and 0 deletions
|
|
@ -154,6 +154,38 @@ class ActionYAProxyProbe : ActionContinuousBase
|
|||
Print("[YAProxy][PROBE] cursorHit model (W2M) = " + h.WorldToModel(hitW).ToString(false));
|
||||
Print("[YAProxy][PROBE] cursorHit (hit-housePos) = " + (hitW - h.GetPosition()).ToString(false));
|
||||
}
|
||||
|
||||
// Server-side log (client RPT is unreliable in this setup). target.GetObject
|
||||
// / GetParent are available server-side without custom sync; this tells us
|
||||
// what the vending machine resolves to when targeted.
|
||||
override void OnFinishProgressServer(ActionData action_data)
|
||||
{
|
||||
ActionTarget t = action_data.m_Target;
|
||||
if (!t)
|
||||
return;
|
||||
|
||||
Object obj = t.GetObject();
|
||||
Object par = t.GetParent();
|
||||
|
||||
Print("[YAProxy][PROBE-SRV] ===== server probe =====");
|
||||
if (par)
|
||||
Print("[YAProxy][PROBE-SRV] parent (house) = " + par.GetType() + " worldPos = " + par.GetWorldPosition().ToString(false));
|
||||
else
|
||||
Print("[YAProxy][PROBE-SRV] parent = null");
|
||||
|
||||
if (obj)
|
||||
{
|
||||
Print("[YAProxy][PROBE-SRV] target.GetObject = " + obj.GetType());
|
||||
Print("[YAProxy][PROBE-SRV] obj.GetPosition (local) = " + obj.GetPosition().ToString(false));
|
||||
Print("[YAProxy][PROBE-SRV] obj.GetWorldPosition = " + obj.GetWorldPosition().ToString(false));
|
||||
if (par)
|
||||
Print("[YAProxy][PROBE-SRV] obj relative to house = " + (obj.GetWorldPosition() - par.GetWorldPosition()).ToString(false));
|
||||
}
|
||||
else
|
||||
{
|
||||
Print("[YAProxy][PROBE-SRV] target.GetObject = null");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// --- registration (debug only) ---
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue