access violation using IBotController
I'm creating my own bot plugin for Half-Life 2 Deathmatch based on https://github.com/ValveSoftware/sou...plugin_bot.cpp
I can add a bot fine and it moves around randomly, and using code from https://wiki.alliedmods.net/Virtual_...s_(Source_Mods) I can call methods on the underlying CBaseEntity. The problem is that once I've called a method on the CBaseEntity, trying to call a method on the IBotController causes an access violation. Any idea why this would be? The virtual offsets code doesn't look like it should modify anything, and I'm using the latest commit of https://github.com/alliedmodders/hl2sdk/tree/hl2dm |
Re: access violation using IBotController
But calling methods on IBotController before calling something on CBaseEntity works fine?
You'll have to put up some source code if you really want help. |
Re: access violation using IBotController
It's using mostly stock bot plugin code: https://github.com/tschumann/gravelb...plugin_bot.cpp
Seems like it was crashing somewhere in RunPlayerMove. Anyway, I've got some working bot code with Rcbot2 now - not sure what's different besides the big obvious Metamod Source etc. |
Re: access violation using IBotController
This 5 year long followup response is crazy. I don't even know if he's alive anymore
|
Re: access violation using IBotController
Ah whoops - I didn't realise I'd made this thread so long ago.
|
All times are GMT -4. The time now is 13:32. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.