You are viewing a potentially older version of this package. View all versions.
ZaboomafooW-BetterDisconnectReasons-1.0.1 icon

BetterDisconnectReasons

[v81] Shows clearer disconnect reasons and automatically tries to reconnect. Client-side only. Incompatible with V73dcfix; disable V73dcfix before using.

Date uploaded 2 months ago
Version 1.0.1
Download link ZaboomafooW-BetterDisconnectReasons-1.0.1.zip
Downloads 149
Dependency string ZaboomafooW-BetterDisconnectReasons-1.0.1

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2305 icon
BepInEx-BepInExPack

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

Preferred version: 5.4.2305

README

BetterDisconnectReasons

Fixes misleading disconnect messages and automatically tries to reconnect after an unexpected disconnect from a Lethal Company server.

Important: BetterDisconnectReasons conflicts with V73dcfix.

Disable or remove hu_luo_bo_ya-V73dcfix before using BetterDisconnectReasons. Do not run both mods at the same time. V73dcfix changes the same client disconnect behavior BetterDisconnectReasons uses for its reconnect check.

The problem

Lethal Company can show generic or misleading messages after a disconnect. BetterDisconnectReasons saves the Steam disconnect info the client receives, then tries the game's normal reconnect path to get a better answer.

What it does

  • Watches for unexpected client disconnects from the server.
  • Saves the host Steam ID and the original Steam disconnect info.
  • Tries to reconnect to the same host automatically.
  • If the server accepts the reconnect, you rejoin automatically.
  • If the server rejects it, the mod uses that vanilla rejection plus the saved Steam disconnect info to choose a clearer message when possible.
  • Replaces the vanilla kicked rejection with "You were kicked.".
  • If the game starts or the server becomes full before the reconnect finishes, it can show that instead of a generic disconnect message.
  • If the old server can no longer be reached, it shows "Server no longer exists." instead of a generic error.

Automatic reconnect

If the server accepts the reconnect, you rejoin instead of being sent back to the main menu.

If the reconnect is rejected or the server cannot be reached, the mod stops and shows the best reason it has.

What it does not change

  • The host does not need BetterDisconnectReasons.
  • It does not add custom networking or require custom messages from the host.
  • It does not change intentional/local vanilla disconnects.
  • It cannot make a closed server available again.
  • It cannot tell every disconnect case apart when vanilla returns the same rejection for different situations.

Compatibility

  • Targets Lethal Company v81.
  • Client-side only.
  • Intended for Steam/online sessions; LAN connections are left to vanilla behavior.
  • The host does not need the mod.
  • Requires BepInEx 5.
  • Incompatible with hu_luo_bo_ya-V73dcfix. Disable V73dcfix before using BetterDisconnectReasons.

Installation

  1. Disable or remove V73dcfix if it is installed.
  2. Install BetterDisconnectReasons with Thunderstore Mod Manager/r2modman, or place ZaboomafooW-BetterDisconnectReasons-v1.0.1.dll in BepInEx/plugins.
  3. Do not enable BetterDisconnectReasons and V73dcfix together.

CHANGELOG

Changelog

1.0.3

  • Fixed a reconnect loop when the host reset the server and opened a new lobby.
  • A reconnect is now considered successful only after Lethal Company finishes validating the joining player.
  • If the server drops the client before that validation finishes, the reconnect ends instead of starting another reconnect.

1.0.2

  • Fixed "You were kicked." showing after the host closed or restarted the server.
  • Direct reconnects now stop after 2 seconds if the old server does not answer.
  • Host shutdowns and timed-out server checks show "Server was closed.".
  • Client-side connection failures while the ship is not in orbit show "You lost connection." without trying to rejoin.
  • Client-side connection failures while in orbit try to reconnect. If the server accepts, you rejoin; if it rejects, its rejection is shown; if it cannot be reached, "You lost connection." is shown.
  • Fixed reconnect logs sometimes showing a different reason than the message on screen.

1.0.1

  • Updated the README and Thunderstore description.
  • Added a warning that hu_luo_bo_ya-V73dcfix conflicts with BetterDisconnectReasons and must be disabled.
  • Fixed cleanup disconnects being mistaken for the original Steam disconnect in logs and internal tracking.
  • No player-facing disconnect or reconnect behavior changed.

1.0.0

  • Initial public release.
  • Adds clearer disconnect reasons for unexpected server disconnects.
  • Automatically reconnects when the server still accepts the client.
  • Client-side only; the host does not need the mod.