DPB2Class · 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: DPB2 0.4.5.103Compare the DPB1 reference → Check signatures and usage notes separately; a matching type is not a compatibility guarantee.

Members and overloads

1 declared here
Show all members

EditTriggerableBlockages

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

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.

boundsMin

Inclusive minimum grid coordinates in the active map, not world coordinates.

boundsMax

Exclusive maximum grid coordinates. Empty bounds make no terrain changes.

operation
Parameter type: NavDataOperation

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.

No dedicated example has been reviewed for this member. Browse the class reference; its examples may demonstrate other operations.

Guides using this class

These guides refer to ExilePather as a whole and may use other members. They are not dedicated examples of the selected member.

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.