AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Source Servers (SRCDS) (https://forums.alliedmods.net/forumdisplay.php?f=130)
-   -   access violation using IBotController (https://forums.alliedmods.net/showthread.php?t=316150)

tschumann 05-10-2019 08:00

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

Peace-Maker 05-15-2019 11:44

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.

tschumann 04-11-2024 06:38

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.

backwards 04-11-2024 11:45

Re: access violation using IBotController
 
This 5 year long followup response is crazy. I don't even know if he's alive anymore

tschumann 04-12-2024 05:37

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.