DPB1Class · Navigation

ExilePather

Query routes and path distances in the current area. Route calculation and issuing movement commands are separate operations.

Namespace: DreamPoeBot.Loki.Bot.Pathfinding

public static class ExilePather
Reference: DPB1 0.3.29.56Compare the DPB2 reference → Check signatures and usage notes separately; a matching type is not a compatibility guarantee.

Use this API

Class usage example: Measure the route to a transition →

Members and overloads

43 declared here

OnExilePatherReload

EventLink ↗
public static ExilePather.ExilePatherReloadEvent ExilePather.OnExilePatherReload

Raised for on exile pather reload. Subscribe with the callback type shown in the signature.

Event handler type: staticNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

OnObstacleUpdate

EventLink ↗
public static ExilePather.ObstacleUpdateEvent ExilePather.OnObstacleUpdate

Raised for on obstacle update. Subscribe with the callback type shown in the signature.

Event handler type: staticNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

IsReady

FieldLink ↗
public static bool ExilePather.IsReady

Whether this exile pather is ready.

Value type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

JumpableTgt

FieldLink ↗
public static List<string> ExilePather.JumpableTgt

Gets or sets the jumpable tgt collection. Its element types are linked below.

Value type: List<string>No current DPB page is linked for this built-in, external, generic or compatibility-only type.

CanObjectSee

MethodLink ↗
public static bool ExilePather.CanObjectSee(Vector2i start, Vector2i end, bool dontLeaveFrame = false, bool shouldUseRangedMap = false)

Checks whether it can object see using the supplied arguments.

Return type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

start

Specifies start.

end

Specifies end.

dontLeaveFrame
Parameter type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies dont leave frame. Optional; the default is shown in the signature.

shouldUseRangedMap
Parameter type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies should use ranged map. Optional; the default is shown in the signature.

Returns: A Boolean result. The member description explains the condition being checked.

CanObjectSee

MethodLink ↗
public static bool ExilePather.CanObjectSee(NetworkObject obj, Vector2i position, out Vector2i hitPoint, bool dontLeaveFrame = false, bool shouldUseRangedMap = false)

Checks whether it can object see using the supplied arguments.

Return type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

obj
Parameter type: NetworkObject

Specifies obj.

position

Specifies position.

hitPoint

Receives hit point.

dontLeaveFrame
Parameter type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies dont leave frame. Optional; the default is shown in the signature.

shouldUseRangedMap
Parameter type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies should use ranged map. Optional; the default is shown in the signature.

Returns: A Boolean result. The member description explains the condition being checked.

CanObjectSee

MethodLink ↗
public static bool ExilePather.CanObjectSee(NetworkObject obj, Vector2i position, bool dontLeaveFrame = false, bool shouldUseRangedMap = false)

Checks whether it can object see using the supplied arguments.

Return type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

obj
Parameter type: NetworkObject

Specifies obj.

position

Specifies position.

dontLeaveFrame
Parameter type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies dont leave frame. Optional; the default is shown in the signature.

shouldUseRangedMap
Parameter type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies should use ranged map. Optional; the default is shown in the signature.

Returns: A Boolean result. The member description explains the condition being checked.

CanObjectSee

MethodLink ↗
public static bool ExilePather.CanObjectSee(NetworkObject obj, NetworkObject other, out Vector2i hitPoint, bool dontLeaveFrame = false, bool shouldUseRangedMap = false)

Checks whether it can object see using the supplied arguments.

Return type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

obj
Parameter type: NetworkObject

Specifies obj.

other
Parameter type: NetworkObject

Specifies other.

hitPoint

Receives hit point.

dontLeaveFrame
Parameter type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies dont leave frame. Optional; the default is shown in the signature.

shouldUseRangedMap
Parameter type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies should use ranged map. Optional; the default is shown in the signature.

Returns: A Boolean result. The member description explains the condition being checked.

CanObjectSee

MethodLink ↗
public static bool ExilePather.CanObjectSee(NetworkObject obj, NetworkObject other, bool dontLeaveFrame = false, bool shouldUseRangedMap = false)

Checks whether it can object see using the supplied arguments.

Return type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

obj
Parameter type: NetworkObject

Specifies obj.

other
Parameter type: NetworkObject

Specifies other.

dontLeaveFrame
Parameter type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies dont leave frame. Optional; the default is shown in the signature.

shouldUseRangedMap
Parameter type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies should use ranged map. Optional; the default is shown in the signature.

Returns: A Boolean result. The member description explains the condition being checked.

ConvertToRadians

MethodLink ↗
public static double ExilePather.ConvertToRadians(double angle)

Converts to radians using the supplied arguments.

Return type: doubleNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

angle
Parameter type: doubleNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies angle.

Returns: The double result.

EditTriggerableBlockages

MethodLink ↗
public static void ExilePather.EditTriggerableBlockages(byte[] navData, Vector2i boundsMin, Vector2i boundsMax, NavDataOperation operation)

Calls EditTriggerableBlockages on ExilePather with navData, boundsMin, boundsMax, operation. This overload has no return value.

Return type: voidNo return value.

Parameters

navData
Parameter type: byte[]No current DPB page is linked for this built-in, external, generic or compatibility-only type.

Row-major clearance values 0..5, two cells per byte: even global X in the low nibble, odd X in the high nibble. Stride=(boundsMax.X+1)/2-boundsMin.X/2. Only the first stride*height bytes are used; outside padding and trailing layers are ignored. A separate input is never modified or retained. Aliased input uses pre-edit values.

boundsMin

Inclusive minimum map-grid coordinates, not world positions.

boundsMax

Exclusive maximum map-grid coordinates; empty bounds change no cells.

operation
Parameter type: NavDataOperation

Saturating Add/Subtract delta, or absolute Replace including zeros.

Requires initialized navigation. The caller owns area selection, data and timing. Opened component NavData may be absolute, not a delta. Add/Subtract accumulate and are not necessarily inverses after saturation. Do not mutate input concurrently. Invalid inputs are rejected before writes or notification. Ground only: no ranged/flying or game terrain changes. No object override is registered: later updates/Reload may replace these values. On refresh failure, edits remain pending: retry UpdateObstacles, NOT the delta operation. Added in public DPB1 0.3.29.54. Requires initialized navigation and caller-owned data for the current area. Changes ground navigation only, not game terrain. Minimum bounds are inclusive, maximum bounds exclusive. Add/Subtract accumulate with saturation; Replace is absolute, including zero. Later navigation updates can replace these edits. If tile refresh fails, retry UpdateObstacles rather than reapplying a delta.

EditTriggerableBlockages

MethodLink ↗
public static void ExilePather.EditTriggerableBlockages(Func<NetworkObject, bool> shouldBlock, List<NetworkObject> obj)

Edit the walk map by adding or removing object navigation data. Applies changed tiles in an initialized area without discarding temporary obstacles; otherwise initializes through Reload.

Return type: voidNo return value.

Parameters

shouldBlock
Parameter type: Func<NetworkObject, bool>

A function that evaluate if a object Navmap has to be blocked in the current map.

obj
Parameter type: List<NetworkObject>

List of NetworkObjects to analize.

Public DPB1 0.3.29.54 refreshes changed navigation tiles without discarding temporary obstacles when navigation is already initialized. Otherwise it initializes through Reload. This edits navigation used by path queries, not the game terrain, and does not move the character.

FastWalkablePositionFor

MethodLink ↗
public static Vector2i ExilePather.FastWalkablePositionFor(Vector2i pos, int range = 30, bool cache = true)

Calls FastWalkablePositionFor on ExilePather with pos, range, cache and returns Vector2i. Open the return contract below before using the result.

Return type: Vector2i
Explore Vector2i → members & methods

A two-dimensional integer position. Used by grid-position and pathfinding APIs; screen-position APIs may expect a different coordinate type.

Parameters

pos

Specifies pos.

range
Parameter type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies range. Optional; the default is shown in the signature.

cache
Parameter type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies cache. Optional; the default is shown in the signature.

Returns: The Vector2i result.

FastWalkablePositionFor

MethodLink ↗
public static Vector2i ExilePather.FastWalkablePositionFor(NetworkObject obj, int range = 30, bool cache = true)

Calls FastWalkablePositionFor on ExilePather with obj, range, cache and returns Vector2i. Open the return contract below before using the result.

Return type: Vector2i
Explore Vector2i → members & methods

A two-dimensional integer position. Used by grid-position and pathfinding APIs; screen-position APIs may expect a different coordinate type.

Parameters

obj
Parameter type: NetworkObject

Specifies obj.

range
Parameter type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies range. Optional; the default is shown in the signature.

cache
Parameter type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies cache. Optional; the default is shown in the signature.

Returns: The Vector2i result.

FindPartialPath

MethodLink ↗
public static bool ExilePather.FindPartialPath(ref PathfindingCommand command, bool dontLeaveFrame = false)

Calls FindPartialPath on ExilePather with command, dontLeaveFrame and returns bool. Open the return contract below before using the result.

Return type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

command
Parameter type: PathfindingCommand

Supplies and may update command.

dontLeaveFrame
Parameter type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Not read by this overload in the reviewed source. Do not rely on this argument to change its behavior.

Returns: A Boolean result. The member description explains the condition being checked.

FindPath

MethodLink ↗
public static bool ExilePather.FindPath(ref PathfindingCommand command, bool dontLeaveFrame = false)

Calls FindPath on ExilePather with command, dontLeaveFrame and returns bool. Open the return contract below before using the result.

Return type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

command
Parameter type: PathfindingCommand

Supplies and may update command.

dontLeaveFrame
Parameter type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Not read by this overload in the reviewed source. Do not rely on this argument to change its behavior.

Returns: A Boolean result. The member description explains the condition being checked.

FindPathWithObstacle

MethodLink ↗
public static bool ExilePather.FindPathWithObstacle(ref PathfindingCommand command, List<ExilePather.Obstacle> obstacles, bool dontLeaveFrame = false)

Calls FindPathWithObstacle on ExilePather with command, obstacles, dontLeaveFrame and returns bool. Open the return contract below before using the result.

Return type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

command
Parameter type: PathfindingCommand

Supplies and may update command.

obstacles
Parameter type: List<Obstacle>No current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies obstacles.

dontLeaveFrame
Parameter type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Not read by this overload in the reviewed source. Do not rely on this argument to change its behavior.

Returns: A Boolean result. The member description explains the condition being checked.

GetPointOnCircle

MethodLink ↗
public static Vector2i ExilePather.GetPointOnCircle(Vector2i center, double radian, double radius)

Calls GetPointOnCircle on ExilePather with center, radian, radius and returns Vector2i. Open the return contract below before using the result.

Return type: Vector2i
Explore Vector2i → members & methods

A two-dimensional integer position. Used by grid-position and pathfinding APIs; screen-position APIs may expect a different coordinate type.

Parameters

center

Specifies center.

radian
Parameter type: doubleNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies radian.

radius
Parameter type: doubleNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies radius.

Returns: The Vector2i result.

GetPointsOnSegment

MethodLink ↗Deprecated
public static List<Vector2i> ExilePather.GetPointsOnSegment(Vector2i start, Vector2i end, bool dontLeaveFrame)

Calls GetPointsOnSegment on ExilePather with start, end, dontLeaveFrame and returns List<Vector2i>. Open the return contract below before using the result.

Return type: List<Vector2i>
Explore Vector2i → members & methods

A two-dimensional integer position. Used by grid-position and pathfinding APIs; screen-position APIs may expect a different coordinate type.

Parameters

start

Specifies start.

end

Specifies end.

dontLeaveFrame
Parameter type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Not read by this overload in the reviewed source. Do not rely on this argument to change its behavior.

Returns: The List<Vector2i> result.

IsWalkable

MethodLink ↗
public static bool ExilePather.IsWalkable(Vector2i arg)

Checks whether walkable using the supplied arguments.

Return type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

arg

Specifies arg.

Returns: A Boolean result. The member description explains the condition being checked.

IsWalkable

MethodLink ↗
public static bool ExilePather.IsWalkable(int x, int y)

Checks whether walkable using the supplied arguments.

Return type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

x
Parameter type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies x.

y
Parameter type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies y.

Returns: A Boolean result. The member description explains the condition being checked.

PathDistance

MethodLink ↗
public static float ExilePather.PathDistance(Vector2i start, Vector2i end, bool avoidWallHugging = false, bool dontLeaveFrame = false)

Calls PathDistance on ExilePather with start, end, avoidWallHugging, dontLeaveFrame and returns float. Open the return contract below before using the result.

Return type: floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

start

Specifies start.

end

Specifies end.

avoidWallHugging
Parameter type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Not read by this overload in the reviewed source. Do not rely on this argument to change its behavior.

dontLeaveFrame
Parameter type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Not read by this overload in the reviewed source. Do not rely on this argument to change its behavior.

Returns: The float result.

PathExistsBetween

MethodLink ↗
public static bool ExilePather.PathExistsBetween(Vector2i start, Vector2i end, bool dontLeaveFrame = false)

Returns true if a path exists between start and end using the current navmesh.

Return type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

start

Specifies start.

end

Specifies end.

dontLeaveFrame
Parameter type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Not read by this overload in the reviewed source. Do not rely on this argument to change its behavior.

Returns: A Boolean result. The member description explains the condition being checked.

Raycast

MethodLink ↗
public static bool ExilePather.Raycast(Vector2i start, Vector2i end, out Vector2i hitPoint, bool dontLeaveFrame = false, bool shouldUseRangedMap = false)

Project a ray from start to end, if the ray encounter a non walkable location or an obstacle, it return false and out the location of the obstacle as hitpoint. This function do not consider dynamic objects (object collected with Objectmanager, like doors, chests, monsters etc). PLEASE NOTE: this function also Broadcast a message with id "Raycast_Result" and has 4 parms as input: Vector2i start, Vector2i end, bool Returnvalue, Vector2i hitPoint.

Return type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

start

The start position of the ray.

end

The end Position of the ray.

hitPoint

If the function return false, hitpoint is set to the first non walkable position.

dontLeaveFrame
Parameter type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Not read by this overload in the reviewed source. Do not rely on this argument to change its behavior.

shouldUseRangedMap
Parameter type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Should the function evaluate the Ranged map instead of the Walk map? use this for spells or arrows.

Returns: Return true if the function do not encounter any obstacle, or false if a obstacle is encountered.

Raycast

MethodLink ↗
public static bool ExilePather.Raycast(Vector2i start, Vector2i end, List<NetworkObject> objectsToConsider, out Vector2i hitPoint, out int objectId, bool dontLeaveFrame = false, bool shouldUseRangedMap = false)

Project a ray from start to end, if the ray encounter a non walkable location or an obstacle, it return false and out the location of the obstacle as hitpoint, and Object Id in case the obstacle is an NetworkObject. This function account for a given list of NetworkObjects to include in the calculation. This function account for the interactsize of the networkobject, so the hitboz is considered.

Return type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

start

The start position of the ray.

end

The end Position of the ray.

objectsToConsider
Parameter type: List<NetworkObject>

A List of NetworkObject to include in the calculation

hitPoint

If the function return false, hitpoint is set to the first non walkable position.

objectId
Parameter type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

The Id of the eventual NetworkObject hit by the ray.

dontLeaveFrame
Parameter type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Not read by this overload in the reviewed source. Do not rely on this argument to change its behavior.

shouldUseRangedMap
Parameter type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Should the function evaluate the Ranged map instead of the Walk map? use this for spells or arrows.

Returns: Return true if the function do not encounter any obstacle, or false if a obstacle is encountered.

RaycastPf

MethodLink ↗
public static bool ExilePather.RaycastPf(Vector2i start, Vector2i end, out Vector2i hitPoint)

Raycast directly via navmesh wrapper. Returns true if no blocking obstacle. Only works for ground level mesh.

Return type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

start

Start point of the ray

end

End point of the ray

hitPoint

Hit point in case obstacle was encountered. Is DreamPoeBot.Common.Vector2i.Zero by default.

Returns: True if no obstacle was encountered.

Reload

MethodLink ↗
public static void ExilePather.Reload(bool force = false)

Calls Reload on ExilePather with force. This overload has no return value.

Return type: voidNo return value.

Parameters

force
Parameter type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies force. Optional; the default is shown in the signature.

Reload2

MethodLink ↗
public static void ExilePather.Reload2(bool force = false)

Here for test purpose, actually mimic ReloadAsync.

Return type: voidNo return value.

Parameters

force
Parameter type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies force. Optional; the default is shown in the signature.

Save

MethodLink ↗
public static void ExilePather.Save(string filePath)

Calls Save on ExilePather with filePath. This overload has no return value.

Return type: voidNo return value.

Parameters

filePath
Parameter type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Not read by this overload in the reviewed source. Do not rely on this argument to change its behavior.

SignalObstacleUpdate

MethodLink ↗
public static void ExilePather.SignalObstacleUpdate()

Calls SignalObstacleUpdate on ExilePather without arguments. This overload has no return value.

Return type: voidNo return value.

Class usage examples

These examples demonstrate the class, not every member listed above. Each example links the declarations it teaches.

Imports used by these examples
using System;
using System.Linq;
using DreamPoeBot.Loki.Game;
using DreamPoeBot.Loki.Game.Objects;
using DreamPoeBot.Loki.Bot;
using DreamPoeBot.Loki.Bot.Pathfinding;
using DreamPoeBot.Loki.Common;

Measure the route to a transition

if (!LokiPoe.IsInGame || LokiPoe.Me == null)
    return;

ExilePather.Reload();
if (!ExilePather.IsReady)
    return;

var target = LokiPoe.ObjectManager.GetObjectsByType<AreaTransition>()
    .FirstOrDefault(obj => obj.IsTargetable);
if (target != null)
{
    var distance = ExilePather.PathDistance(LokiPoe.MyPosition, target.Position);
}

Run on the bot thread and throttle repeated checks. Reload prepares the current area's navigation data. A measurement is not a movement command or an arrival confirmation; recheck the target before acting.

Guides using this class

See how these APIs fit together. Labs include complete source; the FollowBot walkthrough teaches you to build your own bot from selected fragments and checkpoints.

DPB1 0.3.29.56 · Reference reviewed 2026-10-30. Descriptions use source summaries where available, otherwise concise signature-based descriptions. Examples illustrate usage; they are not a live-game test.