.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   Half-Life 2 SDK (http://forums.bots-united.com/forumdisplay.php?f=62)
-   -   Contact with Alfred (Valve) (http://forums.bots-united.com/showthread.php?t=3213)

stefanhendriks 16-12-2004 09:58

Contact with Alfred (Valve)
 
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 =================================================

Jerry 16-12-2004 10:03

Re: Contact with Alfred (Valve)
 
Well, it's good that you got a response :).
Now to wait and see if he can give some tips :).

btw:
// *CRASH* (but fine in HL2DM)
has to be:
// *CRASH* (but fine in CSS)

But he will know what you mean ;)

stefanhendriks 16-12-2004 10:17

Re: Contact with Alfred (Valve)
 
yeah, i just sent another mail to be sure hehe :D


All times are GMT +2. The time now is 07:36.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.