Create an account

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Game Server's Packet to XonStats

Quote:<[-z-]> servers send a UDP packet to the stats server
<Antares> <[-z-]> servers send a UDP packet to the stats server
<Antares> is this why some matches aren't recorded on XonStats?
<Antares> and if the packet gets dropped or whatever contingency, the protocol doesnt retransmit

<[-z-]> Antares: Antibody questions or read the source
Done over UDP or TCP?

Here's how I went about tracing the code, if you're interested.  I still don't have a definite answer for you, but maybe someone can take it from here.

Game code side:

grep -R "g_playerstats_gamereport_uri" **/*.qc -B 2                                                                     
data/xonotic-data.pk3dir/qcsrc/common/playerstats.qc- });
data/xonotic-data.pk3dir/qcsrc/common/playerstats.qc: if(autocvar_g_playerstats_gamereport_uri != "")
data/xonotic-data.pk3dir/qcsrc/common/playerstats.qc- PlayerStats_GameReport_DelayMapVote = true;
data/xonotic-data.pk3dir/qcsrc/common/playerstats.qc- url_multi_fopen(
data/xonotic-data.pk3dir/qcsrc/common/playerstats.qc: autocvar_g_playerstats_gamereport_uri,
data/xonotic-data.pk3dir/qcsrc/common/playerstats.qc-void PlayerStats_GameReport_Init() // initiated before InitGameplayMode so that scores are added properly
data/xonotic-data.pk3dir/qcsrc/common/playerstats.qc: if(autocvar_g_playerstats_gamereport_uri == "") { return; }

grep -R "url_multi_fopen" **/*.qc                                                                             

data/xonotic-data.pk3dir/qcsrc/common/playerstats.qc: url_multi_fopen(
data/xonotic-data.pk3dir/qcsrc/lib/urllib.qc:void url_multi_fopen(string url, int mode, url_ready_func rdy, entity pass)
data/xonotic-data.pk3dir/qcsrc/lib/urllib.qc: LOG_INFO("url_multi_fopen: need at least one URL\n");
data/xonotic-data.pk3dir/qcsrc/server/weapons/weaponstats.qc: url_multi_fopen(autocvar_sv_weaponstats_file, FILE_APPEND, WeaponStats_ready, NULL);

grep -R "void url_single_fopen" **/*.qc -n                                                                     
data/xonotic-data.pk3dir/qcsrc/lib/urllib.qc:85:void url_single_fopen(string url, int mode, url_ready_func rdy, entity pass)

XonStat Side:

(accepting a POST request).

Stats are sent over TCP. There is no redundancy, though that would be nice. At best retry logic on the server-side could be implemented.
asyyy^ | are you releated to chuck norris?

Possibly Related Threads…
Thread Author Replies Views Last Post
  How can i add a Game mode? HirnloserHering 2 4,137 08-29-2015, 06:33 AM
Last Post: HirnloserHering
  development and life cycle of a game community BuddyFriendGuy 9 9,808 04-04-2015, 01:58 AM
Last Post: BuddyFriendGuy
  Xonotic Game Engine, Mapping, Development - General Developer Questions p14r 6 9,746 08-04-2014, 10:24 AM
Last Post: p14r
Rainbow Colorful in-game chat Melanosuchus 13 14,809 09-05-2013, 12:49 PM
Last Post: Mr. Bougo
  [plan] A single-player game creation toolkit using the Xonotic framework MirceaKitsune 21 29,651 06-18-2013, 10:15 AM
Last Post: Zeo
  To Xonotic developers about their game... noobermin 17 15,417 06-17-2013, 01:39 PM
Last Post: frostwyrm333
  Game key bindings working while typing text AviyaL 3 5,057 09-23-2012, 05:35 AM
Last Post: Mr. Bougo
  Are server mods possible? oaties 4 5,500 03-12-2012, 12:33 PM
Last Post: Cortez666
  IRC client in the game (working prototype) Akari 4 9,397 04-09-2011, 02:52 PM
Last Post: atomic1fire
  assault test (US server is now avaiable) Cortez666 45 43,161 01-30-2011, 01:39 PM
Last Post: Mirio

Forum Jump:

Users browsing this thread:
1 Guest(s)

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