.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   Releases, Installers, Docs & Coding (http://forums.bots-united.com/forumdisplay.php?f=48)
-   -   The Bots SteamId? (http://forums.bots-united.com/showthread.php?t=1970)

Krush 06-07-2004 06:11

Re: The Bots SteamId?
 
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.

KWo 06-07-2004 06:19

Re: The Bots SteamId?
 
Try to use EDIT function to re-edit Your latest post. In this case You will not be a multi-poster...:D

Krush 06-07-2004 07:36

Re: The Bots SteamId?
 
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"


sPlOrYgOn 06-07-2004 07:46

Re: The Bots SteamId?
 
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 :D

Krush 06-07-2004 08:53

Re: The Bots SteamId?
 
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 :D

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

Krush 07-07-2004 02:52

Re: The Bots SteamId?
 
-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.

sPlOrYgOn 07-07-2004 02:54

Re: The Bots SteamId?
 
Try intercepting pfnGetPlayerWONId, maybe for the bomb person they use that..

Krush 07-07-2004 03:36

Re: The Bots SteamId?
 
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

sPlOrYgOn 07-07-2004 03:43

Re: The Bots SteamId?
 
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..

Pierre-Marie Baty 07-07-2004 06:11

Re: The Bots SteamId?
 
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);



All times are GMT +2. The time now is 10:39.

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