banimod / etpro / ettv forums Forum Index banimod / etpro / ettv forums
Bani's Discussion Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The demise of Players_Axis,Players_Allies
Goto page 1, 2  Next
 
Post new topic   Reply to topic    banimod / etpro / ettv forums Forum Index -> ET Pro Documentation
View previous topic :: View next topic  
Author Message
bani
Site Admin


Joined: 21 Jul 2002
Posts: 3685

PostPosted: Fri Apr 16, 2004 1:16 am    Post subject: The demise of Players_Axis,Players_Allies Reply with quote

The serverinfo cvars Players_Axis,Players_Allies have been removed from etpro.

Reasons:
The cvars could get very long, in some cases so long that they would overflow the serverinfo string and crash the server.
There was no way to associate spectator client ID#'s with listed players, nor players who had not yet finished connecting.

Solution:
etpro introduces a new cvar which is shorter (so it doesn't overflow the serverinfo string and cause server crashes), easier to parse, and allows for associating player client ID#'s in all cases.

Format:
The new cvar is P, and probably the easiest way to show its usage is by example:

29 frags 30ms bani
106 frags 20ms rain
189 frags 50ms zinx
63 frags 32ms fretn
43 frags 96ms duke'ku
0 frags 999ms ikkyo
100 frags 56ms majikthise
22 frags 108ms boco
31 frags 101ms vio
0 frags 44ms ohayden

P=--------221120111-3

In this case the first 8 server slots are empty (client id 0-7), probably private server slots. bani and rain are client ids 8 and 9, both allies. zinx and fretn are client ids 10 and 11, both axis. duke'ku is allied in client id 12. ikkyo is still connecting in client id 13 and has not been assigned a team yet. majikthise, boco and vio are all axis in slots 14-16. slot 17 is empty. slot 18 is ohayden as spectator.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
BzZ^tziek
Guest





PostPosted: Fri Apr 16, 2004 10:51 am    Post subject: Reply with quote

Am I right when I presume the following:

The clientid we find in the P var is the same as the id of the player in /players ?

For the old Players_Axis,Players_Allies in rtcw OSP and etmain this wasn't the case. This was the clientnum we find in /serverstatus and add 1. (If i remember correctly)

So therefore my question, how can I link the clientid i get from the P var to the clientnum from /serverstatus? I'm too frikkin lazy to find out myself by trial and erroring.

*needs to rewrite lots of code now Sad*
Back to top
bani
Site Admin


Joined: 21 Jul 2002
Posts: 3685

PostPosted: Fri Apr 16, 2004 10:57 am    Post subject: Reply with quote

clientid in P= is the same as /players
so you can use the # for clientkick etc.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
WoodSTokk



Joined: 31 Mar 2004
Posts: 3
Location: Earth / Europe / Austria / Vienna

PostPosted: Wed Jul 21, 2004 6:08 pm    Post subject: Reply with quote

The first number in the StatusResponse are the XP from the Player. Not the frags.

In the StatusRespone the Slot# was not included.
Is the sequence of player in the StatusRespone in a fixed order or mixed?

mfG WoodSTokk
Back to top
View user's profile Send private message
Rain



Joined: 02 Aug 2003
Posts: 651
Location: Muffin Laboratories

PostPosted: Thu Jul 22, 2004 1:40 pm    Post subject: Reply with quote

Fixed order, lowest to highest player number.

I wrote some example PHP to correlate the player info a while back that might help you.
_________________
Rain
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
WoodSTokk



Joined: 31 Mar 2004
Posts: 3
Location: Earth / Europe / Austria / Vienna

PostPosted: Fri Jul 23, 2004 8:54 pm    Post subject: Reply with quote

Oh, thx 4 script Exclamation
Can i use this script on my website?

mfG WoodSTokk
Back to top
View user's profile Send private message
Rain



Joined: 02 Aug 2003
Posts: 651
Location: Muffin Laboratories

PostPosted: Sat Jul 24, 2004 2:27 am    Post subject: Reply with quote

Sure, I wrote it (originally for Vio, I think) so that it could be easily adapted for others to use.
_________________
Rain
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
KingJackaL



Joined: 08 Jan 2004
Posts: 669
Location: ChCh, NZ

PostPosted: Sun Jul 25, 2004 12:41 pm    Post subject: Reply with quote

Rain wrote:
Fixed order, lowest to highest player number.

I wrote some example PHP to correlate the player info a while back that might help you.


Shocked

Awesome. I've spent some time hacking around, and I now have an ET Pro 3 server status browser Smile. I've just finished the server-browser and the server-info pages, see here:

http://www.l3.net.nz/ET/servers.php

( click on any server to access it's info in detail )
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Rain



Joined: 02 Aug 2003
Posts: 651
Location: Muffin Laboratories

PostPosted: Sun Jul 25, 2004 3:52 pm    Post subject: Reply with quote


Too bad everyone's asleep or at work over there, though... They're all empty right now. Sad
_________________
Rain
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
MeeZ



Joined: 23 Apr 2004
Posts: 56

PostPosted: Mon Jul 26, 2004 8:45 am    Post subject: Reply with quote

KingJackaL wrote:
Rain wrote:
Fixed order, lowest to highest player number.

I wrote some example PHP to correlate the player info a while back that might help you.


Shocked

Awesome. I've spent some time hacking around, and I now have an ET Pro 3 server status browser Smile. I've just finished the server-browser and the server-info pages, see here:

http://www.l3.net.nz/ET/servers.php

( click on any server to access it's info in detail )


That is just BRILLIANT!

Well done m8... Youve done yet another great thing for ET.
_________________
Meez
#eat - Quakenet
#necromantia - Quakenet
Back to top
View user's profile Send private message
egbakaet



Joined: 11 Sep 2004
Posts: 5

PostPosted: Sat Sep 11, 2004 8:24 am    Post subject: Need help Reply with quote

I got everything working great just need to know how to add:

Players: 5/10 (or something)
Punkbuster: No (or Yes)
Password: No ('')
Mod: Etpro (etc.)

Can you tell me what I need to add to that code in order to have these too? Thanks guys!
Back to top
View user's profile Send private message
KingJackaL



Joined: 08 Jan 2004
Posts: 669
Location: ChCh, NZ

PostPosted: Sat Sep 11, 2004 1:00 pm    Post subject: Re: Need help Reply with quote

egbakaet wrote:
I got everything working great just need to know how to add:

Players: 5/10 (or something)
Punkbuster: No (or Yes)
Password: No ('')
Mod: Etpro (etc.)

Can you tell me what I need to add to that code in order to have these too? Thanks guys!


Err, dude. All of those are REALLY REALLY obvious if you look at the getstatus replay packet...
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
egbakaet



Joined: 11 Sep 2004
Posts: 5

PostPosted: Sat Sep 11, 2004 1:15 pm    Post subject: Reply with quote

Ummm, only I'm a noob at php and need the code since I have no idea how to do it... Sad
Back to top
View user's profile Send private message
egbakaet



Joined: 11 Sep 2004
Posts: 5

PostPosted: Sat Sep 11, 2004 3:47 pm    Post subject: Reply with quote

Don't mean to be a pain, but could someone help me? I really need some help with this cuz I don't know Jack **** about PHP. Sad Please?...
Back to top
View user's profile Send private message
Deus



Joined: 12 Mar 2004
Posts: 1053
Location: Germany

PostPosted: Sun Sep 12, 2004 7:50 am    Post subject: Reply with quote

http://www.poohunter.de/index.php?seite=getfile&id=19
_________________

http://spielwelt15.monstersgame.net/?ac=vid&vid=39033566
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    banimod / etpro / ettv forums Forum Index -> ET Pro Documentation All times are GMT - 8 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot 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


Powered by phpBB © 2001, 2005 phpBB Group