[DiscordArchive] access violation from playerbot ai?
[DiscordArchive] access violation from playerbot ai?
Archived author: Sodie Pops • Posted: 2025-05-30T13:49:22.359000+00:00
Original source
Call stack:
Address Frame Function SourceFile
00007FF6FEC1106E 0000001B4070EFC0 PlayerbotAI::AllowActivity+1E C:\azerothcore-wotlk\modules\mod-playerbots\src\PlayerbotAI.cpp line 4353
I think it's this but I have no idea how to check what that line is doing
Archived author: Yuppls • Posted: 2025-05-30T13:49:35.172000+00:00
Original source
yep
Archived author: Yuppls • Posted: 2025-05-30T13:49:43.234000+00:00
Original source
Every 10 minutes randomplayerbotmgr is run
Archived author: Yuppls • Posted: 2025-05-30T13:49:50.290000+00:00
Original source
it calls PlayerbotAI::AllowActivity
Archived author: Yuppls • Posted: 2025-05-30T13:49:58.406000+00:00
Original source
which crashes on ```gPrimtarget = ObjectAccessor::GetUnit(*m_bot->GetMap()->GetWorldObject(PrimtargetGUID), PrimtargetGUID);
```
Archived author: Yuppls • Posted: 2025-05-30T13:50:16.471000+00:00
Original source
which is line 4353
Archived author: Yuppls • Posted: 2025-05-30T13:50:24.348000+00:00
Original source
returning nullptr
Archived author: Yuppls • Posted: 2025-05-30T13:50:40.146000+00:00
Original source
Do you have your creature despawn set SUPER low? the corpse
Archived author: Yuppls • Posted: 2025-05-30T13:51:20.950000+00:00
Original source
Either the bot was despawned, the object it was just looking at hs gone. or the target GUID is in memory but is no longer valid
Archived author: Yuppls • Posted: 2025-05-30T13:51:32.063000+00:00
Original source
It could be down to some setting you've changed that affects one of the above