Jump to content

Failed to create agent because it is not close enough to the NavMesh


Recommended Posts

Posted

Failed to create agent because it is not close enough to the NavMesh
Failed to create agent because it is not close enough to the NavMesh
Failed to create agent because it is not close enough to the NavMesh
Failed to create agent because it is not close enough to the NavMesh

I understand that this has been a hackneyed topic for a long time, and no one knows exactly what the reason is and how to get rid of it. I know that many people advise not to touch anything if it works fine. In fact, this does not interfere with the operation of the server, but it periodically makes the server log file simply huge.

I am tormented by one question, has no one created a tool for finding the source of these messages after so many years of this problem? Or is there already such a tool, but no one knows about it? Even the game developers can't answer how to find the source of these messages.

Posted
5 hours ago, Soller said:

Failed to create agent because it is not close enough to the NavMesh
Failed to create agent because it is not close enough to the NavMesh
Failed to create agent because it is not close enough to the NavMesh
Failed to create agent because it is not close enough to the NavMesh

I understand that this has been a hackneyed topic for a long time, and no one knows exactly what the reason is and how to get rid of it. I know that many people advise not to touch anything if it works fine. In fact, this does not interfere with the operation of the server, but it periodically makes the server log file simply huge.

I am tormented by one question, has no one created a tool for finding the source of these messages after so many years of this problem? Or is there already such a tool, but no one knows about it? Even the game developers can't answer how to find the source of these messages.

Something is trying to spawn an NPC somewhere the navmesh doesn’t cover. Fix the spawn point (plugins/custom map) or regenerate the navmesh (nav_gen). If you tell me whether you’re running a custom map and which plugins you have for NPCs, I can point to the exact setting to change.

Try:

  1. Teleport to position (0, 0) and see if there is something if so, kill and remove it.
  2. Kill all NPCs when server is started up and let them spawn again, seems like an NPC or objects are somewhere where they couldn't be, like bouncing to something or under the map

 

GL

  • Like 1
Posted
2 hours ago, xNullPointer95 said:

Something is trying to spawn an NPC somewhere the navmesh doesn’t cover. Fix the spawn point (plugins/custom map) or regenerate the navmesh (nav_gen). If you tell me whether you’re running a custom map and which plugins you have for NPCs, I can point to the exact setting to change.

Try:

  1. Teleport to position (0, 0) and see if there is something if so, kill and remove it.
  2. Kill all NPCs when server is started up and let them spawn again, seems like an NPC or objects are somewhere where they couldn't be, like bouncing to something or under the map

 

GL

I never use custom Maps. Plugins that NPCs can create: BetterNpc, Convoy, ArmoredTrain. But I also had this problem when I didn't have these plugins. This is generally a very common problem.

I played with GPT a bit, added some parameters to it, and it turned out to be a simple plugin for searching for entities outside of NavMesh. It seems to work, it gives some coordinates of the NPC and animals outside the NavMesh, but when I teleport to these coordinates there is nothing there. But maybe these entities immediately disappeared or fell under the map. I'll check again when there's non-stop spam messages. There is nothing at 0 0.

Posted
On 11/10/2025 at 6:59 AM, xNullPointer95 said:

Something is trying to spawn an NPC somewhere the navmesh doesn’t cover. Fix the spawn point (plugins/custom map) or regenerate the navmesh (nav_gen). If you tell me whether you’re running a custom map and which plugins you have for NPCs, I can point to the exact setting to change.

Try:

  1. Teleport to position (0, 0) and see if there is something if so, kill and remove it.
  2. Kill all NPCs when server is started up and let them spawn again, seems like an NPC or objects are somewhere where they couldn't be, like bouncing to something or under the map

 

GL

Thank you, I will try it.

Posted
On 11/10/2025 at 6:29 AM, xNullPointer95 said:

Something is trying to spawn an NPC somewhere the navmesh doesn’t cover. Fix the spawn point (plugins/custom map) or regenerate the navmesh (nav_gen). If you tell me whether you’re running a custom map and which plugins you have for NPCs, I can point to the exact setting to change.

Try:

  1. Teleport to position (0, 0) and see if there is something if so, kill and remove it.
  2. Kill all NPCs when server is started up and let them spawn again, seems like an NPC or objects are somewhere where they couldn't be, like bouncing to something or under the map

 

GL

I've visited 0.0 again now, and judging by the sounds there is at least one deer there. But it's impossible to kill him, he's invisible.

Posted
1 hour ago, Soller said:

I've visited 0.0 again now, and judging by the sounds there is at least one deer there. But it's impossible to kill him, he's invisible.

So i was right that there is something 🙂

Try to kill it with commands or just create a plugin which does that for your.

Or just create a plugin that kills each deer.

So it seems like i found the root cause of your issue 🙂

Posted
57 minutes ago, xNullPointer95 said:

So i was right that there is something 🙂

Try to kill it with commands or just create a plugin which does that for your.

Or just create a plugin that kills each deer.

So it seems like i found the root cause of your issue 🙂

No, that's not the reason. The reason turned out to be BetterNpc, and it's not permanent. Restarting the plugin solves the problem. And I don't have enough knowledge to create a plugin that will kill non-existent invisible deer. Object remover, for example, does not see these deer. I'd rather write a plugin that will restart BetterNpc every time this annoying message appears in the console.

Posted
20 minutes ago, Soller said:

No, that's not the reason. The reason turned out to be BetterNpc, and it's not permanent. Restarting the plugin solves the problem. And I don't have enough knowledge to create a plugin that will kill non-existent invisible deer. Object remover, for example, does not see these deer. I'd rather write a plugin that will restart BetterNpc every time this annoying message appears in the console.

Restarting Plugin is not a solution in my opinion - Instead of this it would make sense to create a support thread for it, right?

 

Posted
48 minutes ago, xNullPointer95 said:

Restarting Plugin is not a solution in my opinion - Instead of this it would make sense to create a support thread for it, right?

 

This would be a good option if the coordinates of the problematic NPC were precisely known. But this problem is very fickle, and it can take many weeks to find the source of the problem. And most likely the problem is not in any particular NPC, but simply for some reason one of the NPC sometimes spawns incorrectly.

Posted
3 minutes ago, Soller said:

This would be a good option if the coordinates of the problematic NPC were precisely known. But this problem is very fickle, and it can take many weeks to find the source of the problem. And most likely the problem is not in any particular NPC, but simply for some reason one of the NPC sometimes spawns incorrectly.

This is the problem of the plugin author, the the plugin author should get acknowledged of this strange behaviour (bug).

Posted
24 minutes ago, xNullPointer95 said:

This is the problem of the plugin author, the the plugin author should get acknowledged of this strange behaviour (bug).

I have already discussed this bug with him, I think he also understands that this problem is almost elusive.

Posted
39 minutes ago, Soller said:

I have already discussed this bug with him, I think he also understands that this problem is almost elusive.

It might be "impossible" to reproduce, but its definetly possible to catch it.

If that problem happens the plugin author should build in debug log and you turn in on -> gather informations and forwarded it to him -> he then will try to fix.

- A poor workaround what could be done is to ignore "Failed to create agent because it is not close enough to the NavMesh" messages in the console so it doesnt get print out, i could also do something for your.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
2m

Downloads

Total number of downloads.

9.6k

Customers

Total customers served.

140.1k

Files Sold

Total number of files sold.

3m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.