Author Topic: Little gamestat.txt suggestion  (Read 1385 times)

0 Members and 2 Guests are viewing this topic.

Offline JotEmI

  • Soldier
  • **
  • Posts: 188
Little gamestat.txt suggestion
« on: February 18, 2011, 07:32:17 pm »
I suggest that there should be a little more info stored in gamestat.txt, like server's name, maxplayers, whether the server is passworded or not, etc. Now I have to connect to lobby first to retrieve server's name, maxplayers and so on and the then get the gamestat.txt to check time left, team score, players stats, etc. I think it'd really help ppl who are trying to get some basic info on servers (e.g. Simple server status). It shouldn't be that hard to implement since all the info is already available, it's just the matter of writing it to the gamestat.txt file.

Offline Shoozza

  • Retired Soldat Developer
  • Veteran
  • ******
  • Posts: 1632
  • Soldat's Babysitter
    • Website
Re: Little gamestat.txt suggestion
« Reply #1 on: February 18, 2011, 11:43:52 pm »
So how should the new gamestat.txt look like and what should it include and what not and for what reason?
Rules
Tools: ARSSE - SARS - SRB - chatMod

Offline JotEmI

  • Soldier
  • **
  • Posts: 188
Re: Little gamestat.txt suggestion
« Reply #2 on: February 19, 2011, 07:41:36 am »
I'd suggest smth like that:

Code: [Select]
In-Game Statistics
Name: server_name #Server name, case sensitive
Players: n
Maxplayers: n #Max number of players, n=unigned int
Map: map_name
Gamemode: game_mode
Timelimit: m #m=minutes, unsigned int without leading zero
Timeleft: m:s
Passworded: is_passworded #Is server passworded or not, is_passworded = string: "Yes" or "No"
Pointlimit: n #Cap/kill limit, n=unsigned int
Team 1: n
Team 2: n
Team 3: n
Team 4: n
Players list: (name/kills/caps/deaths/team/ping)
player_name
player_points
player_caps #unsigned int holding player's caps
player_deaths
player_team

I think it's pretty much all the info anybody would need. Adding Maxplayers, Timelimit and Pointlimit kinda results from presence of Players, Timeleft and Team score. If there are current values of those stats why not including their limits? Name and Passworded would eliminate the necessity to connect to the lobby to retrieve this info, and player_caps feels obvious since player's kills and caps are now separated.
I believe adding more stats (like next map, max spectators, etc.) is not necessary as they're not really relevant to what's currently happening on the server.