04-02-2012, 12:45 PM (This post was last modified: 12-07-2012, 03:55 AM by -maniac|Su-.)
Hi - here.s Su again
one question:
I want to publish the player/server stats on stats.xonotic.org
In server config I added: set "g_playerstats_uri" "http://stats.xonotic.org/stats/submit"
But nothing is displayed on Leaderboard - did I forgot something (like usual) ?
Assuming you have the required lib (d0_blind_id) setup, git compiles does it automagicaly, not sure abt autobuild/release), iirc all you need is to add this line to your server-cfg:
g_playerstats_uri "http://stats.xonotic.org/stats/submit"
04-03-2012, 09:57 AM (This post was last modified: 04-03-2012, 09:59 AM by Antibody.)
Hi Su, please drop into #xonotic on freenode's (or Quakenet's) IRC and we can figure out what's going on. Let me know if this isn't possible and we can start a PM discussion instead (but it'll be slow-going ).
Okay - I found folder .../Xonotic/source/d0_blind_id on my computer - but what to do now??
My OS is openSUSE 12.1 - maybe you have a little howto for me?
04-11-2012, 09:49 AM (This post was last modified: 04-15-2012, 10:26 AM by -maniac|Su-.)
btw. server console tell me this:
Code:
^7[20125104/10/12_1451:07]Downloading http://www.xonotic.org/weaponbalance/ -> memory
^7[20125104/10/12_1451:07]Downloading http://stats.xonotic.org/stats/submit -> memory
^7[20125104/10/12_1451:07]Got response from weapon stats server:
^7[20125104/10/12_1451:07] OK
^7[20125104/10/12_1451:07]End of response.
^7[20125104/10/12_1451:07]Weapon stats written
^7[20125104/10/12_1451:08]Player stats writing failed: -500
Found this: http://dev.xonotic.org/issues/804 maybe the same problem? - But key_0.d0si or key_0.d0si.duel (for duel serever) is in directory ...
And if it is what to do?
I've confirmed that these servers are showing up in my log just fine. You're getting "writing failed" because you don't have enough players in these games for them to be stored (at least two real players).
04-18-2012, 01:58 PM (This post was last modified: 04-18-2012, 02:01 PM by -maniac|Su-.)
Hi Antibody =)
I.m very pleased that you reply ... but I.ve to contradict .. :/
When I play against a Bot the server.log tells me:
Code:
^7[20122504/13/12_1025:27]:end
^7[20122504/13/12_1025:27]:gameover
^7[20122504/13/12_1025:27]Downloading http://www.xonotic.org/weaponbalance/ -> memory
^7[20122504/13/12_1025:27]Downloading http://stats.xonotic.org/stats/submit -> memory
^7[20122504/13/12_1025:27]Got response from weapon stats server:
^7[20122504/13/12_1025:27] NOTE: Empty match discarded
^7[20122504/13/12_1025:27]End of response.
^7[20122504/13/12_1025:27]Weapon stats written
^7[20122504/13/12_1025:28]Got response from player stats server:
^7[20122504/13/12_1025:28]
^7[20122504/13/12_1025:28]End of response.
^7[20122504/13/12_1025:28]Player stats written
But when I.ve played vs. a real opponent it tells me:
Code:
^7[20123804/13/12_2038:40]:labels:player:score!!,kills,deaths<,suicides<,,,,,,
^7[20123804/13/12_2038:40]:player:see-labels:30,31,27,1,0,0,0,0,0,0:435:4:1:^1 .^xC70|^3^x6C0r^x0B1o^x0E6p^x0DDh^x05De^x50Ct^x807!^xC06n ^7
^7[20123804/13/12_2038:40]:player:see-labels:22,26,35,4,0,0,0,0,0,0:398:4:4:^xEFF[CCC]^x7CFK^xFEDINGSHOT[CCC]^7
^7[20123804/13/12_2038:40]:end
^7[20123804/13/12_2038:40]:gameover
^7[20123804/13/12_2038:40]^1 .^xC70|^3^x6C0r^x0B1o^x0E6p^x0DDh^x05De^x50Ct^x807!^xC06n ^7 ^7wins.
^7[20123804/13/12_2038:40]Downloading http://www.xonotic.org/weaponbalance/ -> memory
^7[20123804/13/12_2038:40]Downloading http://stats.xonotic.org/stats/submit -> memory
^7[20123804/13/12_2038:40]Got response from weapon stats server:
^7[20123804/13/12_2038:40] OK
^7[20123804/13/12_2038:40]End of response.
^7[20123804/13/12_2038:40]Weapon stats written
^7[20123804/13/12_2038:42]Player stats writing failed: -500
This is interesting. All I see from your server is blank games - no bots, no nothing. I'm afraid I don't know what is going on. To be clear, all I see is this from your two servers:
Code:
V 1
R xonotic-v0.6.0-89-g5b5cc03
T 1334771156.508357
G dm
O MinstaGib
M atelier
I 0.1334770256.153618
S (ProphetsClanServer) -minsta|> DM & Duel <|hook- hosted by Su [git]
C 7
U 26005
D 900.032593
...and for the other server:
Code:
V 1
R xonotic-v0.6.0
T 1334770924.715376
G dm
O MinstaGib
M final_rage
I 0.1334770014.806237
S (ProphetsClanServer) -minsta|> 1on1 <|hook- hosted by Su [0.6.0]
C 8
U 26004
D 900.032471
What's missing in there is any player information. This can mean that you don't have any bots set up or that something else is wrong besides the connectivity to my server. Since you say you played at least two games - one with a bot and another with a person - I would expect to see those entries in my logs somewhere, which I do not.
I'm not sure where to go next. Do the servers start up okay, and with no errors in the log (besides this error upon submission)?
04-18-2012, 02:49 PM (This post was last modified: 04-18-2012, 02:51 PM by -maniac|Su-.)
Hi again - the servers running at least fine ...
In server.log there are a huge amount but they causes of the nexuiz or prophets clan maps which are used.
The error messages because the player stats are always in every match.
When I play vs a bot - message: Empty match discarded - Player stats written
When I play vs a real opponent - message: Player stats writing failed: -500
04-18-2012, 03:40 PM (This post was last modified: 04-18-2012, 03:40 PM by Antibody.)
I ran a tcpdump on my webserver to confirm that the full request *isn't* coming through on my side (it isn't). I just wanted to see if the same is happening on your side. What I ran:
... even I.ve changed nothing in config the 1on1 server mysteriously now shown in leaderboard ...
But the DM & Duel server who has the similar config isn.t.
(04-22-2012, 03:10 PM)ItsMe Wrote: Both servers need a unique key.
What pubkey scheme is in Xonotic? I'm quite puzled by this.
There is a public key distributed with Xonotic boundle, but what for? Does any player have, by default, a unique key? From what I understand 1 IP can have only 1 key signed in a long while. So how does multiple servers on 1 IP handle their keys? Do signed keys matter for servers, anyway?
04-23-2012, 01:36 AM (This post was last modified: 04-23-2012, 01:36 AM by Mr. Bougo.)
(04-22-2012, 04:22 PM)_Subzero_ Wrote:
(04-22-2012, 03:10 PM)ItsMe Wrote: Both servers need a unique key.
What pubkey scheme is in Xonotic? I'm quite puzled by this.
There is a public key distributed with Xonotic boundle, but what for? Does any player have, by default, a unique key? From what I understand 1 IP can have only 1 key signed in a long while. So how does multiple servers on 1 IP handle their keys? Do signed keys matter for servers, anyway?
04-23-2012, 05:39 AM (This post was last modified: 04-23-2012, 05:40 AM by Antibody.)
As I've said before, Su's servers had no issue sending their stats to me and had two different keys as expected. The issue was there was no player data coming into the requests before, whereas now there is data. I still can't explain that.
As for the server keys, there should be one per server using the -sessionid parameter that ItsMe mentioned. That's so servers can be uniquely identified. Player keys work the same way (using the same library Mr. Bougo linked). That is how stats can track you across games even if you were to change your nick. The game manages your player key for you automatically, but you can configure how it uses your key in-game. You can read more about this and the issues around keys here.