
REPO Steam P2P
Replaces R.E.P.O.'s Photon cloud with direct Steam P2P. Host runs a built-in virtual server; connection ladder: Steam P2P -> ZeroTier -> Steam relay. Native proximity voice, stable lobbies, no port forwarding.REPO Steam P2P
This mod replaces R.E.P.O.'s Photon cloud networking with direct peer-to-peer over Steam. I wrote it because my friend and I got tired of random regions, voice dying mid-session and lobbies loading into an empty void when joining late. It has been working well for us over the internet, so here it is.
How it works
The host runs a small Photon-compatible server right inside the game (master, game and voice phases), so there is no external server and no Photon cloud. Clients connect through a fallback ladder:
- LAN direct (~1-5 ms, discovered automatically)
- ZeroTier tunnel (if the host publishes one in the Steam lobby, checked with a probe)
- Steam relay (SDR) as the last fallback for pure internet play
Photon datagrams, including voice frames, are carried over Steamworks SDR or plain UDP by a custom transport that replicates the ENET v16 wire format.
What works
- Native proximity voice: positional audio on the avatars, mouth animation, push-to-talk from the game settings.
- Lobbies load on first join: the scene, room geometry and voice objects are replayed from the room cache.
- Stable sessions: keep-alives, reliable-command retransmission, and dead-peer cleanup that only evicts sessions that actually stopped responding.
- Solo play is unaffected.
Both players need the mod, since it replaces the network stack on both ends.
Installation
With Thunderstore Mod Manager or r2modman: just install this package, BepInEx comes as a dependency.
Manually: install BepInExPack, then drop RepoSteamTransport.dll into BepInEx/plugins/.
Configuration
BepInEx/config/local.repoversteam.transport.cfg
| Key | Default | What it does |
|---|---|---|
Role |
Auto |
Resolves host/client from the Steam lobby. |
HostSteamId |
(empty) | Client override: connect to this SteamId directly. |
HostAddress |
(empty) | Client override: direct IP, skips the ladder (good for LAN parties). |
ZeroTierAuto |
true |
Allow the ZeroTier fallback step. |
ForceVoiceTransmit |
false |
true = open microphone that ignores mute and push-to-talk. |
PhotonCompat |
true |
Serialization shim, keep it on. |
Verbose |
false |
Full transport logging for debugging. Very spammy. |
Notes and troubleshooting
- Ping through the Steam relay starts around 130 ms and settles to ~15 ms within the first minute. That is Steam's route optimization, not a bug.
- If the verbose log says "ladder 3/3", it just means no LAN or ZeroTier path was available and the Steam relay was used.
- No voice? Check the in-game mic selection and mute state first. Keep
ForceVoiceTransmitoff if you want the game's own push-to-talk to work. - For diagnostics set
Verbose = trueand reproduce the issue; the log will show the whole ladder, session and voice-event trace.
Third-Party Notices
REPO-SelfHostedPhoton
This project incorporates and modifies code from REPO-SelfHostedPhoton.
Original repository: https://github.com/viabiko/REPO-SelfHostedPhoton
License: MIT License
Copyright: See the original repository and its LICENSE file.
The original MIT License and applicable copyright notices are retained in this distribution.
Modifications and additional functionality are documented in the project source code.
This project is not affiliated with or endorsed by the original authors.