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

Reading and manipuation of voice_ban.dt for muting players #130

Open
Bash-09 opened this issue Mar 17, 2024 · 5 comments
Open

Reading and manipuation of voice_ban.dt for muting players #130

Bash-09 opened this issue Mar 17, 2024 · 5 comments
Labels
enhancement New feature or request

Comments

@Bash-09
Copy link
Contributor

Bash-09 commented Mar 17, 2024

Reading the accounts stored in the file will allow the client to provide indications on which players are muted.
Being able to modify the file to insert or remove accounts may offer the ability to mute players through the client, either manually through the UI or automatically as proposed in #129

@Bash-09 Bash-09 added the enhancement New feature or request label Mar 17, 2024
@Bash-09 Bash-09 changed the title Reading and manipuation of voice_dt for muting players Reading and manipuation of voice_ban.dt for muting players Mar 17, 2024
@Bash-09
Copy link
Contributor Author

Bash-09 commented Mar 18, 2024

Does anybody know if changes to this file are reloaded at some point in-game while it's running? It would be good if we can get the game to reload the file, as we could offer functionality to mute/unmute players and bots in real time. If not, it could still be useful as a preemptive tool to mute a bunch of known bots beforehand and hopefully avoid earrape and visualize who is muted, although it may not be able to happen during a match.

@megascatterbomb
Copy link
Contributor

The only time I've seen the file be written to is when the game is closed.

@UnknownAMD
Copy link

You can take a look at the tf2 source code it's available here on github.

@lili7h
Copy link
Contributor

lili7h commented Apr 17, 2024

We know - This is not an entirely helpful comment, but thank you for commenting none-the-less.

We have used the source code in the past to dig into the demo recording internals. Source likes to use in-memory buffered readers and writers (as any performance focused program should...), and as such often persistant data isn't written until the buffers have to be flushed. This is most often when the game is closed.

@Kacey2k
Copy link

Kacey2k commented Apr 29, 2024

voice_ban.dt can only support up to 255 entries, so I would recommend avoiding automating the muting feature. I can +1 being able to see muted status in the UI though.

@Bash-09 Bash-09 mentioned this issue Jun 12, 2024
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

No branches or pull requests

5 participants