.:: 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
Re: The Bots SteamId?
Old
  (#21)
Krush
Member
 
Status: Offline
Posts: 23
Join Date: Jul 2004
Default Re: The Bots SteamId? - 06-07-2004

Works fine except if the bot spawns with bot when it spawns the game reads it's id as BOT


-added
Well i updated to the latest code and added my stuff in the only problme is the authid part is stubbed out, and even if i uncomment it the steamid is always BOT

-added
now i got it back to using my steamids bot when the bot is disconnected or spawns with the bot (only 2 cases found so far) it's making it's ID BOT

-added
i'm going to guess the disconnect part is because we delete the bots info before it calls the AuthID function? not sure about the bomb though.

Last edited by Krush; 06-07-2004 at 08:31.. Reason: new problem
  
Reply With Quote
Re: The Bots SteamId?
Old
  (#22)
KWo
Developer of PODBot mm
 
KWo's Avatar
 
Status: Offline
Posts: 3,425
Join Date: Apr 2004
Default Re: The Bots SteamId? - 06-07-2004

Try to use EDIT function to re-edit Your latest post. In this case You will not be a multi-poster...
  
Reply With Quote
Re: The Bots SteamId?
Old
  (#23)
Krush
Member
 
Status: Offline
Posts: 23
Join Date: Jul 2004
Default Re: The Bots SteamId? - 06-07-2004

OK i found it

Code:
const char *pfnGetPlayerAuthId (edict_t *e)
{
   if (e->v.flags & FL_FAKECLIENT)
   		RETURN_META_VALUE (MRES_SUPERCEDE, bots[ENTINDEX (e) - 1].steamid);

   RETURN_META_VALUE (MRES_IGNORED, NULL);
}
what was happening was either e->v.flags or FL_FAKECLIENT wasn't true in those cases

so what i think to do is this

Code:
const char *pfnGetPlayerAuthId (edict_t *e)
{
   RETURN_META_VALUE (MRES_SUPERCEDE, bots[ENTINDEX (e) - 1].steamid);

   //RETURN_META_VALUE (MRES_IGNORED, NULL);
}
Please tell me if anyone sees a problem with me doing that. Because it does fix the problem i had.

-added
right now Im testing it on my server with a full load of bots. I don't think there should be a problem since that function shouldn't be called on anyone but a bot.

-added
it fixes the bomb problem but the dsconnect is now getting UNKNOWN when it shows the console kick and just <> (nothing in the id) on the drop

-added
this is what the logs look like
Code:
L 07/05/2004 - 22:57:45: Kick: "[AGR][43]E3<22><UNKNOWN><>" was kicked by "Console"
L 07/05/2004 - 22:57:45: "[AGR][43]E3<22><><CT>" disconnected
L 07/05/2004 - 22:57:45: Kick: "[DEF][33]Laser<4><UNKNOWN><>" was kicked by "Console"
L 07/05/2004 - 22:57:45: "[DEF][33]Laser<4><><CT>" disconnected
L 07/05/2004 - 22:57:45: Kick: "[NRM][78]GameCube<5><UNKNOWN><>" was kicked by "Console"
L 07/05/2004 - 22:57:45: "[NRM][78]GameCube<5><><TERRORIST>" disconnected
L 07/05/2004 - 22:57:45: Kick: "[NRM][31]Ultimate<6><UNKNOWN><>" was kicked by "Console"
L 07/05/2004 - 22:57:45: "[NRM][31]Ultimate<6><><TERRORIST>" disconnected
L 07/05/2004 - 22:57:45: Kick: "[NRM][45]X<7><UNKNOWN><>" was kicked by "Console"
L 07/05/2004 - 22:57:45: "[NRM][45]X<7><><TERRORIST>" disconnected
L 07/05/2004 - 22:57:45: Kick: "[DEF][92]PlayStation2<8><UNKNOWN><>" was kicked by "Console"
L 07/05/2004 - 22:57:45: "[DEF][92]PlayStation2<8><><TERRORIST>" disconnected
L 07/05/2004 - 22:57:45: Kick: "[AGR][55]Fart<9><UNKNOWN><>" was kicked by "Console"
L 07/05/2004 - 22:57:45: "[AGR][55]Fart<9><><CT>" disconnected
L 07/05/2004 - 22:57:45: Kick: "[AGR][39]Terminator<10><UNKNOWN><>" was kicked by "Console"
L 07/05/2004 - 22:57:45: "[AGR][39]Terminator<10><><CT>" disconnected
L 07/05/2004 - 22:57:45: Kick: "[DEF][95]Brutalix<11><UNKNOWN><>" was kicked by "Console"
L 07/05/2004 - 22:57:45: "[DEF][95]Brutalix<11><><CT>" disconnected
L 07/05/2004 - 22:57:45: Kick: "[DEF][67]Neo<12><UNKNOWN><>" was kicked by "Console"
L 07/05/2004 - 22:57:45: "[DEF][67]Neo<12><><TERRORIST>" disconnected
L 07/05/2004 - 22:57:45: Kick: "[AGR][56]Player<13><UNKNOWN><>" was kicked by "Console"
L 07/05/2004 - 22:57:45: "[AGR][56]Player<13><><CT>" disconnected
L 07/05/2004 - 22:57:45: Kick: "[DEF][100]Lag Killer<14><UNKNOWN><>" was kicked by "Console"
L 07/05/2004 - 22:57:45: "[DEF][100]Lag Killer<14><><TERRORIST>" disconnected
L 07/05/2004 - 22:57:45: Kick: "[AGR][65]The Lagger<15><UNKNOWN><>" was kicked by "Console"
L 07/05/2004 - 22:57:45: "[AGR][65]The Lagger<15><><TERRORIST>" disconnected
L 07/05/2004 - 22:57:45: Kick: "[DEF][38]Brain<16><UNKNOWN><>" was kicked by "Console"
L 07/05/2004 - 22:57:45: "[DEF][38]Brain<16><><CT>" disconnected
L 07/05/2004 - 22:57:45: Kick: "[DEF][87]Fridge<17><UNKNOWN><>" was kicked by "Console"

Last edited by Krush; 06-07-2004 at 08:59.. Reason: update
  
Reply With Quote
Re: The Bots SteamId?
Old
  (#24)
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: The Bots SteamId? - 06-07-2004

that'll make it stop every call even for players..
and FL_FAKECLIENT check does work.. I used it to change the authid of the bots to all sorts of things
  
Reply With Quote
Re: The Bots SteamId?
Old
  (#25)
Krush
Member
 
Status: Offline
Posts: 23
Join Date: Jul 2004
Default Re: The Bots SteamId? - 06-07-2004

Quote:
Originally Posted by sPlOrYgOn
that'll make it stop every call even for players..
and FL_FAKECLIENT check does work.. I used it to change the authid of the bots to all sorts of things
Hm well I see what you mean It just ranked all my bots and ignored me.

How do I fix the part that has the bots not getting the correct STEAM ID when they spawn with bomb or when they disconnect then? (bomb is the main one)

-added
Somehow when it calls to get the AuthID when they spawn with the bomb or they disconnect it is getting the ID as BOT still look, i'm including the logs above it showing they do ahve the ids i gave them
Code:
L 07/06/2004 - 00:14:35: "[AGR][62]Jesus<3><STEAMID_0:0:0000008><>" entered the game
L 07/06/2004 - 00:14:35: "[AGR][62]Jesus<3><STEAMID_0:0:0000008><>" joined team "TERRORIST"
L 07/06/2004 - 00:14:35: World triggered "Game_Commencing"
L 07/06/2004 - 00:14:35: World triggered "Game_Commencing" (CT "0") (T "0")
L 07/06/2004 - 00:14:35: World triggered "Round_End"
L 07/06/2004 - 00:14:35: [STATSX] Reset game stats
L 07/06/2004 - 00:14:35: "[NRM][42]OneShot<4><STEAMID_0:0:0000016><>" entered the game
L 07/06/2004 - 00:14:35: "[NRM][42]OneShot<4><STEAMID_0:0:0000016><>" joined team "CT"
L 07/06/2004 - 00:14:36: "[DEF][70]Violent<5><STEAMID_0:0:0000027><>" entered the game
L 07/06/2004 - 00:14:36: "[DEF][70]Violent<5><STEAMID_0:0:0000027><>" joined team "TERRORIST"
L 07/06/2004 - 00:14:36: "[AGR][44]The Lagger<6><STEAMID_0:0:0000036><>" entered the game
L 07/06/2004 - 00:14:36: "[AGR][44]The Lagger<6><STEAMID_0:0:0000036><>" joined team "TERRORIST"
L 07/06/2004 - 00:14:37: "[DEF][30]Smoke<7><STEAMID_0:0:0000032><>" entered the game
L 07/06/2004 - 00:14:37: "[DEF][30]Smoke<7><STEAMID_0:0:0000032><>" joined team "CT"
L 07/06/2004 - 00:14:37: "[NRM][89]Jackass<8><STEAMID_0:0:0000045><>" entered the game
L 07/06/2004 - 00:14:37: "[NRM][89]Jackass<8><STEAMID_0:0:0000045><>" joined team "CT"
L 07/06/2004 - 00:14:38: "[AGR][65]Tester<9><STEAMID_0:0:0000033><>" entered the game
L 07/06/2004 - 00:14:38: "[AGR][65]Tester<9><STEAMID_0:0:0000033><>" joined team "TERRORIST"
L 07/06/2004 - 00:14:38: "[AGR][62]Jesus<3><BOT><TERRORIST>" triggered "Spawned_With_The_Bomb"
see there at the bottom when he got the bomb he was BOT as id

Last edited by Krush; 06-07-2004 at 10:17..
  
Reply With Quote
Re: The Bots SteamId?
Old
  (#26)
Krush
Member
 
Status: Offline
Posts: 23
Join Date: Jul 2004
Default Re: The Bots SteamId? - 07-07-2004

-update
well I'm stumped, although i know it's this check
Code:
   if (e->v.flags & FL_FAKECLIENT) 
	  RETURN_META_VALUE (MRES_SUPERCEDE, bots[ENTINDEX (e) - 1].steamid);

   RETURN_META_VALUE (MRES_IGNORED, NULL);
that is the problem with the bomb case. some how those conditions are not being met when they spawn with the bomb or when they leave the game.
  
Reply With Quote
Re: The Bots SteamId?
Old
  (#27)
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: The Bots SteamId? - 07-07-2004

Try intercepting pfnGetPlayerWONId, maybe for the bomb person they use that..
  
Reply With Quote
Re: The Bots SteamId?
Old
  (#28)
Krush
Member
 
Status: Offline
Posts: 23
Join Date: Jul 2004
Default Re: The Bots SteamId? - 07-07-2004

Quote:
Originally Posted by sPlOrYgOn
Try intercepting pfnGetPlayerWONId, maybe for the bomb person they use that..
No it's definitely the AuthID cause if I remove the check that's currently in there it works for the bots but if any player joins they have no ID it's just <>

Can't figure out why the bomb one is getting false as the condition

-added
and if it was the WONId then the id wouldn't show up as BOT it'd show as 0 since Wonid is expecting a number

Last edited by Krush; 07-07-2004 at 04:37..
  
Reply With Quote
Re: The Bots SteamId?
Old
  (#29)
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: The Bots SteamId? - 07-07-2004

try this
Code:
const char *pfnGetPlayerAuthId (edict_t *e)
{
   if (e->v.flags & FL_FAKECLIENT)
      RETURN_META_VALUE (MRES_SUPERCEDE, "ASDF");

   RETURN_META_VALUE (MRES_IGNORED, NULL);
}
see if all the bots are ASDF.
this shouldn't affect humans..
  
Reply With Quote
Re: The Bots SteamId?
Old
  (#30)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: The Bots SteamId? - 07-07-2004

replace
Code:
	if (e->v.flags & FL_FAKECLIENT) 
	  RETURN_META_VALUE (MRES_SUPERCEDE, bots[ENTINDEX (e) - 1].steamid);
with
Code:
	if (bots[ENTINDEX (e) - 1].is_used) 
	  RETURN_META_VALUE (MRES_SUPERCEDE, bots[ENTINDEX (e) - 1].steamid);



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
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