GarageGames / Torque3D

MIT Licensed Open Source version of Torque 3D from GarageGames
http://torque3d.org
MIT License
3.35k stars 1.2k forks source link

"No NavMesh polygon near visit point" -console spam #2150

Open ghost opened 6 years ago

ghost commented 6 years ago

I see that message very often in my console when having bots in a map, since it often seems to happen that the bots try to walk where there is no navmesh. I think it unnecessarily increases the console log and costs performance, since I do not see how I could fix it so this never happens,.

So am I doing something majorly wrong or is this normal? If so should it really write to console every time in red text? The bots work fine, since they just chose a new route if the chosen one does not work and they even have a fallback if there is no navmesh at all. Or am I supposed to do something with that information in the console? Maybe it should be possible to disable this and move it to some kind of AI debug mode with a pref value or so.

crabmusket commented 6 years ago

Weird, it looks like that error is commented out (in the dev branch at least): https://github.com/GarageGames/Torque3D/blob/development/Engine/source/navigation/navPath.cpp#L434

ghost commented 6 years ago

Ok then this has been "fixed" in the meantime, I still have an older version. If there are no other comments I will close this then.

chaigler commented 6 years ago

Looks like it was changed with #1974.

The errors should probably be wrapped in a TORQUE_DEBUG ifdef so they're visible while running a debug build instead of just being commented out.