.:: 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 > Releases, Installers, Docs & Coding
Releases, Installers, Docs & Coding Where the official development happens

Reply
 
Thread Tools
FIX: same named bots when no detailnames
Old
  (#1)
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 FIX: same named bots when no detailnames - 01-05-2004

Well I just found out that if there are no detailnames the bots still end up getting the same names.
in bot.cpp in function BotCreate
Code:
if (strstr (szUsedBotNames[index], szBotNames[name_index]) != NULL)
should be
Code:
if ((strstr (szUsedBotNames[index], szBotNames[name_index]) != NULL) || (strcmp (szUsedBotNames[index], szBotNames[name_index]) == 0))
[edit]
damn after the tests I thought it worked..
Appearently I got lucky and none of the names repeated but they still repeat...
time to try to fix this again..
[/edit]
[edit2]
strange no wonder I thought what i thought in the first edit..
only my linux DS repeats names...
so so strange...
[/edit2]
[edit3]
this seems to be a linux only error that I cannot fix...
if anyone knows whats wrong please help
[/edit3]

Last edited by sPlOrYgOn; 01-05-2004 at 07:55..
  
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