.:: 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 > RealBot > The RealBot 'Source'
The RealBot 'Source' Discuss things about the source code. You can here point out bugs, share ideas and code. Assign to become an 'official team member' and so on!

Reply
 
Thread Tools
Re: crashes in 3050
Old
  (#31)
Josh_Borke
Member
 
Status: Offline
Posts: 152
Join Date: Jun 2004
Default Re: crashes in 3050 - 02-07-2004

following the procedure in post #16 I have gotten this error quite quickly on my dedicated server:
./hlds_run: line 423: 31520 Floating point exception$HL_CMD
./hlds_run: line 423: 31548 Floating point exception$HL_CMD

HTH

--edit--
ipReplyToRadio is not being checked anywhere.

util.cpp:880: int iExtra = (100/pBot->ipCreateRadio);

could be

Code:
int iExtra = 30;
 if (pBot->ipCreateRadio > 0)
   iExtra = 100/(pBot->ipCreateRadio)
ipCreateRadio could be zero, divide by zero...

so far no crashes, only played a couple rounds

also

Code:
bot_client.cpp:1014:	  if (iDevide < 1)
should be
Code:
bot_client.cpp:1014:	  if (iDevide < 1 || iDevide == 0)
just in case

Last edited by Josh_Borke; 02-07-2004 at 02:49..
  
Reply With Quote
Re: crashes in 3050
Old
  (#32)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: crashes in 3050 - 02-07-2004

very nicely found, any possible devide by 0 should be removed!

the second suggestion, erm when < 1 means == 0, or even lower? i dont get that.


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote
Re: crashes in 3050
Old
  (#33)
Josh_Borke
Member
 
Status: Offline
Posts: 152
Join Date: Jun 2004
Default Re: crashes in 3050 - 02-07-2004

er, yea, it was late...
  
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 - 2025, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com