Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
PhotonV4ServerVoiceFix
Fixes Voice Chat for self hosted servers running on Photon Server V4 (OnPremise)
By gil666
| Date uploaded | 2 weeks ago |
| Version | 2.1.0 |
| Download link | gil666-PhotonV4ServerVoiceFix-2.1.0.zip |
| Downloads | 12 |
| Dependency string | gil666-PhotonV4ServerVoiceFix-2.1.0 |
This mod requires the following mods to function
BepInEx-BepInExPack
BepInEx pack for Mono Unity games. Preconfigured and ready to use.
Preferred version: 5.4.2100README
Photon V4 Server Voice Fix
Fixes voice chat on self-hosted Photon Server V4 (On-Premise) setups.
Everyone in the lobby needs this mod, otherwise players without it can't send voice.
-
Works with:
- SelfHostedPhoton
- PhotonServerSettings
What it does
R.E.P.O's voice chat packs audio frames in a format (ByteArraySlice) that the protocol used against a V4 server can't serialize, so every frame fails with cannot serialize(): ExitGames.Client.Photon.ByteArraySlice and nobody hears anything. This mod converts the frames to plain byte arrays before they are sent and switches voice to the classic sequenced delivery modes.
Only voice frames are touched; normal game networking is left alone.
Config
BepInEx/config/com.gil.photonvoicefix.cfg
ForceSequencedDelivery(defaulttrue): send voice as Unreliable/Reliable instead of the Unsequenced modes.LogVoiceStats(defaulttrue): log frames sent/received every 5 seconds while voice is active. Handy for troubleshooting; turn off for a quieter log.
Tested On
- Photon Server V4 (
v4-0-29-11263) - R.E.P.O
v0.4.4.3
Important
If you are using Photon Server V5 (paid), you do not need this mod.
CHANGELOG
Changelog
2.1.1
- Rewritten for R.E.P.O
v0.4.4.3/ newer Photon Voice: the old patch failed to load (EnqueueOperationno longer exists). - Converts only voice frames (
ByteArraySlice->byte[]) instead of hooking every Photon operation. - No longer forces Reliable/unencrypted on all game traffic or swaps PUN's serialization protocol.
- Added
ForceSequencedDeliveryandLogVoiceStatsconfig options; voice stats and transmit on/off are logged for troubleshooting.
1.0.1
- Initial release.