WebMap

版本 v2.6.1·更新於 2025-01-07

Web Based Live map for a Valheim Dedicated Server

模組介紹 作者原文

Valheim WebMap

This server side mod creates a web based map that shows live players and allows shared exploration. After port forwarding the correct port, you can share to anyone else and they can see the map too. Clients do not need to have any mods installed!

For players to show up on the map, they must set visible to other players in the in-game map screen. Press m to bring up the map settings.

This has only been tested on a Valheim dedicated server. I'm not sure this will work with the built in server inclued with the base game.

Features

  • A explorable map of your Valheim world in your browser that you can zoom with the mousewheel or pinch zoom on mobile.
  • Players can place their own pins with chat commands (see below for more info)
  • Map pings from in game players will show up on the web map as well.
  • Connected players list.
  • Auto follow player feature.
  • Chat messages.

Installation

Assuming you have [BepInEx] installed and working, place the WebMap directory in:

Steam\steamapps\common\Valheim dedicated server\BepInEx\plugins\WebMap

After starting the server for the first time a default configuration file will be created in:

Steam\steamapps\common\Valheim dedicated server\BepInEx\config

Updating

If you are updating, one additional thing you and anyone else using the web map might need to do is clear your browser cache.

You may also be able to hold down the shift key and click the reload button in your browser.

Chat Commands

This mod supports placing pins with chat commands. Press Enter to start chatting in game. The commands are as follows:

*!pin - Place a "dot" pin with no text on the map where you are currently standing.

*!pin my pin name - Place a "dot" pin with "my pin name" under it on the map where you are currently standing.

*!pin [pin-type] [text] - Place a pin of a certain type with optional text under it on the map where you are currently standing.

  • Pin types are: dot, fire, mine, house and cave. Example command: /pin house my awesome base

*!undoPin - Delete your most recent pin.

*!deletePin [text] - Delete the most recent pin that matches the text exactly.

If a player creates too many pins, their oldest pin will be removed. There is a setting to control how many pins a player can create in config.json.

Development

To get your environment working, you will need to find and place these.dll files in the WebMap/libs directory. Most of the libraries are found in:

Steam\steamapps\common\Valheim dedicated server\valheim_server_Data\Managed

  • assembly_valheim.dll
  • UnityEngine.CoreModule.dll
  • UnityEngine.dll
  • UnityEngine.UI.dll

You also need some Unity developer libraries (google for them).

  • UnityEngine.ImageConversionModule.dll
  • UnityEngine.JSONSerializeModule.dll

To get the fontend part building, you'll need [node] installed. After, just do npm install to install webpack. Then you can run npm run build to build main.js which should be included with the other web resources in WebMap/web.

I wanted to get this working as soon as possible, so apollogies for messy code.

Licence

Where applicable, assume stuff is under the MIT licence.

Credit

  • Currently maintained by Jeff Clark
  • Original work by Kyle Paulsen
  • Background by [webtreats], released under the [CC BY 2.0] license.

[BepInEx]:

[node]:

[webtreats]:

[CC BY 2.0]:

安裝與使用 安裝:BepInEx 外掛

  1. 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
  2. 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
  3. 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
  4. 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。

帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。 多人連線時,主機與所有用戶端需要安裝一致的模組。

前置依賴

下面這些內容需要先安裝,否則該模組不會生效:

denikson-BepInExPack_Valheim

檔案與校驗

檔案名稱
WebMap-2.6.1.zip
檔案大小
230.9 KiB