User panel stuff on forum
  10 posts on 1 page  1
Client Talk
2009-03-13, 13:29
Member
116 posts

Registered:
Mar 2008
How do you figure out the player ids for stats on this?

I type users and the ids from that don't match at all.

mvd_dumpstats

info from stats.xml I ran from MVD demo

</demoinfos>
<player id="0">
<nick>
<char>66</char>
<char>97</char>
<char>98</char>
<char>121</char>
<char>66</char>
<char>101</char>
<char>97</char>
<char>114</char>
</nick>
<kills>
<axe>0</axe>
<sg>0</sg>
<ssg>0</ssg>
<ng>0</ng>
<sng>2</sng>
<gl>0</gl>
<rl>1</rl>
<lg>0</lg>
<spawn>0</spawn>
<all>3</all>
</kills>
<teamkills>
<axe>0</axe>
<sg>0</sg>
<ssg>0</ssg>
<ng>0</ng>
<sng>0</sng>
<gl>0</gl>
<rl>0</rl>
<lg>0</lg>
<spawn>1</spawn>
<all>1</all>
</teamkills>
<deaths>6</deaths>
2009-03-13, 13:55
Member
1435 posts

Registered:
Jan 2006
if it doesn't work as it should, file in bugreport please
2009-03-13, 16:15
Member
271 posts

Registered:
Feb 2006
userids are not player slot ids, I suppose.
moo
2009-03-15, 18:28
Member
116 posts

Registered:
Mar 2008
mvd_dumpstats is using <player id="0"> to 9 (10 total players)

Here is what I get from typing users
http://img.photobucket.com/albums/v148/jebatzel/ezquake289.jpg


first user on the is is spectator so reason for -999 frags
http://img.photobucket.com/albums/v148/jebatzel/ezquake290.jpg


So would player id 0 equal the first player listed (player id 42) under users?
2009-03-15, 20:12
Member
251 posts

Registered:
Jul 2007
Nope, the nick (given in the nick element of the XML you've posted) relates to the user BabyBear.
2009-03-15, 22:47
Member
116 posts

Registered:
Mar 2008
The stats.xml only listed 10 players though <player id="0"> to <player id="9">

here is the file if anyone wants to look at it http://twctf.org/files/stats.xml
2009-03-16, 00:22
News Writer
169 posts

Registered:
Dec 2007
I guess you have already figured this out but for all those who haven't, if you start translating all this to ascii..

<nick> Ascii
<char>66</char> B
<char>97</char> a
<char>98</char> b
<char>121</char> y
<char>66</char> B
<char>101</char> e
<char>97</char> a
<char>114</char> r
</nick>
2009-03-16, 08:45
Administrator
2058 posts

Registered:
Jan 2006
But how can BabyBear have frags and teamkills and deaths, as a spectator?
2009-03-16, 14:01
Member
116 posts

Registered:
Mar 2008
Converted from Ascii used this page

<player id="1"> Trickle
<player id="2"> AKA-Dret
<player id="3"> Crazy_One[F8S]
<player id="4"> xatax
<player id="5"> DL AÎ&#146;N &#159;
<player id="6"> EvilOne[F8S] Ä¡
<player id="7"> Red Rocker
<player id="8"> ÂludÓhoÔ GUM&#145;
<player id="9"> yuÇ ÒáÖ&#145;

weird how it totally skipped any stats for me.
2009-03-19, 19:23
Member
116 posts

Registered:
Mar 2008
guess I will fill out a bug report.

I just tried doing another one with 10 players and 2 spectators and it only did stats for 9.
  10 posts on 1 page  1