#[0.14.4.0] Pathfinding bug when the game is running at x4 and/or x8 speed

3 messages · Page 1 of 1 (latest)

brisk flicker
#

When the game is running at x8 speed, NPCs will have interesting pathfinding solutions to get from Point A to Point B.

Here is an NPC pathfinding from a location near the Coffee Machine on OKLG, to the Transit kiosk.

It was initially set to x8 speed, so the NPC was pathfinding through the walls and getting to the Transit as if there were no obstacles in between, and was making a straight path straight to the Transit from the Coffee Machine.

Quickly, I slowed the game speed to x1 and this is where the GIF starts playing.

I would consider this to be a possible fix for this issue:

  1. When the game detects the player slowing down the game speed from x8 to a lower speed, quickly tell all NPCs that haven't reached their pathfinding target to recalculate their pathfinding, on a frequency of once-every-three-frames.

  2. By doing so, the NPCs will be able to recalculate their pathfinding route at a more granular pace.

#

Note that when the game pauses momentarily or when the game speeds up, the NPC would go through walls / obstacles, phasing into somewhere else.

brisk flicker
#

[0.14.4.0] Pathfinding bug when the game is running at x4 and/or x8 speed