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

Mumble tweaks/fixes #3058

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AvarianKnight
Copy link
Contributor

@AvarianKnight AvarianKnight commented Jan 8, 2025

Goal of this PR

Fix some possible edge cases where players could be invalid but we would still send a properly formatted mumble name

Removes swapping between std::wstring and std::string

Reset the mumble connection in cases where the client loses their TCP connection.

Fix some cases where the client would send duplicates of the same targets to the server, leading to some excessively large packets.

Wrap any native that needs to be used while connected in MakeMumbleNative

This change set is currently untested

This PR applies to the following area(s)

FiveM, RedM

Successfully tested on

Game builds: ..

Checklist

  • Code compiles and has been tested successfully.
  • Code explains itself well and/or is documented.
  • My commit message explains what the changes do and what they are for.
  • No extra compilation warnings are added by these changes.

@github-actions github-actions bot added the triage Needs a preliminary assessment to determine the urgency and required action label Jan 8, 2025
@AvarianKnight AvarianKnight force-pushed the tweak/mumble-tweaks branch 3 times, most recently from 1c1dbe5 to 55cb212 Compare January 29, 2025 03:51
@AvarianKnight AvarianKnight marked this pull request as ready for review January 29, 2025 03:54
@github-actions github-actions bot added the RedM Issues/PRs related to RedM label Jan 29, 2025
@github-actions github-actions bot added invalid Requires changes before it's considered valid and can be (re)triaged and removed triage Needs a preliminary assessment to determine the urgency and required action labels Jan 29, 2025
@AvarianKnight
Copy link
Contributor Author

This should be ready to be reviewed now, newer changes remove conversions between string types and resets the players mumble connection if the server doesn't respond to TCP pings.

@AvarianKnight AvarianKnight changed the title Cleanup voice targetting bits of mumble to not have duplicates Mumble tweaks/fixes Feb 1, 2025
…eTarget packet

- The previous implementation allowed duplicates, and was more complex than what we need since we don't care about channel linking (we would always set it to false)
- This will also reset connections if they have too many in flight TCP pings
- This removes all the swaps from std::wstring <-> std::string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid Requires changes before it's considered valid and can be (re)triaged RedM Issues/PRs related to RedM
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant