.:: 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
The Bots SteamId?
Old
  (#1)
Aragon
Guest
 
Status:
Posts: n/a
Default The Bots SteamId? - 14-06-2004

Hi!
I wonder if theres a way to get rid of the zero in the bots faked "steamid"
tex
bot<1><0><CT>
Im using psychostats for the stats and it selects by the steamid. And since the bots have <0> as id theres stats are collected to. And I dont want that.
  
Reply With Quote
Re: The Bots SteamId?
Old
  (#2)
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? - 14-06-2004

Yes, you just have to remove the hook for pfnGetPlayerAuthId() in the bot source code.
I had added it because some people wanted exactly the contrary: that bot stats be logged too.



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
Re: The Bots SteamId?
Old
  (#3)
KWo
Developer of PODBot mm
 
KWo's Avatar
 
Status: Offline
Posts: 3,425
Join Date: Apr 2004
Default Re: The Bots SteamId? - 14-06-2004

Quote:
Originally Posted by Pierre-Marie Baty
Yes, you just have to remove the hook for pfnGetPlayerAuthId() in the bot source code.
I had added it because some people wanted exactly the contrary: that bot stats be logged too.
Yes - but for example in StatsMe2.8.x there is a special variable defining if bots have to be ranked, too, or not.

sm_rankbots 1

So - maybe in Psychostats there can be some variable for this, too.
Another thing can be some possibility of using some clients commands like Slap, Slay, etc on bots. Latest Clanmod lets use some of these commands on bots, too (if the variable cm_botsmcds 1), but nobody can say if this change You proposed above do some unwanted result for some other plugins (for example AMX) or not. If sPlOrYgOn will prepare new dll with this change, I can test it with StatsMe and Clanmod, but need somebody to test with AMX - these plugins are the most frequently used by people.
  
Reply With Quote
Re: The Bots SteamId?
Old
  (#4)
Aragon
Guest
 
Status:
Posts: n/a
Default Re: The Bots SteamId? - 14-06-2004

PMB

I found this in engine.cpp

Line 324
Code:
 
const char *pfnGetPlayerAuthId (edict_t *e)
{
if (e->v.flags & FL_FAKECLIENT)
RETURN_META_VALUE (MRES_SUPERCEDE, "0");
RETURN_META_VALUE (MRES_IGNORED, NULL);
}
line 353
Code:
 
meta_engfuncs.pfnGetPlayerAuthId = pfnGetPlayerAuthId;
So would it be enough to take these away?
Will this change to the code do something strange to something else? tex. amxx?

Oki I will try and see what happends..

Last edited by Aragon; 14-06-2004 at 17:33..
  
Reply With Quote
Re: The Bots SteamId?
Old
  (#5)
KWo
Developer of PODBot mm
 
KWo's Avatar
 
Status: Offline
Posts: 3,425
Join Date: Apr 2004
Default Re: The Bots SteamId? - 14-06-2004

Quote:
Originally Posted by Aragon
Will this change to the code do something strange to something else? tex. amxx?
We have to check this, but taking off this can switch-off only some side-effects, unfortunally maybe used by some people until now.
Without tests nobody can say something more.
  
Reply With Quote
Re: The Bots SteamId?
Old
  (#6)
Huntkillaz
Member
 
Huntkillaz's Avatar
 
Status: Offline
Posts: 594
Join Date: Mar 2004
Location: Middle Earth (New Zealand)
Default Re: The Bots SteamId? - 14-06-2004

ehhhh we dont want this removed from the actual pb do we?..i like seeing which bot is better than me .....so i can hunt em down next round


●_•

Last edited by Huntkillaz; 15-06-2004 at 01:58..
  
Reply With Quote
Re: The Bots SteamId?
Old
  (#7)
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? - 15-06-2004

After removing that code..
I didn't crash nor did anything go wrong..
in CS 1.5 their WONids became "BOT" but in CS 1.6 their steam ids became "UNKNOWN"
So in the "logging question" thread someone asked why they now show "0" instead of "BOT" and this is the reason..
I was thinking of just removing it but that would make them "UNKNOWN" in CS 1.6 so I think we should put "BOT" instead of "0" there.. anyone agree?
  
Reply With Quote
Re: The Bots SteamId?
Old
  (#8)
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? - 15-06-2004

The fact why I wanted it to be a number was that some stats servers expected to see a number here, and not a character string. That's just it.

But if after all you test it and you see it works as well with a character string, sure, go ahead then.



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
Re: The Bots SteamId?
Old
  (#9)
Aragon
Guest
 
Status:
Posts: n/a
Default Re: The Bots SteamId? - 15-06-2004

Splo!
I took that function away and in Cz theres steamid are <BOT> and not unknown..

How hard would it be to code to have the opportunity to be able to choose this on a fly? I mean do I want <BOT> or <0>?

Last edited by Aragon; 15-06-2004 at 08:46..
  
Reply With Quote
Re: The Bots SteamId?
Old
  (#10)
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? - 16-06-2004

very simple



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