Author |
Message |
xsp0rtsfanx Seasoned Helper

Age:36 Gender: Joined: Dec 27 2004 Posts: 168 Location: California Offline
|
Posted: Mon Aug 08, 2005 2:35 pm Post subject: Help with a bot |
 |
|
|
|
I'm probably going to use MERVBot or something like that I just need a plugin that i'm not sure how to make. It's kind of like what Mystic Kingdom does when you type .monster it says the coordinates of the monster but I want it so when people do a certain command it tells them where people are around them (since the zone has everyone cloaked). If anyone could tell me what the code is I would use I would appreciate it. |
|
Back to top |
|
 |
Maverick

Age:40 Gender: Joined: Feb 26 2005 Posts: 1521 Location: The Netherlands Offline
|
Posted: Mon Aug 08, 2005 2:41 pm Post subject: |
 |
|
|
|
Try making it on your own first, then people will be helping you into achieving your goal.
Not alot of people around here make bots by request for free. _________________
|
|
Back to top |
|
 |
xsp0rtsfanx Seasoned Helper

Age:36 Gender: Joined: Dec 27 2004 Posts: 168 Location: California Offline
|
Posted: Mon Aug 08, 2005 2:48 pm Post subject: |
 |
|
|
|
I've been trying to figure out how to make it on my own but I'm not exactly sure how I would do a locate on a person. I cant find a sysop command to make it easier so is it a custom code that would try finding the coords of the person (such as 512,512) and then putting them into the A1 or J5 form or would it come back in that form. |
|
Back to top |
|
 |
Bak ?ls -s 0 in

Age:26 Gender: Joined: Jun 11 2004 Posts: 1826 Location: USA Offline
|
Posted: Mon Aug 08, 2005 3:03 pm Post subject: |
 |
|
|
|
it's like 128 or 256 tiles per letter / number. Just take the largest Letter / number combo (bottom right), and divide that into 1024 and then it's a simple forumula. Math. _________________ SubSpace Discretion: A Third Generation SubSpace Client |
|
Back to top |
|
 |
Maverick

Age:40 Gender: Joined: Feb 26 2005 Posts: 1521 Location: The Netherlands Offline
|
Posted: Mon Aug 08, 2005 3:40 pm Post subject: |
 |
|
|
|
The command is *where (PM to player), it will return the coordinates like:
xsp0rtsfanx: O11
in a type of an arena message. So you can have the bot filter that message, chop the first part (before the ': ') off and return the rest to the user. |
|
Back to top |
|
 |
xsp0rtsfanx Seasoned Helper

Age:36 Gender: Joined: Dec 27 2004 Posts: 168 Location: California Offline
|
Posted: Mon Aug 08, 2005 3:51 pm Post subject: |
 |
|
|
|
Ok thanks. I didn't know about the *where command.. I'll try figuring out the code myself from there then. Thanks for the help. |
|
Back to top |
|
 |
Maverick

Age:40 Gender: Joined: Feb 26 2005 Posts: 1521 Location: The Netherlands Offline
|
Posted: Mon Aug 08, 2005 5:48 pm Post subject: |
 |
|
|
|
no problem, good luck  |
|
Back to top |
|
 |
Bak ?ls -s 0 in

Age:26 Gender: Joined: Jun 11 2004 Posts: 1826 Location: USA Offline
|
Posted: Mon Aug 08, 2005 8:23 pm Post subject: |
 |
|
|
|
or you the player position and divide it, rather that a hack. |
|
Back to top |
|
 |
Cerium Server Help Squatter

Age:42 Gender: Joined: Mar 05 2005 Posts: 807 Location: I will stab you. Offline
|
Posted: Tue Aug 09, 2005 1:33 am Post subject: |
 |
|
|
|
Assuming the bot is close enough to get the position packets. _________________ There are 7 user(s) ignoring me right now. |
|
Back to top |
|
 |
Bak ?ls -s 0 in

Age:26 Gender: Joined: Jun 11 2004 Posts: 1826 Location: USA Offline
|
Posted: Tue Aug 09, 2005 7:35 am Post subject: |
 |
|
|
|
In Mervbot.ini:
Misc:NoisySpectator=1 |
|
Back to top |
|
 |
Maverick

Age:40 Gender: Joined: Feb 26 2005 Posts: 1521 Location: The Netherlands Offline
|
Posted: Tue Aug 09, 2005 10:20 am Post subject: |
 |
|
|
|
What are the downsides of that feature of mervbot anyway? |
|
Back to top |
|
 |
liito-orava Novice

Gender: Joined: Sep 24 2003 Posts: 41 Offline
|
Posted: Tue Aug 09, 2005 11:00 am Post subject: |
 |
|
|
|
Takes more bandwidth at least. It likely increases CPU usage a little too but even if so it'd be very minor. _________________ "Do you hear that? That is the sound of nobody giving a fuck!"
Wolfix> Lesbian transvestites trapped in man's bodies spanking their monkeys to freq 395 |
|
Back to top |
|
 |
Bak ?ls -s 0 in

Age:26 Gender: Joined: Jun 11 2004 Posts: 1826 Location: USA Offline
|
Posted: Tue Aug 09, 2005 12:31 pm Post subject: |
 |
|
|
|
nah, it doesn't seem like it would take more bandwidth |
|
Back to top |
|
 |
Cerium Server Help Squatter

Age:42 Gender: Joined: Mar 05 2005 Posts: 807 Location: I will stab you. Offline
|
Posted: Tue Aug 09, 2005 10:12 pm Post subject: |
 |
|
|
|
How quickly does merv jump around from player to player? Not that it would have much of an effect on bandwidth or performance, but it would effect accuracy.
If its 1 player/sec, with 30 people, theres a chance youll only get a reliable update every 30 seconds. For something like this, itd be better if he set NoisySpectator to 0, and code the bot to spec the current monster or whatever. |
|
Back to top |
|
 |
xsp0rtsfanx Seasoned Helper

Age:36 Gender: Joined: Dec 27 2004 Posts: 168 Location: California Offline
|
Posted: Tue Aug 09, 2005 10:29 pm Post subject: |
 |
|
|
|
I'd have it so everytime a player wanted to check where a player is (max of 5 times per 30 seconds i can try) then it just says the coordinates of the people who are in the arena playing (not the spectators) |
|
Back to top |
|
 |
Bak ?ls -s 0 in

Age:26 Gender: Joined: Jun 11 2004 Posts: 1826 Location: USA Offline
|
|
Back to top |
|
 |
50% Packetloss Server Help Squatter

Age:40 Gender: Joined: Sep 09 2003 Posts: 561 Location: Santa Clarita, California Offline
|
|
Back to top |
|
 |
Maverick

Age:40 Gender: Joined: Feb 26 2005 Posts: 1521 Location: The Netherlands Offline
|
Posted: Wed Aug 10, 2005 7:32 am Post subject: |
 |
|
|
|
50% Packetloss wrote: | it will lag your zone once the population reaches a certain point. |
Lag the entire zone when one client (the bot in this case) is only switching between players to get positions on them??
I can understand that the bot can't handle the load at one point if it has to get all the positions of around 100 people... but lag the entire zone? |
|
Back to top |
|
 |
Bak ?ls -s 0 in

Age:26 Gender: Joined: Jun 11 2004 Posts: 1826 Location: USA Offline
|
Posted: Wed Aug 10, 2005 7:48 am Post subject: |
 |
|
|
|
Hmm, after loooking further you're right in that it doesn't cycle only to player it's lost the position from, just to the next player on the playerlist (after the one it's following) and only if it's lost his position. So if you have a small map it won't need to cycle at all, but you'll have to cycle everyone in the arena to know this. This is a poor way of doing it in my opinion.
I'm going to have to agree with Maverick in that you won't lag the entire zone. I don't think you'll even lag the bot any more than normal by using noisyspectator, becase it's always recveiving packets for the area around the bot, even though that area is changing, you're never going to receive more than that area. The misc:sendpositiondelay has nothing to do with incoming packets, only with how often outgoing packets are sent (so indirectly how often you can switch players, but since noisySpectator won't switch more than every 20 ms anyway, lowering it won't make much of a difference). |
|
Back to top |
|
 |
50% Packetloss Server Help Squatter

Age:40 Gender: Joined: Sep 09 2003 Posts: 561 Location: Santa Clarita, California Offline
|
Posted: Wed Aug 10, 2005 12:05 pm Post subject: |
 |
|
|
|
Ok, who has been doing this longer?
Noisy spectator sends a C2S_SPECREQUEST to the server. The server in return sends a S2C_SPECDATA request to the client, which turns on extra position data (allowing the bot to see items and such). Then when the bot wants to switch to the next player, it sends out a packet and then the server has to tell one client to turn off thier SPECDATA and tell the next client to turn thier's on. Bots are fast and they will do this very quickly, spamming clients and the server with extra packets. EG tried it out once and it lagged the place to shit. |
|
Back to top |
|
 |
Smong Server Help Squatter

Joined: 1043048991 Posts: 0x91E Offline
|
Posted: Wed Aug 10, 2005 1:59 pm Post subject: |
 |
|
|
|
What about the Misc:ExtraPositionData setting and making the bot non-sysop? Surely subgame would not request the extra player data and not send such a request packet to the client. |
|
Back to top |
|
 |
50% Packetloss Server Help Squatter

Age:40 Gender: Joined: Sep 09 2003 Posts: 561 Location: Santa Clarita, California Offline
|
Posted: Wed Aug 10, 2005 7:01 pm Post subject: |
 |
|
|
|
Nah, I think it still does. Just that setting keeps the client from displaying the results on the screen. But I've never tested it, check out ASSS's code. |
|
Back to top |
|
 |
D1st0rt Miss Directed Wannabe

Age:37 Gender: Joined: Aug 31 2003 Posts: 2247 Location: Blacksburg, VA Offline
|
Posted: Wed Aug 10, 2005 7:58 pm Post subject: |
 |
|
|
|
I talked to Ekted about this a while ago and I'll pull up the log when I get a chance in a few days. _________________
 |
|
Back to top |
|
 |
Maverick

Age:40 Gender: Joined: Feb 26 2005 Posts: 1521 Location: The Netherlands Offline
|
Posted: Tue Aug 16, 2005 5:41 pm Post subject: |
 |
|
|
|
So whats the solution to this (apart from residing to as3) ?
I'm making a bot that is now speccing certain areas over and over to see if people entered the areas, but its not giving the right results. (Sometimes the bot doesn't see players at all) This to avoid the NoisySpectator settings, which does give good results - but I fear of the consequences when running the bot with alot of players.
Maybe I should try to use EVENT_PositionHook instead of EVENT_Tick for a quicker cycle. |
|
Back to top |
|
 |
D1st0rt Miss Directed Wannabe

Age:37 Gender: Joined: Aug 31 2003 Posts: 2247 Location: Blacksburg, VA Offline
|
Posted: Tue Aug 16, 2005 6:37 pm Post subject: |
 |
|
|
|
Here be what he said, my best date estimate is around late nov 04
(Mr. Ekted)>shouldn't really be doing it at all, but if you have to
(Mr. Ekted)>as slowly as possible
(Mr. Ekted)>you know how much extra b/w it adds when you do that?
(Mr. Ekted)>bot sends spec, server acks, server tells client it's being specced, client acks, client sends large version of pos packet
(Mr. Ekted)>bot sends spec to another client, server acks, server tells old client to stop being specced, client acks, server tells client it's being specced, client acks, client sends large version of pos packet
:Mr. Ekted:but it is possible to get all of the weapons in an area if it sits still
:Mr. Ekted:not in spec?
(Mr. Ekted)>only if the entire map fits in bot's radar
:Mr. Ekted:do you have an idea on a minimum jump limit to have a decent refresh rate of pos?
(Mr. Ekted)>pos only gets sent every 100ms, so no faster than that, but that means with 40 players, you get updates every 4 seconds minimim
(Mr. Ekted)>junky was able to bring EG to its knees trying to spec really fast
|
|
|
Back to top |
|
 |
|