Navigation Mesh missing entire chunks of the map

hey, about three months ago we started getting issues with one of our game’s monsters completely failing to navigate throughout its room. we couldn’t figure out the issue at the time but have now realized the Navigation Mesh randomly misses entire chunks of the map.


we didn’t update the live game for about a month when this bug started appearing, so I don’t think that it’s our fault.

we’ve tried:

  • adding PathfindingModifiers almost everywhere in multiple ways to avoid or prioritize areas
  • removing and adjusting chunks of the map, even up to the point where it was just 5 parts
  • completely remaking & rewriting the pathfinding NPC
  • changing the rooms’ position and orientation
  • changing the agent’s parameters
  • changing the pathfinding parameters
  • removing all PathfindingModifiers from the game entirely

the navigation mesh looks like this in studio, and the navigation mesh even looks like this in-game until pathfinding starts:

remember that our NPC worked as intended before this mysterious change to the pathfinding system.


this bug is completely inconsistent. it will disappear and reappear chunks at random.

the bug’s common enough to where it ruins the experience for a good chunk of players upon encountering our pathfinding NPC Figure in the game just for it to walk into a wall and do nothing for the rest of the playthrough.

even after completely recreating & rewriting this NPC, the pathfinding/navigation mesh is still completely breaking for us, both in studio and in-game (in a different testing experience).

we just can’t figure out this bug. it has completely wasted about a week of development. we think it’s linked to maybe some sort of engine change done around 3 months ago that changed how pathfinding and the Navigation Mesh function; we’ve asked another developer and they’ve had a very similar issue with the Navigation Mesh randomly missing entire chunks of a map. we cannot ship our game’s update out without this bug being fixed as it genuinely ruins the experience.

75 Likes

We are experiencing similar issues with the navmesh in nico’s nextbots to the point where it has made one of our maps completely unplayable. None of our bots are working since entire chunks of the navmesh would just disappear whenever a state change happened.

This has never happened to us before. We’ve tried every possible fix, but nothing works. The navmesh just fails to recalculate, even after we revert all of our changes.

I’m not exactly sure what causes this, but I believe it has something to do with the way pathfinding modifiers are handled internally, as we’ve only observed this on maps that do make use of them.

I’m hoping this gets resolved quickly as this is severely impacting our game.

36 Likes

I played Doors today on my phone, but figure followed me normally (I didn’t saw any differences). I don’t even know what’s the issue.

14 Likes

Roblox pathfinding is such a joke and ue3 had better pathfinding. It’s also so damn difficult to make it work correctly on moving targets and Roblox never gives solid examples in the documentation

15 Likes

that’s part of the issue though, this bug is very random and inconsistent

20 Likes

How do you check the navigation mesh during a running game? It disappears whenever I start a Studio test. I’m wondering if the problem you’ve described could maybe be the culprit behind a pathfinding issue I’ve been having in one of my Piggy fangames.

12 Likes

ROBLOX should allow you to create your own navigation mesh, kind of like how GMod does.

17 Likes

Some thing I found out was that the navmesh only disappears during runtime.
Maybe try using custom a* pathfinding, because honestly using rblx pathfinding isn’t worth it.

12 Likes

It doesn’t only happen during runtime that’s false. I demonstrated that in the video.

13 Likes

for me it is. When i start my game half the navmesh just dissapears.

15 Likes

Same issue happens to my game, one if i remember that it happened months ago and I’ve seen it in one of my beloved game often, tried to bounce the NPCs back but it still wouldn’t restart it’s path to find

3 Likes

I can also say I’ve expierenced this issue when reaching The Library.

Figure has been crashing into walls more often & is generally way more unpredictable.

Hope a fix can be made soon.

4 Likes

thats really weird does the code have anything to do with this tho?

The point of failure lies in the navmesh itself, not in the use of the pathfinding service. This is not caused by code on our end.

I’m just moving the part around in studio and it’s just deleting chunks of the navmesh.

2 Likes

its really annoying when im testing smth and the npcs just get stuck. It kinda looks like its stuck on an invisible wall ngl

Hi, Thanks for reporting this . Could you please share a simplied repo case for us to investigate.

1 Like

its really an engine bug/update, i had a game i never updated for like 6 months with this kind of thing and it became unplayable even though no one other than me has access to edit the game and i didnt edit anything for months…

i just found it out because of this post, this is 100% an engine update or bug.

we really need to wait for roblox for this one.

Huge chunks of gets removed when a part is moving around it? This is what i think is the problem.

I am assuming one of the updates in May (probably version 622) was the cause as it was 3 months prior to this post’s creation date.

1 Like

Here is a file that reproduces this:
example.rbxm (36.0 KB)

Everything parented under the model is affecting the navmesh. Hope this helps.

4 Likes

Hi NicolaiXeno,
I’ve been investigating the navmesh issue you reported and managed to reproduce it in the repo you provided. I found that the problem arises because several base parts are positioned at an extremely low Y coordinate (Y=-999390).

Workspace.nn_outpost.nn_outpost.outer_props.foliage.Bush2                    Pos: 311.48492431640625, -999390.125, -190.41192626953125
Workspace.nn_outpost.nn_outpost.outer_props.foliage.Snowy Tree 6.Trunk       Pos: 311.48492431640625, -999390.125, -190.41192626953125
Workspace.nn_outpost.nn_outpost.outer_props.foliage.Snowy Tree 6.Snow Leaves Pos: 311.48492431640625, -999390.125, -190.41192626953125

We’ve previously encountered and fixed issues when base parts are placed at extreme depths, but this instance seems a bit different, and we’re still working on a solution.

As a temporary fix, you can resolve this issue by deleting the base parts at Y=-999390. Also, please check other problematic places to see if they have base parts positioned at unusually high or low locations. Removing these could potentially fix the issues as well.

Thank you.

3 Likes