Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
Weird.

 
Post new topic   Reply to topic Printable version
 View previous topic  Plugin Idea Post :: Post Warning:  View next topic  
Author Message
The Arctica
Newbie


Gender:Gender:Male
Joined: Dec 04 2004
Posts: 13
Offline

PostPosted: Sun May 15, 2005 7:28 am    Post subject: Weird. Reply to topic Reply with quote

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
Back to top
View users profile Send private message Add User to Ignore List
Solo Ace
Yeah, I'm in touch with reality...we correspond from time to time.


Age:37
Gender:Gender:Male
Joined: Feb 06 2004
Posts: 2583
Location: The Netherlands
Offline

PostPosted: Sun May 15, 2005 8:03 am    Post subject: Reply to topic Reply with quote

I think the bot has to spectate the user first before it can update that information.
Back to top
View users profile Send private message Add User to Ignore List
Bak
?ls -s
0 in


Age:26
Gender:Gender:Male
Joined: Jun 11 2004
Posts: 1826
Location: USA
Offline

PostPosted: Sun May 15, 2005 8:18 am    Post subject: Reply to topic Reply with quote

In mervbot.ini set Misc::NoisySpectator to 1, if it's not there add it.
_________________
SubSpace Discretion: A Third Generation SubSpace Client
Back to top
View users profile Send private message Add User to Ignore List AIM Address
The Arctica
Newbie


Gender:Gender:Male
Joined: Dec 04 2004
Posts: 13
Offline

PostPosted: Sun May 15, 2005 8:30 am    Post subject: Reply to topic Reply with quote

Thanks Bak, that worked out.
Back to top
View users profile Send private message Add User to Ignore List
Maverick
broken record


Age:40
Gender:Gender:Male
Joined: Feb 26 2005
Posts: 1521
Location: The Netherlands
Offline

PostPosted: Sun May 15, 2005 12:36 pm    Post subject: Reply to topic Reply with quote

Bak, do you know what that setting does?
I'm wondering what it enables icon_smile.gif
_________________
Nickname: Maverick (I changed my name!)
TWCore developer | Subspace statistics
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Solo Ace
Yeah, I'm in touch with reality...we correspond from time to time.


Age:37
Gender:Gender:Male
Joined: Feb 06 2004
Posts: 2583
Location: The Netherlands
Offline

PostPosted: Sun May 15, 2005 1:19 pm    Post subject: Reply to topic Reply with quote

Maybe it makes the bot iterate through the playerlist and spectate all players to update information? icon_smile.gif
Back to top
View users profile Send private message Add User to Ignore List
Bak
?ls -s
0 in


Age:26
Gender:Gender:Male
Joined: Jun 11 2004
Posts: 1826
Location: USA
Offline

PostPosted: Sun May 15, 2005 4:53 pm    Post subject: Reply to topic Reply with quote

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);
Back to top
View users profile Send private message Add User to Ignore List AIM Address
Cyan~Fire
I'll count you!
I'll count you!


Age:37
Gender:Gender:Male
Joined: Jul 14 2003
Posts: 4608
Location: A Dream
Offline

PostPosted: Fri May 20, 2005 5:14 pm    Post subject: Reply to topic Reply with quote

Which is why ASSS owns.
_________________
This help is informational only. No representation is made or warranty given as to its content. User assumes all risk of use. Cyan~Fire assumes no responsibility for any loss or delay resulting from such use.
Wise men STILL seek Him.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
50% Packetloss
Server Help Squatter


Age:40
Gender:Gender:Male
Joined: Sep 09 2003
Posts: 561
Location: Santa Clarita, California
Offline

PostPosted: Fri May 20, 2005 5:28 pm    Post subject: Reply to topic Reply with quote

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
   */

_________________
Current Terror Alert Level
Back to top
View users profile Send private message Add User to Ignore List Send email AIM Address
Solo Ace
Yeah, I'm in touch with reality...we correspond from time to time.


Age:37
Gender:Gender:Male
Joined: Feb 06 2004
Posts: 2583
Location: The Netherlands
Offline

PostPosted: Fri May 20, 2005 5:51 pm    Post subject: Reply to topic Reply with quote

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.
Back to top
View users profile Send private message Add User to Ignore List
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> Bot Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 118 page(s) served in previous 5 minutes.

phpBB Created this page in 0.557763 seconds : 34 queries executed (85.3%): GZIP compression disabled