Create an account


Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] configure the server for leaderboard

#1
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
Reply

#2
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).
Reply

#3
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"
Reply

#4
(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
Reply

#5
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).
asyyy^ | are you releated to chuck norris?
Reply

#6
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
Reply

#7
Simple way to use IRC: http://webchat.quakenet.org/

Channel: #xonotic

Smile
Reply

#8
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
Reply

#9
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
Reply

#10
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).
asyyy^ | are you releated to chuck norris?
Reply

#11
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
Reply

#12
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)?
asyyy^ | are you releated to chuck norris?
Reply

#13
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
Reply

#14
Is your git up to date? You might want to update that before searching too deep. Also, what branch do you use?
Reply

#15
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
Reply

#16
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.
asyyy^ | are you releated to chuck norris?
Reply

#17
... grabbing a tcpdump and PM'ing ... Huh

Would you be so kind to explain ... Rolleyes

GreetZ Su
Reply

#18
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.
asyyy^ | are you releated to chuck norris?
Reply

#19
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
Reply

#20
... 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
Reply

#21
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)
Reply

#22
(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
Reply

#23
(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?
Reply

#24
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.
asyyy^ | are you releated to chuck norris?
Reply

#25
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
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  I can't see my listen server on server list fnmain 1 673 10-07-2023, 07:28 AM
Last Post: Grimnack
  Server not visible on the server browser for others or me DankoLord 1 1,820 02-21-2023, 08:02 PM
Last Post: ballerburg9005
  BaI server | South American Xonotic server (located in Chile) z411 0 2,755 01-02-2022, 11:36 PM
Last Post: z411
  Full server tutorial start-2-finish with maps & config from live server xonotic.us.to ballerburg9005 0 8,049 09-03-2021, 10:21 AM
Last Post: ballerburg9005
Question [NEED HELP] Server uses 40% CPU whereas Nexuiz server runs with max 10% e-pig 6 4,966 08-19-2020, 10:17 PM
Last Post: ballerburg9005
  [NEED HELP] Server dont appear in server browser abslimit 0 2,578 03-15-2020, 04:13 AM
Last Post: abslimit
  How to change server cfg on modified server veecho 4 4,319 04-24-2019, 08:15 PM
Last Post: BuddyFriendGuy
  [NEED HELP] Xonotic Server crashes TF2 server Professor 2 2,950 02-20-2018, 07:50 PM
Last Post: Professor
  0.6.0 Server not shown in server browser -maniac|Su- 2 3,745 06-04-2015, 10:48 AM
Last Post: -maniac|Su-
  Server appears to launch but is not in the server list TickleMeElmo 5 5,073 06-09-2012, 02:24 PM
Last Post: Mr. Bougo

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB original theme © iAndrew 2016, remixed by -z-