[PR #173] voicechat-server: proximity voice chat on Horizon's own server (native server mod) #173

Open
opened 2026-11-03 04:03:50 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon-mods/pull/173
Author: @ludovic111
Created: 11/2/2026
Status: 🔄 Open

Base: main ← Head: voicechat-server


📝 Commits (1)

  • f5696b3 voicechat-server: proximity voice chat on Horizon's own server

📊 Changes

24 files changed (+2408 additions, -12 deletions)

View changed files

📝 README.md (+2 -1)
📝 native/coords-hud/compatibility.json (+1 -1)
📝 native/fps-overlay/compatibility.json (+1 -1)
📝 native/keystrokes/compatibility.json (+1 -1)
📝 native/minimap/compatibility.json (+1 -1)
📝 native/recipes/compatibility.json (+1 -1)
📝 native/smp/compatibility.json (+1 -1)
📝 native/tools/native.py (+5 -4)
➕ native/voicechat-server/Cargo.lock (+252 -0)
➕ native/voicechat-server/Cargo.toml (+4 -0)
➕ native/voicechat-server/LICENSE (+21 -0)
➕ native/voicechat-server/README.md (+49 -0)
➕ native/voicechat-server/compatibility.json (+8 -0)
➕ native/voicechat-server/mixins/voicechat_server/glue.rs (+139 -0)
➕ native/voicechat-server/mixins/voicechat_server/horizon-mixin.toml (+60 -0)
➕ native/voicechat-server/mixins/voicechat_server/lifecycle.rs (+10 -0)
➕ native/voicechat-server/mixins/voicechat_server/logged_out.rs (+4 -0)
➕ native/voicechat-server/mixins/voicechat_server/net.rs (+9 -0)
➕ native/voicechat-server/mixins/voicechat_server/relay/Cargo.toml (+14 -0)
➕ native/voicechat-server/mixins/voicechat_server/relay/src/lib.rs (+631 -0)

...and 4 more files

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

What

native/voicechat-server: a native server mod (voicechat_server 1.0.0, MIT) that hosts proximity voice chat on a
Horizon dedicated server, for the official server. It is the server half for clients that speak Simple Voice Chat
2.6.x's protocol, such as azetech_'s Complex Voice Chat (with its 2.1.0 change:
https://github.com/AzetechOfficial/Horizon-Mods/pull/1).

  • Handshake over Horizon's mod messages (horizon:mod_net, voicechat: channel names, SVC 2.6 layouts):
    no engine change, no unknown plugin channels.
  • Voices over UDP through the server (never peer to peer), sealed per player with AES-128-GCM. They go to the
    players in the same dimension within 48 blocks (24 for a whisper) and to the speaker's group (normal, open or
    isolated).
  • Players without a voice mod are sent nothing. The UDP port opens only when the first voice client asks.
  • Limits:
    • 75 packets/s per player, burst 30.
    • 128 groups.
    • A packet that doesn't open with the player's key is dropped silently.
    • A client's address can change only after 5 s of silence, so a replayed handshake can't take over a live connection.
  • Config in config/voicechat-server.json: enabled, port (default 24454), bind, voice_host, distances, groups.
    See the README.

Other changes:

  • The relay is a bundle crate, which needs horizon-mixins 0.6.0. native.py stages every mod with one mixins
    revision, so all native mods now pin d9c83d7.
  • native.py package now includes a bundle's crate folders: it uses rglob.

Tests

  • cargo test in native/voicechat-server: 12 pass.
    • Wire format.
    • Real UDP: proximity, dimensions, whisper, the three group kinds, voice off, forged packets, a replayed handshake, a player leaving.
    • cargo fmt --check and clippy -D warnings are clean.
  • End to end on Linux (horizon f483362, smp + voicechat_server built in): a local dedicated server with two offscreen clients.
    • Voice (Complex Voice Chat 2.1.0 built in): gets its secret over mod messages, authenticates over UDP and shows "Complex Voice Chat connected".
    • Plain (no voice mod): joins, walks and chats normally while Voice is on and after it leaves.
    • The server log has no errors, kicks or disconnects.

Pre-existing, not changed here: native.py build asks for --bin horizon-ctl in horizon-client, which moved to
horizon-client-lib on current Horizon. The official server's build (build.sh) does not use that step.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon-mods/pull/173 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 11/2/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `voicechat-server` --- ### 📝 Commits (1) - [`f5696b3`](https://github.com/horizon-rust/horizon-mods/commit/f5696b3e90751be2c8c675592779731f177f008b) voicechat-server: proximity voice chat on Horizon's own server ### 📊 Changes **24 files changed** (+2408 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+2 -1) 📝 `native/coords-hud/compatibility.json` (+1 -1) 📝 `native/fps-overlay/compatibility.json` (+1 -1) 📝 `native/keystrokes/compatibility.json` (+1 -1) 📝 `native/minimap/compatibility.json` (+1 -1) 📝 `native/recipes/compatibility.json` (+1 -1) 📝 `native/smp/compatibility.json` (+1 -1) 📝 `native/tools/native.py` (+5 -4) ➕ `native/voicechat-server/Cargo.lock` (+252 -0) ➕ `native/voicechat-server/Cargo.toml` (+4 -0) ➕ `native/voicechat-server/LICENSE` (+21 -0) ➕ `native/voicechat-server/README.md` (+49 -0) ➕ `native/voicechat-server/compatibility.json` (+8 -0) ➕ `native/voicechat-server/mixins/voicechat_server/glue.rs` (+139 -0) ➕ `native/voicechat-server/mixins/voicechat_server/horizon-mixin.toml` (+60 -0) ➕ `native/voicechat-server/mixins/voicechat_server/lifecycle.rs` (+10 -0) ➕ `native/voicechat-server/mixins/voicechat_server/logged_out.rs` (+4 -0) ➕ `native/voicechat-server/mixins/voicechat_server/net.rs` (+9 -0) ➕ `native/voicechat-server/mixins/voicechat_server/relay/Cargo.toml` (+14 -0) ➕ `native/voicechat-server/mixins/voicechat_server/relay/src/lib.rs` (+631 -0) _...and 4 more files_ </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What `native/voicechat-server`: a native server mod (`voicechat_server` 1.0.0, MIT) that hosts proximity voice chat on a Horizon dedicated server, for the official server. It is the server half for clients that speak Simple Voice Chat 2.6.x's protocol, such as azetech_'s Complex Voice Chat (with its 2.1.0 change: https://github.com/AzetechOfficial/Horizon-Mods/pull/1). - **Handshake** over Horizon's mod messages (`horizon:mod_net`, `voicechat:` channel names, SVC 2.6 layouts): no engine change, no unknown plugin channels. - **Voices** over UDP through the server (never peer to peer), sealed per player with AES-128-GCM. They go to the players in the same dimension within 48 blocks (24 for a whisper) and to the speaker's group (normal, open or isolated). - **Players without a voice mod are sent nothing.** The UDP port opens only when the first voice client asks. - **Limits:** - 75 packets/s per player, burst 30. - 128 groups. - A packet that doesn't open with the player's key is dropped silently. - A client's address can change only after 5 s of silence, so a replayed handshake can't take over a live connection. - **Config** in `config/voicechat-server.json`: enabled, port (default 24454), bind, voice_host, distances, groups. See the README. Other changes: - The relay is a bundle crate, which needs horizon-mixins 0.6.0. `native.py` stages every mod with one mixins revision, so all native mods now pin `d9c83d7`. - `native.py package` now includes a bundle's crate folders: it uses `rglob`. ## Tests - `cargo test` in `native/voicechat-server`: 12 pass. - Wire format. - Real UDP: proximity, dimensions, whisper, the three group kinds, voice off, forged packets, a replayed handshake, a player leaving. - `cargo fmt --check` and `clippy -D warnings` are clean. - End to end on Linux (horizon f483362, smp + voicechat_server built in): a local dedicated server with two offscreen clients. - **Voice** (Complex Voice Chat 2.1.0 built in): gets its secret over mod messages, authenticates over UDP and shows "Complex Voice Chat connected". - **Plain** (no voice mod): joins, walks and chats normally while Voice is on and after it leaves. - The server log has no errors, kicks or disconnects. Pre-existing, not changed here: `native.py build` asks for `--bin horizon-ctl` in `horizon-client`, which moved to `horizon-client-lib` on current Horizon. The official server's build (`build.sh`) does not use that step. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon-mods#173
No description provided.