.:: 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 ::. > Developer's Farm > General Bot Coding
General Bot Coding See what a pain it is to get those little mechs shooting around

Reply
 
Thread Tools
Bots not fully spawning in steam servers
Old
  (#1)
Sparken
Guest
 
Status:
Posts: n/a
Default Bots not fully spawning in steam servers - 23-05-2004

Hi Gang, Kind of a newbie here so if this has been asked please forgive me.

I code a Half-Life mod that uses rhobot version 2 built into the mod code. When the mod runs in a won server environment, the bots spawn normally and do their thing. When the mod is run in a steamed server environment, the bots join the game and the names and models appear at the spawn points but the bots are frozen in midair (inches above floor at spawn points) and will neither die nor move etc.

I initially thought that it was because the bots have a steam id of "unknown" and so I compiled the mod using the latest valve 2.3 sdk and changed all references of GETPLAYERWONID to GETPLAYERAUTHID, etc. But no change, the bots are still frozen.

The only difference in a server with working bots vs. a server with non working bots seems to be valve's "steam". Anyone run into anything like this or have any ideas?
  
Reply With Quote
Re: Bots not fully spawning in steam servers
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: Bots not fully spawning in steam servers - 23-05-2004

Does your MOD feature a MOTD display or a menu selection is required for connecting clients ? Make sure your bots receive the menu message and browse it successfully.



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: Bots not fully spawning in steam servers
Old
  (#3)
Sparken
Guest
 
Status:
Posts: n/a
Default Re: Bots not fully spawning in steam servers - 23-05-2004

Thank you for your reply Pierre-Marie,

No there is no message of the day or menu(s). Players arive in the game in observer mode, then simply hit the fire button to spawn and play. The bots are at least doing this because they do "appear" in physical form. YOu can shoot them and they bleed. They just cannot die nor move.

It has to have something to do with steam, however I cannot figure out what it is.
???
  
Reply With Quote
Re: Bots not fully spawning in steam servers
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: Bots not fully spawning in steam servers - 23-05-2004

Ah, then that might be because the bot's max speed is incorrectly retrieved.

The fact that bots bleed when you shoot at them means that RunPlayerMove() is called for them each frame. Hence we can guess that the bots call their Think() function successfully.

However if in spite of the RunPlayerMove() call the bots still float in mid-air then the movement speeds you pass in RunPlayerMove() must be zero. The movement is still executed, but the bots perform it at speed 0, giving the impression they are stuck and don't think at all.

Perhaps Steam changed the way the players' max speeds work. In Counter-Strike for example, this bug occured with the Steam upgrade. Before, with CS 1.5, the max speeds were sent to clients over the network using a network message, now in Steam/CS 1.6 they are just set in the players' edicts at pPlayerEdict->v.maxspeed.

That's all I can think of so far...



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: Bots not fully spawning in steam servers
Old
  (#5)
Dj_Shawn
Guest
 
Status:
Posts: n/a
Default Re: Bots not fully spawning in steam servers - 18-07-2004

I too have the same problem with my server since the two day switch to get it running on Steam!.... Thats the only thing I have left to get fixed!...

Any help would be greatly apreciated!! ;-)

Dj_Shawn
Nashville DJ's OZ - 69.243.201.34:27015
www.djshawn.com
  
Reply With Quote
Re: Bots not fully spawning in steam servers
Old
  (#6)
Whistler
Summoner
 
Whistler's Avatar
 
Status: Offline
Posts: 1,499
Join Date: Feb 2004
Location: Mist Village
Default Re: Bots not fully spawning in steam servers - 18-07-2004

try using ClientPutInServer() instead of DispatchSpawn() in the function to create bot.
  
Reply With Quote
Re: Bots not fully spawning in steam servers
Old
  (#7)
Dj_Shawn
Guest
 
Status:
Posts: n/a
Default Re: Bots not fully spawning in steam servers - 18-07-2004

Hey Whistler,
I have no idea what your talking about... Do you think you explain just a bit more?...
Don't have a clue what your talking about with> ClientPutInServer() instead of DispatchSpawn() in the function to create bot.

I and the other guy asking are using Rho-Bot that comes bundled with the OZ DM 3.0 Mod

I have tried disabling the OZ bundled Rho-Bots and installing the REAL Rho-Bots and get the same thing......???
  
Reply With Quote
Re: Bots not fully spawning in steam servers
Old
  (#8)
Whistler
Summoner
 
Whistler's Avatar
 
Status: Offline
Posts: 1,499
Join Date: Feb 2004
Location: Mist Village
Default Re: Bots not fully spawning in steam servers - 18-07-2004

this is botman's bot10 source:
Code:
      BotClass = GetClassPtr( (CBot *) VARS(BotEnt) );
      infobuffer = GET_INFOBUFFER( BotClass->edict( ) );
      clientIndex = BotClass->entindex( );

      SET_CLIENT_KEY_VALUE( clientIndex, infobuffer, "model", c_skin );
      SET_CLIENT_KEY_VALUE( clientIndex, infobuffer, "skill", c_skill );
      SET_CLIENT_KEY_VALUE( clientIndex, infobuffer, "index", c_index );

      ClientConnect( BotClass->edict( ), c_name, "127.0.0.1", ptr );
      DispatchSpawn( BotClass->edict( ) );
change the DispatchSpawn thing to ClientPutInServer.
  
Reply With Quote
Re: Bots not fully spawning in steam servers
Old
  (#9)
Whistler
Summoner
 
Whistler's Avatar
 
Status: Offline
Posts: 1,499
Join Date: Feb 2004
Location: Mist Village
Default Re: Bots not fully spawning in steam servers - 19-07-2004

Okay I've got it, it's because of CBasePlayer::IsBot().
try this one to see if it works (attached).
Attached Files
File Type: zip rhobot_steam.zip (433.1 KB, 428 views)
  
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 - 2025, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com