For debug Navigation network exists only two command from the box:
RememberSpot - for remember current destination.
ShowPath - for show nearest NavigationPoint which lead you to remember spot.
RememberSpot Remember your current location (see ShowPath below).
ShowPath Show the recommended path back to location remembered by RememberSpot.
exec function ShowPath()
{
//find next path to remembered spot
local Actor node;
if (!bAdmin && Level.NetMode == NM_DedicatedServer)
return;
node = FindPathTo(Destination);
if (node != None)
{
log("found path");
Spawn(class 'WayBeacon', self, '', node.location);
}
else
log("didn't find path");
}
If we found the path, then we spawn marker and write to log "found path".
But if we not found path, by any of thousand reasons, we just get "didn't find path" message which absolutely undescriptive what really happen.
We can fail by:
No NavigationPointList on LevelInfo.
No ReachSpecs on Level.
No find visible paths from current location into navigation network.
No find visible paths from goal location into navigation network.
Not able travel actor inside navigation network.
Thousand of other reasons...
But in all cases we get just "didn't find path" which not enough.
So I suggest provide clear message which describe on which place path search failed.
Currently this is look like magic: you do some actions and prey its solve broken navigation network usage.
For debug Navigation network exists only two command from the box:
RememberSpot
- for remember current destination.ShowPath
- for show nearestNavigationPoint
which lead you to remember spot.Problem consist in
ShowPath
output. https://github.com/Slipyx/UT99/blob/f2ebd703845075a2d667e8e3f2f71a5e7f187610/Engine/PlayerPawn.uc#L3168If we found the path, then we spawn marker and write to log "found path". But if we not found path, by any of thousand reasons, we just get "didn't find path" message which absolutely undescriptive what really happen. We can fail by:
But in all cases we get just "didn't find path" which not enough. So I suggest provide clear message which describe on which place path search failed.
Currently this is look like magic: you do some actions and prey its solve broken navigation network usage.