Skip to content
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

Parse log data from CS server #2

Open
pixup1 opened this issue Dec 14, 2024 · 0 comments
Open

Parse log data from CS server #2

pixup1 opened this issue Dec 14, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@pixup1
Copy link
Member

pixup1 commented Dec 14, 2024

This issue will require #1 to be at least partially done.

We need to add a way to parse statistics from the game servers and add them to the database.

As can be seen in this issue, the CS servers automatically send scoreboard data to the TMT, but this is only available at the beginning of the next game which would create logistical issues.

The proper way to do it then, is to increase the amount of events that are logged from the server to the TMT, and then parse those logs as they come in during the game to keep our own count of actions.

So,

  1. Increase logging by passing more mp_log[...] rcon commands in this function :

    const setup = async (match: Match) => {

  2. Parse the additionnal logs in this function :

    const onLogLine = async (match: Match, line: string) => {

    And add the data to the database.

@pixup1 pixup1 added the enhancement New feature or request label Dec 14, 2024
@pixup1 pixup1 changed the title Parse score board data from CS server Parse log data from CS server Dec 14, 2024
@Ecnama Ecnama self-assigned this Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants