Server Help

Bot Questions - Weird.

The Arctica - Sun May 15, 2005 7:28 am
Post subject: Weird.
How come when i *prize #27 someone a rocket, and i let the bot display amount of rockets, doesn't matter how many rockets i give, the bot always shows 0. :S And:

Quote:
p->(burst, repel, thor, brick, decoy, rocket, portal) = how many items of that type player has


Can anyone help me?

-Arctica
Solo Ace - Sun May 15, 2005 8:03 am
Post subject:
I think the bot has to spectate the user first before it can update that information.
Bak - Sun May 15, 2005 8:18 am
Post subject:
In mervbot.ini set Misc::NoisySpectator to 1, if it's not there add it.
The Arctica - Sun May 15, 2005 8:30 am
Post subject:
Thanks Bak, that worked out.
Maverick - Sun May 15, 2005 12:36 pm
Post subject:
Bak, do you know what that setting does?
I'm wondering what it enables icon_smile.gif
Solo Ace - Sun May 15, 2005 1:19 pm
Post subject:
Maybe it makes the bot iterate through the playerlist and spectate all players to update information? icon_smile.gif
Bak - Sun May 15, 2005 4:53 pm
Post subject:
that's exactly correct solo ace

from host.cpp:

Code: Show/Hide
   if (pp->ship != SHIP_Spectator && botInfo.db->noisySpectator)
   {
      if (time - pp->lastPositionUpdate > 100)
      if (time - lastSpec > 20)
      {   // Request position if we've lost him
         pp->lastPositionUpdate = time;

         spectate(pp);
      }
   }


the value of botInfo.db->noisySpectator is set in botdp.cpp:

Quote:

noisySpectator = (getPrivateProfile32("Misc", "NoisySpectator", "0", path) != 0);

Cyan~Fire - Fri May 20, 2005 5:14 pm
Post subject:
Which is why ASSS owns.
50% Packetloss - Fri May 20, 2005 5:28 pm
Post subject:
Normally a bot does not request extra-position data from a player, doing so on every player in the arena will lag the hell out of the place (depending on the population).
Here is the position packet
Code: Show/Hide

   /*   Field   Length   Description
      0      1      Type byte
      1      1      Rotation
      2      2      Time stamp
      4      2      X pixels
      6      1      Ping
      7      1      Bounty
      8      1      Player ident
      9      1      Togglables
      10      2      Y velocity
      12      2      Y pixels
      14      2      X velocity
   Spectating with ExtraPositionData or *energy
      16      2      Energy
   Spectating with ExtraPositionData
      18      2      S2CLag
      20      2      Timer
      22      4      Item information
   */

Solo Ace - Fri May 20, 2005 5:51 pm
Post subject:
Sup yo 50 cent, dats c00l homie.

Why would a MERV need updated information for all players anyway?
If you're going to use a player's information, make sure that player's information is up-to-date, but iterating through the arenalist and updating all player data would be overkill since you're only processing a very small part of the data anyway.
Plugins where updating information constantly would be required are an exception of course.
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group