Rebateman-LateJoin icon

LateJoin

Faced with friends that want to join an active game? Gone are the days of closing and re-opening your lobby! Just invite your friends after you've shopped!

Last updated 18 hours ago
Total downloads 6165
Total rating 2 
Categories Mods Misc Server-side
Dependency string Rebateman-LateJoin-0.1.1
Dependants 16 other packages depend on this package

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2100 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2100

README

LateJoin

Have you ever played R.E.P.O. only to be faced with a friend who wants to join after you've started the lobby? Fret not!

How can players late join currently?

Truck (Lobby after the Shop)

The master client will reopen the room after you leave the shop, during the intermission where you are in the truck. Players should be able to join normally, and this mod should support other mods like MorePlayers and REPO ServerList out of the box.

Future plans

We'll try to figure out if we can allow players to join in the shop, (and potentially even during active games, where you would end up as a spectator rather than a player). Theoretically in the case of loading the shop, loading into any level should be possible in that case, but can't be promised and if added, would need to be an experimental feature.

How does it work?

The game treats the host as the "master client" which dictates players and how they are spawned. Because of this, we are able to change the level for the late joiner, by utilising the buffered RPCs that are provided by Photon PUN. However, doing this requires some fairly major code changes.

Therefore, be warned, this mod may not be fully compatible with other mods, especially ones that rely on important data that is handled by the client, rather than the master client!

Credits

  • nickklmao for developing the mod
  • felinusfish for testing and debugging
  • CharlesE2 for help with development
  • R.E.P.O. Modding Server for the moral support!