ServerPasswordKeeper

ServerPasswordKeeper

Valheim的客户端模组,能够分别记住每个服务器的密码,并在下次连接时自动填写。密码存储在本地独立的配置文件中。

游戏玩法

  • (RU) Server Password Rememberer — 适用于《英灵神殿》的小型客户端模组“密码管理器”。

功能

  • 🔑 每个服务器独立密码
    模组将密码与服务器唯一标识(Steam 主机 ID 或 IP:端口)绑定,而非存储一个“通用密码”。
  • ✍️ 自动填充密码
    当再次出现同一服务器的密码输入窗口时,模组会自动填入已保存的密码。
  • 可选自动确认
    可在配置中启用或禁用自动按下“确定/连接”的功能。
  • 不保存错误密码
    密码仅在成功进入世界时才会保存到文件。若服务器返回 ErrorPassword(密码错误),则不会保存任何内容。
  • 🧾 独立密码文件
    所有密码存储在文本文件中:BepInEx/config/ServerPasswords.txt。DLL 文件中不包含您的密码,因此可以安全地与他人分享模组而不会泄露数据。
  • 📴 可完全禁用
    可在配置中关闭模组本身、自动填充和自动确认功能。

工作原理(简述)

  1. 您在服务器连接窗口中输入密码。
  2. 如果登录成功且角色进入世界,模组会将密码保存为以下键值:
    • steam_<peerID> — 适用于 Steam 服务器
    • IP:gamePort:queryPort — 适用于直接 IP 连接
  3. 下次连接同一服务器时,模组会自动填入已保存的密码(并可选择自动按下回车键)。

安装

  1. 为《英灵神殿》安装 BepInEx
  2. ServerPasswordRememberer.dll 复制到以下文件夹:
    Valheim/BepInEx/plugins/
  3. 启动游戏一次,以生成配置文件。

配置

BepInEx/config/koshey.ServerPasswordRememberer.cfg

  • Enabled — 启用/禁用模组。
  • AutoFill — 自动填入已保存的密码。
  • AutoSubmit — 自动按下确定/连接(在安全的情况下)。
  • DebugLogging — 启用详细日志以进行调试。

  • (EN) Server Password Rememberer is a small client-side QoL mod for Valheim that acts like a tiny password manager for servers.

Features

  • 🔑 Per-server passwords
    Passwords are stored per unique server key (Steam host ID or IP:port), not “one password for all”.
  • ✍️ Auto-fill password
    When the password window appears again for the same server, the mod automatically fills in the saved password.
  • ⏎ Optional auto-submit
    You can enable or disable automatic “Enter/OK” after auto-fill in the config.
  • ❌ Wrong passwords are not saved
    A password is only saved if you actually enter the world. If the server returns ErrorPassword, nothing is written to the file.
  • 🧾 External password file
    All passwords are stored in BepInEx/config/ServerPasswords.txt. The DLL does not contain your passwords, so you can safely share the mod without leaking them.
  • 📴 Can be disabled
    You can turn the mod off completely or disable auto-fill / auto-submit via config.

How it works (short)

  1. You enter a password into the server password field.
  2. If the login is successful and you load into the world, the mod saves that password under a key like:
    • steam_<peerID> for Steam servers
    • IP:gamePort:queryPort for direct IP servers
  3. Next time you connect to the same server, the mod auto-fills the saved password (and optionally presses Enter for you).

Installation

  1. Install BepInEx for Valheim.
  2. Drop ServerPasswordRememberer.dll into:
    Valheim/BepInEx/plugins/
  3. Launch the game once to generate the config.

Config

BepInEx/config/koshey.ServerPasswordRememberer.cfg:

  • Enabled – enable/disable the mod completely.
  • AutoFill – auto-fill saved passwords when the password window appears.
  • AutoSubmit – automatically press OK/Connect after auto-fill (where it’s safe).
  • DebugLogging – verbose logging for debugging.