Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
BetterDisconnectReasons
[v81] Shows short disconnect reasons and automatically tries to reconnect. Client-side only. Incompatible with V73dcfix; disable V73dcfix before using.
By ZaboomafooW
| Date uploaded | 2 weeks ago |
| Version | 1.0.3 |
| Download link | ZaboomafooW-BetterDisconnectReasons-1.0.3.zip |
| Downloads | 480 |
| Dependency string | ZaboomafooW-BetterDisconnectReasons-1.0.3 |
This mod requires the following mods to function
BepInEx-BepInExPack
BepInEx pack for Mono Unity games. Preconfigured and ready to use.
Preferred version: 5.4.2305README
BetterDisconnectReasons
Fixes misleading disconnect messages and automatically tries to reconnect when it can actually help.
Important: BetterDisconnectReasons conflicts with V73dcfix.
Disable or remove
hu_luo_bo_ya-V73dcfixbefore using BetterDisconnectReasons. Do not run both mods at the same time. Both mods change the same client-side disconnect handling.
What it does
- Shows "You were kicked." when the reconnect check confirms a kick.
- Shows "Server was closed." when the host closes the server or the old server no longer answers.
- Shows "You lost connection." when Steam reports a client-side connection failure while the ship is not in orbit.
- If the ship is in orbit, a client-side connection failure gets one automatic reconnect attempt.
- If that reconnect succeeds, nothing is shown.
- If the server rejects that reconnect, the server's rejection is shown.
- If the reconnect cannot reach the server, it shows "You lost connection.".
- A reconnect is only treated as successful after Lethal Company accepts the player into the server. This prevents reconnect loops when the host resets and reopens the server.
- After the game has started, the old server gets 2 seconds to answer the kick/server-close check. This prevents a newly started server from being mistaken for the old one.
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
- Disable or remove V73dcfix if it is installed.
- Install BetterDisconnectReasons with Thunderstore Mod Manager/r2modman, or place
ZaboomafooW-BetterDisconnectReasons-v1.0.3.dllinBepInEx/plugins. - 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-V73dcfixconflicts 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.