Jump to content

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

Work in Progress 0.2.9

ToliburtiX
ToliburtiX

Posted

Hello,

while most of the time the NPCs are happy respawning, from time to time the logfile is flooded with "Failed to create agent because it is not close enough to the NavMesh" messages. It's clearly caused by RoamingNPCs, because unloading the plugin stops the message. But a simple reload of the plugin does not solve the problem. I have to unload it, delete the file "data/RoamingNPCs/Bots.json" and load it again. Then everything runs fine until the next "flood".

Best regards,
Toli

 

walkinrey

Posted

Hi, are you on custom map? can i see your config?

ToliburtiX

Posted

27 minutes ago, walkinrey said:

Hi, are you on custom map? can i see your config?

Hello,

the map is procedural, seed was 4548765, size 3000. Config is attached.

RoamingNPCs.json

walkinrey

Posted

Changed Status from Pending to Work in Progress

walkinrey

Posted

Do you have any messages in the console before/after "Failed to create agent because it is not close enough to the NavMesh" ?

ToliburtiX

Posted

On 1/10/2026 at 3:35 PM, walkinrey said:

Do you have any messages in the console before/after "Failed to create agent because it is not close enough to the NavMesh" ?

No, there were no such related messages. Well, I spend the last days removing all my plugins from "carbon/plugins", restarting the server and putting them back one by one while watching the logfile for a while. RoamingNPCs was the first I put back and running all the time.

Well, what should I say. The flooding message did not come back. I will now wait and see if it stays away or comes back after a longer runtime of the server. I think nothing must be done in the moment.

 

  • Like 1
ToliburtiX

Posted

Dam it, the messages came back. It seems that after a restart of the server (not just reload of the plugin) it takes a while 'til they occur. What I also noticed, while there is not much traffic an the new server, it's slowly eating up the free memory/RAM. Feels like a memory leak.

Is there anything I can do to help debug this problem?

walkinrey

Posted

Can i get your plugins list? maybe it conflicts with smth else

Also is the memory consumption remains same after restarting the server?

walkinrey

Posted

Also if it’s possible can you send a full log file?

ToliburtiX

Posted

On 1/14/2026 at 1:29 PM, walkinrey said:

Can i get your plugins list? maybe it conflicts with smth else

Also is the memory consumption remains same after restarting the server?

My plugin list and a slightly anonymized logfile covering 2 hours from start to shutdown of the server are attached. It's my testserver (copy of the production server), so only one player (me) logs on. 

console.log.zip plugins.txt

  • Like 1
ToliburtiX

Posted

Hi there,

for the sake of debugging this odd problem, I did a clean and fresh install of a rust server and carbon framework, going with the default options where possible. The server generated the 3000 map with seed 4548765 by itself. I installed only RoamingRPCs and three other plugins for logging (see plugins.txt). But after a while I still get this flooding message in the log file (see console-log file).

Greetz,
Toli

console.log.zip plugins.txt

2.2m

Downloads

Total number of downloads.

10.1k

Customers

Total customers served.

146.5k

Files Sold

Total number of files sold.

3.1m

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.