You are viewing a potentially older version of this package. View all versions.
ZandromicGaming-MIDoorSync-1.3.2 icon

MIDoorSync

Syncs Map Improvements' added fire exits and copied doors so other players see them used. Fixes landing hangs and hides a false LethalPerformance warning. Every player needs it.

Date uploaded 2 weeks ago
Version 1.3.2
Download link ZandromicGaming-MIDoorSync-1.3.2.zip
Downloads 17
Dependency string ZandromicGaming-MIDoorSync-1.3.2

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

MIDoorSync

A bug and incompatibility fix mod for Map Improvements for v73.

Problem

Map Improvements adds extra fire exits by copying an existing outside door with Object.Instantiate. The copy is never spawned on the network, so the vanilla "player used this door" RPCs (TeleportPlayerServerRpc / TeleportPlayerClientRpc) can't run on it. You teleport on your own screen, but other players don't see you go through, don't hear the door, and still think you're on the other side.

Fix

When a door with no network identity is used, this mod sends its own Netcode named message instead (door ID, side, position, player) to the host, which relays it to every client. Each client finds the same door locally and runs the same steps as the vanilla client RPC:

  • teleports the player model
  • plays the door audio
  • sets inside/outside for the player and their items
  • applies the spectator reverb

Normal, networked doors are untouched. The host only accepts a door-use message for the sender's own player. LethalLevelLoader's dungeon enter/exit events don't fire for non-networked doors, the same as without this mod.

Copied doors and switches

Map Improvements also copies interactive objects, such as Experimentation A's steel doors. Their open/close messages had the same problem as the fire exits: they went nowhere, so only the player who used them saw the change. MIDoorSync relays them through the host and replays the vanilla behaviour on every client: animation, sound and particles. It matches each copy by its place in the scene hierarchy, which is identical on every client, falling back to position.

Landing hang fix

Some Map Improvements layouts delete outside AI nodes (Experimentation C deletes 8). The game builds its list of outside nodes before Map Improvements runs, so the list still holds the deleted ones. CodeRebirth's flora spawner reads that list before the game refreshes it, throws on a deleted node, and level setup aborts, leaving the ship stuck landing forever. MIDoorSync removes deleted nodes from the list just before level setup.

LethalPerformance warning

LethalPerformance shows "Entrance teleport mismatch. Expect 'The entrance appears to be blocked'" on landing whenever any door isn't networked, without checking whether the door works. MIDoorSync checks every non-networked door: if they all have an exit, the popup is hidden. If any door has no exit, the popup still shows and the door is named in the log.

Compatibility

  • EntranceTeleportOptimizations: Checked, compatible. Its cached exit lookup is used through FindExitPoint.

Incompatibilities

  • Entrance Blockers: Checked, incompatible. It causes blocked to appear. This will be fixed in the future.

CHANGELOG

Changelog

1.3.4

  • Dropped requirement for Map Improvements.
  • Added noted incompatibilities.

1.3.0

  • Syncs Map Improvements' copied interactive objects, e.g. the 17 SteelDoor copies in Experimentation A. Their open/close (AnimatedObjectTrigger) messages went to network object 0 and were dropped ("Deferred messages ... key 0"), so other players never saw the door move. They're now relayed like the fire exits. Objects are matched by hierarchy path, then by position.
  • Landing-hang fix also covers single-frame dungeon generation: deleted outside AI nodes are pruned again one frame after level setup, once Unity has actually destroyed them.

1.2.0

  • Fixed the ship getting stuck landing on Map Improvements layouts that delete outside AI nodes (e.g. Experimentation C). The game's outside-node list was built before those nodes were deleted. CodeRebirth's flora spawner then hit a deleted node, threw a NullReferenceException and aborted level setup. Deleted nodes are now removed from the list before level setup runs.

1.1.1

  • The host now only accepts a door-use message for the sender's own player, so a modified client can't move other players.
  • Removed the host re-invoke of the server RPC. It existed for LethalLevelLoader's dungeon events, but those never fire on non-networked doors anyway.

1.1.0

  • Hides LethalPerformance's "Entrance teleport mismatch" landing popup when every non-networked door actually connects to an exit. If any of them has no exit, the popup still shows and the door is named in the log.

1.0.0

  • Initial release: syncs player use of non-networked (Map Improvements) fire exits through Netcode named messages.