.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   General Bot Coding (http://forums.bots-united.com/forumdisplay.php?f=24)
-   -   bot donīt spawn (http://forums.bots-united.com/showthread.php?t=542)

cctnt 27-01-2004 21:34

bot donīt spawn
 
hi
iīm pretty new to botcoding
iīve an annoying bug

when i type addbot in the console
only the weapons of the bot spawn but not the bot itself
i edited the bot_start.cpp that he uses the class system of the mod.

can anyone help me?

-=RAV=-AdrianShephard 28-01-2004 00:35

Re: bot donīt spawn
 
i think this is in the wrong section

Pierre-Marie Baty 28-01-2004 07:00

Re: bot donīt spawn
 
yes... I'm moving this to the bot coding discussions forum.

Are you sure you updated the linkfunc.cpp file of the HPB_bot with the entities of your mod ?

cctnt 28-01-2004 09:54

Re: bot donīt spawn
 
yep i did

could the cause be that iīm using a map with the old fgd of my mod?
i mean with other start points than yet

and why wrong section??
iīm using hpb-bot

Pierre-Marie Baty 28-01-2004 10:53

Re: bot donīt spawn
 
you're using the HPB_bot SOURCE CODE to make your own bot, not the official HPB_bot release... so this is a coding question :)

Actually all the HL bots out here are more or less based on the HPB_bot, you know :)

Anyway... is there a menu selection in your mod ? (to join a class, to choose a skin, whatever)
Maybe the bots are stuck in this menu that's why they don't appear...

Check if their entity has the EF_NODRAW flag set.

cctnt 28-01-2004 11:13

Re: bot donīt spawn
 
ah ok
yeah i have a vgui menu
but ingame they arenīt showed as spectators
where should i look for EF_NODRAW
in my spawn function for the bot?
there isnīt one

Pierre-Marie Baty 28-01-2004 12:55

Re: bot donīt spawn
 
check if (pBot->pEdict->v.effects & EF_NODRAW) is TRUE... that would mean that the bot is spawned, but its model is not rendered by the engine.

Else are you 100% sure you fill the infobuffer correctly in BotCreate() ? Some mods like Counter-Strike need to have a lot more stuff in it than others like HL.

cctnt 28-01-2004 14:13

Re: bot donīt spawn
 
works now
thx to u pierre

edit
it only works in free fight
how can i force the bot to leave spectator in team mode?

bluesy 03-02-2004 22:42

Re: bot donīt spawn
 
Hi!

Maybe there`s an extra menu for team mode? try forcing the bots to fire (in_attack) and see if it works...

@$3.1415rin 03-02-2004 22:46

Re: bot donīt spawn
 
welcome bluesy :)


All times are GMT +2. The time now is 22:14.

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