View Single Post
Contact with Alfred (Valve)
Old
  (#1)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Contact with Alfred (Valve) - 16-12-2004

Well, i sent Valve a mail about the crashing on HL2DM. I also asked him a question about the proper update functions and such, so when i get an answer, i will share it with you.

Quote:
Can you send me some sample code (i.e your plugin) that reproduces this problem.

- Alfred
----Original Message----
From: S. Hendriks [
mailto:youwishyougetmyprivateadress@.nl]
Sent: Thursday, December 09, 2004 12:30 PM
To: Alfred Reynolds
Cc: Jess Cliffe

Subject: REGARDING: Bot/Fakeclient creation
> Hello Alfred,
>
> Regarding to my previous mail, the EXACT SAME CODE works for CS:
> SOURCE! I do a CreateFakeClient command and i can see it already in
> the specators list... So i think its an error in the HL2DM code
> itself?
>
> =================================================
> Stefan Hendriks
> FunDynamic
>
http://www.fundynamic.nl
> =================================================
my reply to that mail:
Quote:
Sure,

I have included the entire source, but for your convenience i have included the magic line that crashes on HL2DM, but runs fine on CSS:
---
// Runs fine
edict_t * pClientEdict = NULL;
// Runs fine
rblog("BOT: Creating Bot\n");
// *CRASH* (but fine in HL2DM)
pClientEdict=engine->CreateFakeClient"BOT");
---
These lines can be found (though without these comments) in serverplugin_bot.cpp , at CON_COMMAND(bot_create, ...)

For the moment i just test the plugin on CSS so i can run the CreateFakeClient function. However, i am having trouble running the proper update function. As for one, i am not sure how to update fake clients properly. I *think* i have to use ProcessMovement from the IGameMovement interface and RunPlayerCOmmand(???) for user command processing? Its just a wild guess , i already took to long and too much time into this so i get behind with my study Perhaps you can hint me on this?

Thanks in advance,

=================================================
Stefan Hendriks
FunDynamic
http://www.fundynamic.nl =================================================


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote