JensForstmann / tmt2

TMT - Tournament Match Tracker: Supervise/Manage Counter-Strike 2 matches with ease!
MIT License
24 stars 6 forks source link

Feature Request: Scoreboard in frontend and/or via webhook #38

Open Bastika07 opened 3 months ago

Bastika07 commented 3 months ago

It would be nice to get the scoreboard after a match is finished via webhook or if you can see the scoreboard in the frontend.

JensForstmann commented 2 months ago

Last time I checked the game server actually sends score board like data via its logging to the tmt... BUT only at the beginning of a round and not at the end or after a round. So the final (last) scoreboard that would be displayed is of the start of the last round :(

Example data:

04/04/2024 - 07:54:54.138 - JSON_BEGIN{
04/04/2024 - 07:54:54.138 - "name": "round_stats",
04/04/2024 - 07:54:54.138 - "round_number" : "3",
04/04/2024 - 07:54:54.138 - "score_t" : "0",
04/04/2024 - 07:54:54.138 - "score_ct" : "2",
04/04/2024 - 07:54:54.138 - "map" : "de_dust2",
04/04/2024 - 07:54:54.138 - "server" : "TMT2 Test Server",
04/04/2024 - 07:54:54.138 - "fields" : "             accountid,   team,  money,  kills, deaths,assists,    dmg,    hsp,    kdr,    adr,    mvp,     ef,     ud,     3k,     4k,     5k,clutchk, firstk,pistolk,sniperk, blindk,  bombk,firedmg,uniquek,  dinks,chickenk"
04/04/2024 - 07:54:54.138 - "players" : {
04/04/2024 - 07:54:54.138 - "player_0" : "            17041626,      3,   7600,      1,      0,      0,    100, 100.00,   0.00,     50,      1,      0,      0,      0,      0,      0,      1,      1,      1,      0,      0,      1,      0,      1,      0,      0"
04/04/2024 - 07:54:54.138 - "player_1" : "                   0,      0,    800,      0,      0,      0,      0,   0.00,   0.00,      0,      0,      0,      0,      0,      0,      0,      0,      0,      0,      0,      0,      0,      0,      0,      0,      0"
04/04/2024 - 07:54:54.138 - "player_2" : "                   0,      2,   2700,      0,      1,      0,      0,   0.00,   0.00,      0,      0,      0,      0,      0,      0,      0,      0,      0,      0,      0,      0,      0,      0,      0,      0,      0"
04/04/2024 - 07:54:54.138 - }}JSON_END
JensForstmann commented 2 months ago

For a correct scoreboard I'd have to implement all events on their own and keep track of them. Not impossible only a lot of work... But something that I've considered to be able to get some nice stats about teams and players across multiple matches.