Raised This Month: $32 Target: $400
 8% 

access violation using IBotController


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
tschumann
Junior Member
Join Date: Jun 2017
Location: Australia
Old 05-10-2019 , 08:00   access violation using IBotController
Reply With Quote #1

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
tschumann is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 05-15-2019 , 11:44   Re: access violation using IBotController
Reply With Quote #2

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.
__________________
Peace-Maker is offline
tschumann
Junior Member
Join Date: Jun 2017
Location: Australia
Old 04-11-2024 , 06:38   Re: access violation using IBotController
Reply With Quote #3

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.
tschumann is offline
backwards
AlliedModders Donor
Join Date: Feb 2014
Location: USA
Old 04-11-2024 , 11:45   Re: access violation using IBotController
Reply With Quote #4

This 5 year long followup response is crazy. I don't even know if he's alive anymore
__________________
I highly recommend joining the SourceMod Discord Server for real time support.
backwards is offline
tschumann
Junior Member
Join Date: Jun 2017
Location: Australia
Old 04-12-2024 , 05:37   Re: access violation using IBotController
Reply With Quote #5

Ah whoops - I didn't realise I'd made this thread so long ago.
tschumann is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:03.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode