Xonotic is a free, open source (GPL) ultra-fast, first-person shooter


Follow Xonotic on

Post Reply 
configure the server for leaderboard
04-02-2012, 12:45 PM (This post was last modified: 12-07-2012 03:55 AM by -maniac|Su-.)
Post: #1
configure the server for leaderboard
Hi - here.s Su again Rolleyes

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) ?

GreetZ Su

[Image: banner14.png]

visit forum >> (Prophets) - Providing eternal peace, instantly!
Visit this user's website Find all posts by this user
Quote this message in a reply
04-03-2012, 08:22 AM (This post was last modified: 04-03-2012 08:23 AM by Mirio.)
Post: #2
RE: configure the server for leaderboard
Is it g_playerstats_uri or g_playerstats_url? I can't check right now (and ALWAYS forget this command Tongue), but url would make sense (for me at least).

Beside that, if you test it you need at least 2 players (bots don't count).

The easiest way is probably to talk directly to Antibody (IRC/QuakeNet #xonotic).

[Image: 21.png]
IRC (QuakeNet): #bot.xonotic | #xonotic.pickup | #xonotic | #xonotic.cup | #xonotic.hub
YouTube | Twitch.tv | QuakeLive
Movies: Mirification #1 | Mirification #2 | Mirificaption #1 | Mirification #3 | Mirification #4

Visit this user's website Find all posts by this user
Quote this message in a reply
04-03-2012, 09:16 AM
Post: #3
RE: configure the server for leaderboard
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"
Find all posts by this user
Quote this message in a reply
04-03-2012, 09:49 AM
Post: #4
RE: configure the server for leaderboard
(04-03-2012 09:16 AM)tZork Wrote:  Assuming you have the required lib (d0_blind_id) setup...

Waeh ? aehh .... nope - I dont have .... :/

GreetZ Su

[Image: banner14.png]

visit forum >> (Prophets) - Providing eternal peace, instantly!
Visit this user's website Find all posts by this user
Quote this message in a reply
04-03-2012, 09:57 AM (This post was last modified: 04-03-2012 09:59 AM by Antibody.)
Post: #5
RE: configure the server for leaderboard
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 Big Grin).

[Image: 6.png]
Find all posts by this user
Quote this message in a reply
04-03-2012, 11:03 AM
Post: #6
RE: configure the server for leaderboard
I guess now it becomes embarrassingly ...

Never used IRC in my life Confused

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?

GreetZ Su

[Image: banner14.png]

visit forum >> (Prophets) - Providing eternal peace, instantly!
Visit this user's website Find all posts by this user
Quote this message in a reply
04-03-2012, 02:51 PM
Post: #7
RE: configure the server for leaderboard
Simple way to use IRC: http://webchat.quakenet.org/

Channel: #xonotic

Smile

[Image: 21.png]
IRC (QuakeNet): #bot.xonotic | #xonotic.pickup | #xonotic | #xonotic.cup | #xonotic.hub
YouTube | Twitch.tv | QuakeLive
Movies: Mirification #1 | Mirification #2 | Mirificaption #1 | Mirification #3 | Mirification #4

Visit this user's website Find all posts by this user
Quote this message in a reply
04-09-2012, 03:00 PM (This post was last modified: 04-11-2012 09:50 AM by -maniac|Su-.)
Post: #8
RE: configure the server for leaderboard
Hi - here I.m again very puzzled ....

Last days I.ve tried a lot to get connected to your Leaderboard.

So I.ve learned to compile and setup d0_blind_id - this should be work right now:

[Image: bildsc11.png]

I.m also tried various versions of Xonotic - which are:

Xonotic 0.6.0 - 0.6.0autobuild - git-Version

Anyway nothing helps - my server isn.t shown on stats.xonotic.org/

Like I said in first post server.cfg include: g_playerstats_uri "http://stats.xonotic.org/stats/submit"

Anyone a good idea??

GreetZ Su

[Image: banner14.png]

visit forum >> (Prophets) - Providing eternal peace, instantly!
Visit this user's website Find all posts by this user
Quote this message in a reply
04-11-2012, 09:49 AM (This post was last modified: 04-15-2012 10:26 AM by -maniac|Su-.)
Post: #9
RE: configure the server for leaderboard
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?

Greetz Su

[Image: banner14.png]

visit forum >> (Prophets) - Providing eternal peace, instantly!
Visit this user's website Find all posts by this user
Quote this message in a reply
04-18-2012, 06:00 AM
Post: #10
RE: configure the server for leaderboard
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).

[Image: 6.png]
Find all posts by this user
Quote this message in a reply
04-18-2012, 01:58 PM (This post was last modified: 04-18-2012 02:01 PM by -maniac|Su-.)
Post: #11
RE: configure the server for leaderboard
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

That.s the thingy I cant explain for me Huh

GreetZ Su

[Image: banner14.png]

visit forum >> (Prophets) - Providing eternal peace, instantly!
Visit this user's website Find all posts by this user
Quote this message in a reply
04-18-2012, 02:21 PM
Post: #12
RE: configure the server for leaderboard
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)?

[Image: 6.png]
Find all posts by this user
Quote this message in a reply
04-18-2012, 02:49 PM (This post was last modified: 04-18-2012 02:51 PM by -maniac|Su-.)
Post: #13
RE: configure the server for leaderboard
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

GreetZ Su

[Image: banner14.png]

visit forum >> (Prophets) - Providing eternal peace, instantly!
Visit this user's website Find all posts by this user
Quote this message in a reply
04-18-2012, 02:57 PM
Post: #14
RE: configure the server for leaderboard
Is your git up to date? You might want to update that before searching too deep. Also, what branch do you use?

[Image:http://i.imgur.com/4XODR.png]640K ought to be enough for anybody.
     ― Linux Torvalds
Find all posts by this user
Quote this message in a reply
04-18-2012, 03:17 PM (This post was last modified: 04-18-2012 03:24 PM by -maniac|Su-.)
Post: #15
RE: configure the server for leaderboard
Quote:Is your git up to date? ...

The problems are on git server as well as on 0.6.0 server resp. 0.6.0autobuild server ...

GreetZ Su

[Image: banner14.png]

visit forum >> (Prophets) - Providing eternal peace, instantly!
Visit this user's website Find all posts by this user
Quote this message in a reply
04-18-2012, 03:20 PM
Post: #16
RE: configure the server for leaderboard
Would you mind grabbing a tcpdump and PM'ing it to me? We want to check if the full request is being sent on your side but not getting to mine.

[Image: 6.png]
Find all posts by this user
Quote this message in a reply
04-18-2012, 03:29 PM
Post: #17
RE: configure the server for leaderboard
... grabbing a tcpdump and PM'ing ... Huh

Would you be so kind to explain ... Rolleyes

GreetZ Su

[Image: banner14.png]

visit forum >> (Prophets) - Providing eternal peace, instantly!
Visit this user's website Find all posts by this user
Quote this message in a reply
04-18-2012, 03:40 PM (This post was last modified: 04-18-2012 03:40 PM by Antibody.)
Post: #18
RE: configure the server for leaderboard
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:

Code:
sudo tcpdump -n -s0 -vvvXXX host 79.247.144.100

What I think you should run:

Code:
sudo tcpdump -w tcpdump.out -n -s0 -vvvXXX dst stats.xonotic.org

...you would run this until a game has completed.

[Image: 6.png]
Find all posts by this user
Quote this message in a reply
04-18-2012, 04:18 PM (This post was last modified: 04-18-2012 04:33 PM by -maniac|Su-.)
Post: #19
RE: configure the server for leaderboard
tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
Got 17

After Strg+c
32 packets captured
36 packets received by filter
0 packets dropped by kernel

GreetZ Su

[Image: banner14.png]

visit forum >> (Prophets) - Providing eternal peace, instantly!
Visit this user's website Find all posts by this user
Quote this message in a reply
04-22-2012, 12:00 PM
Post: #20
RE: configure the server for leaderboard
... even I.ve changed nothing in config the 1on1 server mysteriously now shown in leaderboard ... Huh
But the DM & Duel server who has the similar config isn.t.

Could anyone explain to me ??

GreetZ Su

[Image: banner14.png]

visit forum >> (Prophets) - Providing eternal peace, instantly!
Visit this user's website Find all posts by this user
Quote this message in a reply
04-22-2012, 03:10 PM
Post: #21
RE: configure the server for leaderboard
Both servers need a unique key.
You have to run one of those servers with -sessionid option.
Like:
Code:
./xonotic-linux64-dedicated -sessionid duel +serverconfig duel.cfg
This will create a new unique key file for your duel server (key0.d0si.duel in your userdir)

my stats
Manage your servers: xstools | Get server configs | Get cts server configs
My maps: CTF: tarx vorix CTS: matuka matuka dekry packer
Youtube Channel
Find all posts by this user
Quote this message in a reply
04-22-2012, 04:22 PM
Post: #22
RE: configure the server for leaderboard
(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?

Thx
Find all posts by this user
Quote this message in a reply
04-23-2012, 01:36 AM (This post was last modified: 04-23-2012 01:36 AM by Mr. Bougo.)
Post: #23
RE: configure the server for leaderboard
(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?

Thx

As far as client IDs are concerned, here's the current state of d0_blind_id.txt: http://git.xonotic.org/?p=xonotic/d0_bli...d0;hb=HEAD

I don't know about server authentication, but it probably works the same?

[Image:http://i.imgur.com/4XODR.png]640K ought to be enough for anybody.
     ― Linux Torvalds
Find all posts by this user
Quote this message in a reply
04-23-2012, 05:39 AM (This post was last modified: 04-23-2012 05:40 AM by Antibody.)
Post: #24
RE: configure the server for leaderboard
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.

[Image: 6.png]
Find all posts by this user
Quote this message in a reply
10-16-2012, 10:05 AM
Post: #25
RE: configure the server for leaderboard
Since a week at least no server is shown at leaderboard again ... Tongue

Error message in log file: Player stats writing failed: -1

I.ve googled again and found: http://dev.xonotic.org/issues/1079

But libcurl, libcurl.so.4 ... is installed ...

hmmm - anyone an idea??

GreetZ Su

[Image: banner14.png]

visit forum >> (Prophets) - Providing eternal peace, instantly!
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
Question How to start a Server with Mutators ? Wolfseye 1 134 07-08-2014 12:07 PM
Last Post: Mr. Bougo
  Turning on AES Support on the server? evit 8 1,663 06-01-2014 01:12 PM
Last Post: dipol
  [SOLVED] Stats failing to submit | FreeBSD server Pricetx 1 501 03-16-2014 03:31 PM
Last Post: Pricetx
  [SOLVED] Not attempting to generate keys | FreeBSD server Pricetx 3 549 03-16-2014 02:00 PM
Last Post: Pricetx
  [ Drive Mofo ] Vehicle CTF Server end user 5 1,051 03-01-2014 05:12 PM
Last Post: end user
  Server Question - CTF Topher 2 587 01-25-2014 03:22 PM
Last Post: Topher
  Some issues with 0.7.0 server -maniac|Su- 16 2,024 01-15-2014 04:29 PM
Last Post: -maniac|Su-
  [ MoFo With A Shotgun ] Server end user 8 1,297 01-08-2014 03:14 PM
Last Post: end user
  [ Freeze Mofo ] CRA Freezetag Server end user 65 6,221 01-03-2014 01:57 PM
Last Post: end user
  Prophets Server -maniac|Su- 14 2,402 01-02-2014 10:11 AM
Last Post: -maniac|Su-

Forum Jump: