.:: 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 ::. > Enhancement Workshop > Metamod and metamod plugins
Metamod and metamod plugins Plugins and improvements for the metamod server-side mod

Reply
 
Thread Tools
Steam IDs and bots
Old
  (#1)
clamatius
Member
 
clamatius's Avatar
 
Status: Offline
Posts: 6
Join Date: Jan 2004
Location: Seattle
Default Steam IDs and bots - 05-02-2004

First of all, I'll describe the problem I'm having. I have a bot for Natural Selection and the newest version of the game has a feature that's causing me some issues. When a player joins a game in progress, the game appears to look for players it's seen playing before (including current players), matching by SteamID. If it finds one, it gives the new player the same upgrades as the previously seen player.

This allows the game to support people disconnecting and reconnecting, without them losing upgrades.

The problem is that the bots all have the same SteamID, so any bot joining while the game is in progress gets given the same upgrades as the first bot to join the round.

So:

1) Is there any way of setting the steam ID for a fake client?

2) If I do, will that have any bad effects (e.g. causing some kind of steam auth failure)?

I should note that I'm not 100% sure that's what's happening, it's just my best guess.
  
Reply With Quote
Re: Steam IDs and bots
Old
  (#2)
botmeister
Ex-Council Member
 
botmeister's Avatar
 
Status: Offline
Posts: 1,090
Join Date: Nov 2003
Location: Canada
Default Re: Steam IDs and bots - 05-02-2004

afaik you cannot change the id of a bot. However if you can program in c/c++ you could make a plugin that passes on a unique steam id for each bot to the NS mod. You'd do this by hooking onto the egines "authid" function and overriding it with your own code. If this is something you wish to do, the let us know.


Maker of the (mEAn) Bot.Admin Manager

"In theory, there is no difference between theory and practice. But, in practice, there is." - Jan L.A. van de Snepscheut
  
Reply With Quote
Re: Steam IDs and bots
Old
  (#3)
clamatius
Member
 
clamatius's Avatar
 
Status: Offline
Posts: 6
Join Date: Jan 2004
Location: Seattle
Default Re: Steam IDs and bots - 05-02-2004

Gotcha. Ok, I'll look into that.

I didn't make myself clear - this is my own bot, written from scratch in C++. All the source code is online at whichbot.com.

WhichBot and RCBot are the two "major" bots for NS (there are a couple of others but their feature coverage is fairly low).
  
Reply With Quote
Re: Steam IDs and bots
Old
  (#4)
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: Steam IDs and bots - 05-02-2004

Hello fellow bot coder and welcome to Bots United then!
Do you already have a forum ? If so, we can put a link to it at the bottom of the Bots United forum main page.

For your Steam ID problem, the function you are looking for is pfnGetPlayerAuthID(). And you DO can change the Steam ID of a bot, all you need to do is to pass on your own ID string to this function when the calling entity is one of your bots. For an example of use of this function with bots, see my logfix plugin for metamod (it's available from my site with source code).



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: Steam IDs and bots
Old
  (#5)
clamatius
Member
 
clamatius's Avatar
 
Status: Offline
Posts: 6
Join Date: Jan 2004
Location: Seattle
Default Re: Steam IDs and bots - 05-02-2004

Is there any significance to the SteamID you return (i.e. does it matter what it is)?

I do have a forum, although it's the horrible Sourceforge one and very limited. It's currently at:

http://sourceforge.net/forum/?group_id=76903
  
Reply With Quote
Re: Steam IDs and bots
Old
  (#6)
BAStumm
Member
 
BAStumm's Avatar
 
Status: Offline
Posts: 138
Join Date: Jan 2004
Location: Spokane, WA USA
Default Re: Steam IDs and bots - 05-02-2004

I doubt the NS mod cares what the id is, its just matching... SO create your own. Id do something like Bot:1234 where 1234 is the players "userid" that way you keep getting new ones automatically as map changes occur or as bots leave and join.






  
Reply With Quote
Re: Steam IDs and bots
Old
  (#7)
botmeister
Ex-Council Member
 
botmeister's Avatar
 
Status: Offline
Posts: 1,090
Join Date: Nov 2003
Location: Canada
Default Re: Steam IDs and bots - 05-02-2004

Quote:
Originally Posted by BAStumm
I doubt the NS mod cares what the id is, its just matching... SO create your own. Id do something like Bot:1234 where 1234 is the players "userid" that way you keep getting new ones automatically as map changes occur or as bots leave and join.
You may run into trouble in a couple of of ways, one is that some stats programs will fail if the steam id is invalid (does not follow the correct id syntax), also if you use a valid steam id you should try and make it so it cannot cause duplicates with real players, I suggest you use something like STEAM_x:nnnnnnn where STEAM_x is something that never shows up in a game eg, STEAM_9:9


Maker of the (mEAn) Bot.Admin Manager

"In theory, there is no difference between theory and practice. But, in practice, there is." - Jan L.A. van de Snepscheut

Last edited by botmeister; 05-02-2004 at 20:59..
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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