Budyliv-BudylivReconnect icon

BudylivReconnect

Lost connection? The game joins the same server again with the same character by itself, after a short countdown you can cancel. Keeps trying while the server restarts. Client-only.

By Budyliv
Last updated 3 days ago
Total downloads 34
Total rating 0 
Categories Mods Client-side AI Generated Deep North Update
Dependency string Budyliv-BudylivReconnect-1.0.1
Dependants 0 other packages depend on this package

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2351 icon
denikson-BepInExPack_Valheim

BepInEx pack for Valheim. Preconfigured with the correct entry point for mods and preferred defaults for the community.

Preferred version: 5.4.2351

README

Budyliv Reconnect

When your connection to a server drops, vanilla Valheim throws you back to the main menu with "Disconnected", and you have to pick the server again, type the password and wait. This mod does it for you: it joins the same server with the same character again on its own.

About the "AI Generated" tag. The code of this mod was written by AI. The idea, the design decisions and the testing are done by hand.

What happens

  1. The connection drops. The game saves your character and returns to the menu, as usual.
  2. The "Disconnected" panel shows a countdown: Reconnecting in 3 s (attempt 1 of 8). Press Esc or OK to cancel.
  3. The game joins the server again. If the server asks for a password, the one you typed earlier is sent automatically.
  4. If the server can't be reached (for example, it is restarting), the mod tries again after 5, 10, 15, 20 and then 30 seconds, up to 8 attempts in all (about two and a half minutes).

It does not reconnect when you leave the game yourself, are kicked or banned, typed a wrong password, or your game version doesn't match. The password is kept in memory only, never written to disk.

Installation

Client-only. The server needs nothing. Works with dedicated servers and with games hosted by a friend.

Configuration

BepInEx/config/com.budyliv.reconnect.cfg:

Setting Default
Enabled true
DelaySeconds 3 countdown before the first attempt
MaxAttempts 8 give up after this many attempts
Language Auto Auto / English / Ukrainian (countdown text)

Tip for server owners

How long a dead connection takes to be noticed is the game's connection timeout (30 s in vanilla). With NetworkPerformanceSystem you can lower it on the server ([Connection Timeout] Connection Timeout Seconds), so players get back sooner.

License

MIT. See LICENSE.