| View previous topic :: View next topic |
| Author |
Message |
bani Site Admin

Joined: 21 Jul 2002 Posts: 3685
|
Posted: Fri Apr 16, 2004 1:16 am Post subject: The demise of Players_Axis,Players_Allies |
|
|
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 |
|
 |
BzZ^tziek Guest
|
Posted: Fri Apr 16, 2004 10:51 am Post subject: |
|
|
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 * |
|
| Back to top |
|
 |
bani Site Admin

Joined: 21 Jul 2002 Posts: 3685
|
Posted: Fri Apr 16, 2004 10:57 am Post subject: |
|
|
clientid in P= is the same as /players
so you can use the # for clientkick etc. |
|
| Back to top |
|
 |
WoodSTokk
Joined: 31 Mar 2004 Posts: 3 Location: Earth / Europe / Austria / Vienna
|
Posted: Wed Jul 21, 2004 6:08 pm Post subject: |
|
|
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 |
|
 |
Rain

Joined: 02 Aug 2003 Posts: 651 Location: Muffin Laboratories
|
Posted: Thu Jul 22, 2004 1:40 pm Post subject: |
|
|
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 |
|
 |
WoodSTokk
Joined: 31 Mar 2004 Posts: 3 Location: Earth / Europe / Austria / Vienna
|
Posted: Fri Jul 23, 2004 8:54 pm Post subject: |
|
|
Oh, thx 4 script
Can i use this script on my website?
mfG WoodSTokk |
|
| Back to top |
|
 |
Rain

Joined: 02 Aug 2003 Posts: 651 Location: Muffin Laboratories
|
Posted: Sat Jul 24, 2004 2:27 am Post subject: |
|
|
Sure, I wrote it (originally for Vio, I think) so that it could be easily adapted for others to use. _________________ Rain |
|
| Back to top |
|
 |
KingJackaL

Joined: 08 Jan 2004 Posts: 669 Location: ChCh, NZ
|
Posted: Sun Jul 25, 2004 12:41 pm Post subject: |
|
|
Awesome. I've spent some time hacking around, and I now have an ET Pro 3 server status browser . 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 |
|
 |
Rain

Joined: 02 Aug 2003 Posts: 651 Location: Muffin Laboratories
|
Posted: Sun Jul 25, 2004 3:52 pm Post subject: |
|
|
Too bad everyone's asleep or at work over there, though... They're all empty right now.  _________________ Rain |
|
| Back to top |
|
 |
MeeZ

Joined: 23 Apr 2004 Posts: 56
|
Posted: Mon Jul 26, 2004 8:45 am Post subject: |
|
|
| KingJackaL wrote: |
Awesome. I've spent some time hacking around, and I now have an ET Pro 3 server status browser . 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 |
|
 |
egbakaet
Joined: 11 Sep 2004 Posts: 5
|
Posted: Sat Sep 11, 2004 8:24 am Post subject: Need help |
|
|
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 |
|
 |
KingJackaL

Joined: 08 Jan 2004 Posts: 669 Location: ChCh, NZ
|
Posted: Sat Sep 11, 2004 1:00 pm Post subject: Re: Need help |
|
|
| 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 |
|
 |
egbakaet
Joined: 11 Sep 2004 Posts: 5
|
Posted: Sat Sep 11, 2004 1:15 pm Post subject: |
|
|
Ummm, only I'm a noob at php and need the code since I have no idea how to do it...  |
|
| Back to top |
|
 |
egbakaet
Joined: 11 Sep 2004 Posts: 5
|
Posted: Sat Sep 11, 2004 3:47 pm Post subject: |
|
|
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. Please?... |
|
| Back to top |
|
 |
Deus

Joined: 12 Mar 2004 Posts: 1053 Location: Germany
|
|
| Back to top |
|
 |
|