.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Cyborg Factory > POD-Bot mm > Bug Reports
Bug Reports Post any bug you experience with the latest release of this bot here

Reply
 
Thread Tools
bot spray disapears in #2.1
Old
  (#1)
g4s
Member
 
g4s's Avatar
 
Status: Offline
Posts: 102
Join Date: May 2004
Default bot spray disapears in #2.1 - 02-06-2004

I don't know if you guys have noticed this - bot spray doesn't show.
I started a game with 31 bots, played about 15 minutes, I kept restarting to expect a bot spray. but I can only HEAR the spray sound, but no logo.
Then I switched back to #2.0, and spray showed up.
I compared the source, found something of botspray has been changed, but haven't found why. o_O


Last edited by g4s : Tomorrow at 12:01.
  
Reply With Quote
Re: bot spray disapears in #2.1
Old
  (#2)
sPlOrYgOn
<-- He did it.
 
sPlOrYgOn's Avatar
 
Status: Offline
Posts: 1,558
Join Date: Jan 2004
Location: Los Angeles, California, USA, North America, Earth, Solar System, Milky Way.
Default Re: bot spray disapears in #2.1 - 02-06-2004

hmmm...
You or someone else that had access to your source must have edited it...
I never touched the spray code..
and I've just check right now and my spray code for release2.0, 2.1, and my current code still has the same spray code as R1.0
  
Reply With Quote
Re: bot spray disapears in #2.1
Old
  (#3)
g4s
Member
 
g4s's Avatar
 
Status: Offline
Posts: 102
Join Date: May 2004
Default Re: bot spray disapears in #2.1 - 02-06-2004

you replaced #2 download with #2.1 right?
ok, here are the files I have, dll.cpp

Release 2
Code:
   // Load & Initialise BotLogos from BotLogos.cfg
   fpText = fopen ("cstrike/addons/podbot/botlogos.cfg", "r");
   if (fpText == NULL)
   {
	  strcpy (szError,"No BotLogos.cfg ! Using Defaults...\n");
	  ALERT (at_error, szError);
	  fp = fopen ("PODERROR.txt", "a"); fprintf (fp, szError); fclose (fp);
   }
   else
   {
	  file_index = 0;
	  szBuffer[file_index] = 0; // null out Buffer
	  g_iNumLogos = 0;
	  while ((fpText != NULL) && (!feof (fpText)))
	  {
		 FillBufferFromFile(fpText,(char *)&szBuffer, file_index);
		 file_index = 0; // reset for next input line
		 if ((szBuffer[0] == '#') || (szBuffer[0] == 0) ||
			(szBuffer[0] == '\r') || (szBuffer[0] == '\n'))
		 {
			continue; // ignore comments or blank lines
		 }
		 strcpy (&szSprayNames[g_iNumLogos][0],&szBuffer[0]);
		 g_iNumLogos++;
	  }
	  g_iNumLogos--;
	  if (fpText != NULL)
	  {
		 fclose (fpText);
		 fpText = NULL;
	  }
   }
   // End BotLogos
Release 2.1
Code:
   // Load & Initialise BotLogos from BotLogos.cfg
   fp = fopen ("cstrike/addons/podbot/botlogos.cfg", "r");
   if (fp == NULL)
	  UTIL_ServerPrint ("No BotLogos.cfg ! Using Defaults...\n");
   else
   {
	  g_iNumLogos = 0;
	  while (fgets (line_buffer, 256, fp) != NULL)
	  {
		 if ((line_buffer[0] == '#') || (line_buffer[0] == 0) || (line_buffer[0] == '\r') || (line_buffer[0] == '\n'))
			continue; // ignore comments or blank lines
		 strcpy (szSprayNames[g_iNumLogos], GetField (line_buffer, 0));
		 g_iNumLogos++;
	  }
	  fclose (fp);
   }
   // End BotLogos
maybe I just messed up those with different versions, I'll double check that.

btw, is your botspray working? can you see those logos or just sound?


Last edited by g4s : Tomorrow at 12:01.
  
Reply With Quote
Re: bot spray disapears in #2.1
Old
  (#4)
sPlOrYgOn
<-- He did it.
 
sPlOrYgOn's Avatar
 
Status: Offline
Posts: 1,558
Join Date: Jan 2004
Location: Los Angeles, California, USA, North America, Earth, Solar System, Milky Way.
Default Re: bot spray disapears in #2.1 - 02-06-2004

it's been like R2.1 since podbot_sdk...
your 2.0 source is wrong...

and yes I do see logos..
  
Reply With Quote
Re: bot spray disapears in #2.1
Old
  (#5)
g4s
Member
 
g4s's Avatar
 
Status: Offline
Posts: 102
Join Date: May 2004
Default Re: bot spray disapears in #2.1 - 02-06-2004

o_O what am I doing wrong????
this time I just download the lastest 2.1, replace the whole folder, then start game. but I can only hear the spray sound, not even one logo. :'(


Last edited by g4s : Tomorrow at 12:01.
  
Reply With Quote
Re: bot spray disapears in #2.1
Old
  (#6)
sPlOrYgOn
<-- He did it.
 
sPlOrYgOn's Avatar
 
Status: Offline
Posts: 1,558
Join Date: Jan 2004
Location: Los Angeles, California, USA, North America, Earth, Solar System, Milky Way.
Default Re: bot spray disapears in #2.1 - 02-06-2004

lag? or you didn't give a high enough number to mp_decals?

[edit]
or maybe when the bot was going to spray..
the traceline it fired didn't hit anything but it still sends the sound...
[/edit]

[edit2]
oh crap you are right..
I was playing on a bot/human server and thought the bots sprayed it..
[/edit2]

Last edited by sPlOrYgOn; 02-06-2004 at 08:08..
  
Reply With Quote
Re: bot spray disapears in #2.1
Old
  (#7)
g4s
Member
 
g4s's Avatar
 
Status: Offline
Posts: 102
Join Date: May 2004
Default Re: bot spray disapears in #2.1 - 02-06-2004

Quote:
lag?
lan
Quote:
you didn't give a high enough number to mp_decals?
decalfrequency 30 (mp_decals is for blood and bullet holes I think)
Quote:
the traceline it fired didn't hit anything
They look down like before and spray. If this is the case, I couldv seen at least once or twice in a while. but not even one.

I don't know why this happens, The botsprays work fine if I switch back to R1 or 2.5. I'll take a careful look on those codes again.

Thanks for the replies.


Last edited by g4s : Tomorrow at 12:01.
  
Reply With Quote
Re: bot spray disapears in #2.1
Old
  (#8)
sPlOrYgOn
<-- He did it.
 
sPlOrYgOn's Avatar
 
Status: Offline
Posts: 1,558
Join Date: Jan 2004
Location: Los Angeles, California, USA, North America, Earth, Solar System, Milky Way.
Default Re: bot spray disapears in #2.1 - 02-06-2004

yea sorry my fault.. look at above edit..
and i think i see the error...
  
Reply With Quote
Re: bot spray disapears in #2.1
Old
  (#9)
g4s
Member
 
g4s's Avatar
 
Status: Offline
Posts: 102
Join Date: May 2004
Default Re: bot spray disapears in #2.1 - 02-06-2004

k, this is really weird...
the spray works on R1 but not R2
I manually searched 'spray' and 'logo' in both r1 and r2 sources, all those related terms are EXACTLY the same. how can this happen?


Last edited by g4s : Tomorrow at 12:01.
  
Reply With Quote
Re: bot spray disapears in #2.1
Old
  (#10)
sPlOrYgOn
<-- He did it.
 
sPlOrYgOn's Avatar
 
Status: Offline
Posts: 1,558
Join Date: Jan 2004
Location: Los Angeles, California, USA, North America, Earth, Solar System, Milky Way.
Default Re: bot spray disapears in #2.1 - 02-06-2004

umm
it was during that stupid NUM_FOR_EDICT bug hunt
I put a FNullEnt checking everything single entity...
including the entity that the spray points at...
and if it's null it'll return and not spray..
which it usually is...
in util.cpp
find UTIL_DecalTrace
and find a if (FNullEnt (pHit)) return;
and delete it...
then they should spray once again!
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

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



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com