Parameter type:stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Specifies description. Optional; the default is shown in the signature.
Returns: Reference to obstacle or uint.MaxValue on error
Caller is supposed to call DreamPoeBot.Loki.Bot.Pathfinding.ExilePather.UpdateObstacles to refresh the tilecache after Corners should be opposing pair, i.e. BottomRight + TopLeft or BottomLeft + TopRight, other way also works (i.e. min and max can be swapped).
public static void ExilePather.BlockTriggerableBlockages(ref byte[] data, int bytesPerRow, Func<NetworkObject, bool> shouldBlock, List<NetworkObject> obj)
Applies a blockage's observed closed clearance (predicate true) or restores its open clearance (predicate false). Does not open or close the object in the game or turn surrounding walls into walkable cells. Empty bounds contain no cells and are ignored without interrupting the remaining objects.
Return type:voidNo return value.
Parameters
data
Parameter type:byte[]No current DPB page is linked for this built-in, external, generic or compatibility-only type.
Walkability data buffer to modify.
bytesPerRow
Parameter type:intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
public static bool ExilePather.CanObjectSee(Vector2i start, Vector2i end, out Vector2i hitPoint, bool dontLeaveFrame = false, bool shouldUseRangedMap = false)
Convenience wrapper over DreamPoeBot.Loki.Bot.Pathfinding.ExilePather.Raycast(DreamPoeBot.Common.Vector2i,DreamPoeBot.Common.Vector2i,DreamPoeBot.Common.Vector2i@,System.Boolean,System.Boolean). Returns true if the line between start and end is unobstructed.
Return type:boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Applies caller-supplied packed NavData to the active ground terrain, refreshes affected tiles once, and sends OnObstacleUpdate after success. No NetworkObject or saved object identity is required. Does not modify the game's terrain or change an object's state.
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 packed clearance values (0..5), two cells per byte: even global X in the low nibble, odd global X in the high nibble. Row stride is ceil(boundsMax.X / 2) - floor(boundsMin.X / 2). At least stride * height bytes are required; trailing bytes (such as the flying layer) are ignored. Padding nibbles outside the bounds are ignored. A separate source array is never modified or retained. If source and destination are the same array, source values are copied before terrain edits.
Add/Subtract a delta with saturation at 5/0, or Replace with absolute values.
Requires initialized navigation. The caller owns the data, area selection and timing; no provenance or object-state inference is performed. Opened component NavData may contain absolute values, not a delta. Add/Subtract accumulate on repeated calls and are not necessarily inverses after saturation. Replace writes zero too: zero is not a transparent mask. Unaddressed cells and temporary obstacles are preserved. No persistent object override is registered: later object edits or Reload can replace these values. Only ground navigation is changed, not the ranged/flying map. Invalid bounds, short input or in-bounds values outside 0..5 are rejected before any terrain write. Do not change the input array concurrently. On refresh failure, terrain edits remain queued; retry UpdateObstacles, not this operation, to avoid applying a delta twice. Added in public DPB2 0.4.5.103. Requires initialized navigation for the current area. Minimum bounds are inclusive and maximum bounds exclusive. Changes ground navigation, not game terrain or the ranged/flying map. Temporary obstacles are retained. Add/Subtract accumulate and saturate; Replace assigns absolute values including zero. Later object updates or Reload can replace these edits. If refresh fails, retry UpdateObstacles, not the delta operation.
public static void ExilePather.EditTriggerableBlockages(Func<NetworkObject, bool> shouldBlock, List<NetworkObject> obj)
Edits the supplied objects' navigation on the active terrain and flushes affected tiles once. True restores the closed grades using the observed delta or supported Hull fallback; false restores the open grades. Closing does not force every affected cell to zero. Does not change the objects' state in the game.
See DreamPoeBot.Loki.Bot.Pathfinding.ExilePather.BlockTriggerableBlockages(System.Byte[]@,System.Int32,System.Func{DreamPoeBot.Loki.Game.Objects.NetworkObject,System.Boolean},System.Collections.Generic.List{DreamPoeBot.Loki.Game.Objects.NetworkObject}) for Hull fallback limitations, including circular shapes not yet verified live.
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).
Return type:boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
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.
This function also Broadcast a message with id "Raycast_Result" and has 4 parms as input: Vector2i start, Vector2i end, bool Returnvalue, Vector2i hitPoint. If ground map is used, detour's raycast is used which is generally a lot faster.
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 cast 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.
public static void ExilePather.Reload(bool force = false)
Synchronously (re)loads navmesh and height map for the current area and applies dynamic obstacles. When the game is not ready, returns without rebuilding and leaves IsReady false.
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.
If true, rebuilds even if the cached area matches.
public static Task ExilePather.ReloadAsync(bool force = false, CancellationToken ct = default(CancellationToken))
Asynchronously (re)loads navmesh and height map for the current area and applies dynamic obstacles. When the game is not ready, completes without rebuilding and leaves IsReady false.
Return type:TaskNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Parameters
force
Parameter type:boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
If true, rebuilds even if the cached area matches.
ct
Parameter type:CancellationTokenNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
Cancellation token used to abort the reload.
Returns: A task that completes when the reload finishes or is canceled.
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.
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.
DPB2 0.4.5.103 · 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.
Ocorreu um erro. Recarregue a página para continuar.
Recarregar🗙