Server Help

Bot Questions - how many repels does this Player have?

Anonymous - Wed Feb 05, 2003 10:22 pm
Post subject: how many repels does this Player have?
p->repel seems to always be zero regardless of how many repels player p has icon_sad.gif What does this represent and what would I need to do to see how many repels Player p has?
SOS - Wed Feb 05, 2003 11:31 pm
Post subject:
The bot needs to see the extra position data for that.
There is a server.ini setting that says if mod/smod/sysop can view it.
Anonymous - Sun Feb 09, 2003 12:18 am
Post subject:
in server.ini I have:

PositionDataAccess=2
//if 0, sysops see player stats in spec. If 1, smods/sysops can. If 2, then mod/smods/sysops can

the bot is an smod and p->repel is always 0 still

if this isn't the setting then what is the proper one? thx in advance
SOS - Sun Feb 09, 2003 2:10 am
Post subject:
I talked to Catid, because I tyhink this is a bug and he said "Maybe", so... maybe he has put up a fix already?
Mine GO BOOM - Sun Feb 09, 2003 1:05 pm
Post subject:
Without looking at Catid's source, and going by how the packets work, you actually have to be specing near/on that person to get their extra information. So if your bot is just specing around A1, he'll never get anyone's extra info. If he sits at J10, he'll only get those that come by pretty close to it. Your best method would be every half a second or so, spec the next person in the list.
Anonymous - Sun Feb 09, 2003 2:31 pm
Post subject:
is there a way of donig this with MERV bot and if so, how? thx in advance again.
SOS - Sun Feb 09, 2003 3:58 pm
Post subject:
Catid's bot cycles all the players, so it should work... but I think it cycles too fast(I remember a 1-2 second delay till I got the special data, hmm?)
Mine GO BOOM - Sun Feb 09, 2003 5:00 pm
Post subject:
The way it works packet wise: You request to spec on Bob. The server will now send you Bob's position packet (normal). You now send your own position packets where bob was at, and all of future bob's position packets will now have extra info while your near him.

Way i handled this in my own bot core: Every second, the bot checks all people that are currently in a ship, and checks a variable set to the last time you got extra info from a player. Whoever has the oldest time, i will now spec on them (unless already on them). So once i get their position info, he won't be the oldest info i have on people, so the next cycle of checking, i now will spec another person.
Anonymous - Sun Feb 09, 2003 7:59 pm
Post subject:
what code is required in merv to "spec" a player?
SOS - Mon Feb 10, 2003 12:23 am
Post subject:
Ah, yes, so MERV is cycling too fast sa_tongue.gif
VampZ: It's somewhere in host.cpp, function should have a name with "spectate" something in it.
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group