thebigsleepjoe / TTT-Bots-2

Player bots for Garry's Mod TTT
Creative Commons Attribution Share Alike 4.0 International
10 stars 2 forks source link

[BUG] cannot resume dead coroutine #24

Closed EntranceJew closed 7 months ago

EntranceJew commented 7 months ago

Game version/server type

Describe the bug

Bot AI freezes

Stack trace/error

Had errors generating;  cannot resume dead coroutine
Had errors generating;  addons/ttt-bots-2/lua/tttbots2/lib/sv_pathmanager.lua:897: attempt to index local 'destination' (a nil value)
Had errors generating;  cannot resume dead coroutine
Had errors generating;  addons/ttt-bots-2/lua/tttbots2/lib/sv_pathmanager.lua:897: attempt to index local 'destination' (a nil value)
Had errors generating;  cannot resume dead coroutine
Had errors generating;  addons/ttt-bots-2/lua/tttbots2/lib/sv_pathmanager.lua:897: attempt to index local 'destination' (a nil value)

⚠️ If there is no error, please ensure you remove the triple backticks, or else your formatting will break.

Reproducing the bug

Steps to reproduce the behavior:

  1. Go to ttt_mc_skylandv5
  2. Generate a basic navmesh
  3. Bots freak out
  4. See error

Expected behavior

Bots behave as usual.

Additional context

Happens even after a map reload.

thebigsleepjoe commented 7 months ago

Does this happen on other maps?

thebigsleepjoe commented 7 months ago

Nvm I see what it is. I pushed a change that should fix it -- seems like a bug caused by a portal being improperly set up by the map creator

Please try latest, v0.9.5b

EntranceJew commented 7 months ago

Checked it out, they all handle it just fine now. Thanks!

thebigsleepjoe commented 7 months ago

No problem! Thanks for the report.