MapAutoSync
Share explored map and pins with everyone on a dedicated server automatically, without a cartography table. Install on the server and on each player who wants it.
截圖 共 3 張
模組介紹 作者原文
MapAutoSync
Shares every player's explored map and pins on a Valheim dedicated server automatically, without
anyone visiting a cartography table.
- A new tick-box on the large map, Auto sync map, next to "Visible to other players".
- A Sync now button above it, to sync straight away whenever you like.
- While the tick-box is on, your map is shared when you join and once every in-game day.
- You receive everyone else's explored areas and pins the same way.
- It works between players who are never online together: the server keeps the shared map.
Screenshots
The two new rows on the large map, above the game's own "Cartography Table" and "Visible to other
players":
Clicking Sync now tells you what is happening, in large text at the top of the map:
Who installs it
| Where | What it does there |
| --- | --- |
| The dedicated server | Keeps the one shared map and hands it to players who sync. |
| Each player who wants it | Adds the tick-box and does the syncing. |
It is the same DLL in both places. Players without it are not affected: they keep using
cartography tables as usual, and can play alongside players who have it.
How it works
A sync is exactly what a cartography table does, done for you:
- Your game sends its shared map data to the server (the same data "record discoveries" writes to
a table).
- The server merges it into its one shared map and sends that back.
- Your game merges it in (the same as "read map" at a table).
The merge on the server follows two rules:
- Explored areas are only ever added. Nothing anyone explored is lost.
- Your pins are yours. Each sync replaces your pins on the shared map with the set you have now,
so deleting one of your own pins removes it for everyone at their next sync. Other players' pins
are never changed by your sync.
As with a table, death markers are not shared, and other players' areas and pins show as shared map
data (the game's "shared map" display toggle applies to them).
When it syncs
- About 20 seconds after you spawn into the world.
- Each time a new in-game day begins.
- Straight away when you switch the tick-box on.
- Straight away when you click Sync now. This works even while the tick-box is off. The
button's label and large text at the top of the map say "Syncing", then "Sync complete" once the
server's map has arrived, usually within a second or two. If the server does not answer within
10 seconds (for example because it does not have the mod), they say so instead.
After an automatic sync you are told "Map synced": in the same large text on the map if the map
is open, otherwise as a short message at the top left.
In-game time on a dedicated server only moves while someone is online, so "once every in-game day"
is about every 20 minutes of play.
Installation
Requires BepInEx 5.
- Server: put MapAutoSync.dll in BepInEx/plugins/ and restart.
- Player: put MapAutoSync.dll in BepInEx/plugins/ in your Valheim folder, or install it with
a mod manager.
It is meant for dedicated servers. In single player, or when hosting a game from your own client,
it does nothing.
Versions
Keep the server and the players on the same version where you can. Update the server first:
- A server on 0.3.0 or later still syncs players who are on an older version, including the ones
from when the mod was called AutoSyncMap. After their first sync of a session it tells them, in
the middle of their screen, to update.
- A player on 0.3.0 or later needs the server to be on 0.3.0 or later.
- The mod was called AutoSyncMap before 0.3.0. Remove any old AutoSyncMap.dll when you update;
never run both. A server's shared map from before 0.3.0 is carried over by itself.
Like any BepInEx mod, a new version is loaded when the game or the server starts. So an update
means restarting the game for a player, and restarting the server for its owner, unless the
server uses ScriptEngine as described below.
Updating a server without a restart (optional)
MapAutoSync has no hot reloading of i
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。 多人連線時,主機與所有用戶端需要安裝一致的模組。
下面這些內容需要先安裝,否則該模組不會生效: