-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Scoreboard in frontend and/or via webhook #38
Comments
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:
|
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. |
I'm part of the organization of a lan, and we'd like to use tmt2, but having players' stats after the event as we had we the ebot would be very cool. We're ready to develop this feature, but we don't know where to start, how tmt2 communicates with the server and how we can extract the data. |
Hey thanks for your interest. Technical documentation is lacking a bit so I'll just write down the parts to get you started: Every log line from the cs2 server is sent via http to tmt and will end up in Line 462 in f5499b9
There every different type is matched with regex and sent with parameters to a handling function. I'm not sure that the game server will sent damage or grenade events by default. Eventually increasing the log level is needed. That can happen in in the Line 217 in f5499b9
Currently there is only the log on , but in the comment there are already other commands to increase the amount of logs.
TMT2 currently saves all data as text files (json or jsonl). But I'm not sure if that's the right direction when considerung saving stats. Maybe it's time to add sqlite to the project. It would make. Tell me what you think about it. Do you need anything else to get started? |
We made a fork with our own issues, and we'll work on it. Sqlite is a good and easy way to store this data, it's fine for us. If we need you help at some point, I'll ask you here, thank you very much for your help ! |
Sounds great. If you plan to get your changes merged back into this project (I'd appreciate it), then please split it up into smaller PRs (instead of one big chunk). Localization: |
Hey @JensForstmann ! I'm currently working with @Ecnama on this, and we're having an issue with the auto-generated files Thanks ! Edit: Nevermind, got it ! Just had to use Prettier |
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.
The text was updated successfully, but these errors were encountered: