MultiBossSpawner
Spawns multiple bosses based on nearby players; ends the fight when a registered participant dies and bellows a Viking HUD retreat warning to the warband. Includes mb_test and mb_test2 console command
About this mod Author’s original text
MultiBoss v7.5.6 – RPC-Despawn + Konsolenbefehle
Features
- Mehrfach-Spawn von Bossen abhängig von Spieleranzahl im Radius
- Despawn aller Bosse (ohne Kill/Win) sobald ein Spieler stirbt (RPC vom Client an Server)
- Konsolenbefehle:
- mb_test → zusätzliche Bosse am nächsten aktiven Bosszentrum spawnen (nur Server/Host)
- mb_test2 → alle aktiven Bosse despawnen (client sendet RPC an Server)
Build
dotnet build.\MultiBoss.sln -c Release
DLL: src\bin\Release\net472\MultiBossSpawner.dll
Deploy
- Auf Server/Host und Clients nach: BepInEx\plugins\Zeitsurfer.MultiBoss\
- Config: BepInEx\config\com.zeitsurfer.multiboss.cfg (wird beim ersten Start erzeugt)
MultiBoss Spawner (Valheim)
Spawnt automatisch mehrere Boss-Instanzen, abhängig von der Anzahl der Spieler im Umkreis.
Optional wird der Bosskampf sofort beendet, sobald irgendein registrierter Teilnehmer stirbt – dabei erhalten alle Kampfgefährten einen Wikinger-HUD-Hinweis: „Schildbruder ist gefallen – die Bosse ziehen sich knurrend in den Nebel zurück!“.
Enthält Konsolenbefehle mb_test (Test-Spawn) und mb_test2 (Despawn aller aktiven Bosse).
Server/Host-authoritativ: Spawn/Despawn wird serverseitig gesteuert – Client sendet nur RPCs.
Installation
- BepInExPack Valheim installieren ().
- Diese Mod installieren.
- DLL hinzufügen: Kopiere MultiBossSpawner.dll nach
BepInEx/plugins/Zeitsurfer.MultiBoss/ (Server und Client).
- Spiel/Server neu starten.
Konfiguration
Eine Zeitsurfer.MultiBoss.cfg wird beim ersten Start erzeugt (BepInEx/config).
| Key | Typ | Standard | Beschreibung |
|---|---|---:|---|
| Spawning.PlayerRadius | float | 40 | Radius um Altar/Boss zur Spielersuche. |
| Spawning.PlayersPerBoss | float | 2.0 | Spieler pro Boss. Beispiel: 4 Spieler / 2.0 ⇒ 2 Bosse. |
| Spawning.MaxExtraBosses | int | 4 | Max. zusätzliche Bosse (oben drauf). |
| General.BossPrefabs | CSV | Eikthyr,TheElder,Bonemass,Dragon,Moder,GoblinKing,Yagluth,SeekerQueen,TheQueen | Erlaubte Boss-Prefabs. |
| General.AltarPrefabs | CSV | BossStone_Eikthyr,...,OfferingBowl | Auslöser/Altare für Auto-Spawn. |
| Fight.EndFightOnAnyPlayerDeath | bool | true | Beendet Bosskampf, wenn irgendein registrierter Spieler stirbt (Despawn, kein Kill). |
Hinweis zur Skalierung:
desired = floor(Spieler / PlayersPerBoss), begrenzt durch 1 + MaxExtraBosses.
Bereits vorhandene Bosse werden berücksichtigt, doppelte Spawns verhindert.
Konsolenbefehle
Die Ausgaben erfolgen im BepInEx-Log / HUD, nicht im Terminal der alten API.
- mb_test – Spawnt testweise zusätzliche Bosse am nächsten aktiven Bosszentrum (nur Server/Host).
- mb_test2 – Despawn aller aktiven Bosse (ohne Kill / kein Fortschritt).
Kompatibilität
- Getestet mit Valheim 0.221.4, BepInExPack 5.4.2333 ().
- Läuft auf Dedicated Server, Host und Singleplayer (serverseitige Autorität aktiv).
- Benötigt gleiche DLL-Version auf Server und Client.
Known Issues / Tipps
- Wenn keine Logs zu sehen sind: BepInEx/config/BepInEx.cfg → [Logging.Console] Enabled = true setzen.
- Für HUD-Hinweise statt Log kann eine Build-Variante genutzt werden (MessageHud API).
- Bei -Upload bitte DLL beilegen (dieses Paket enthält nur Manifest/Readme/Icon/Changelog).
Lizenz
MIT (sofern nicht anders angegeben). Markennamen gehören ihren jeweiligen Eigentümern.
Install & use Install: BepInEx plugin
- The archive from playbuff is the mod itself — usually a BepInEx plugin (a .dll or a plugin folder once unzipped).
- Recommended: use a community mod manager (such as r2modman) — pick this game, import the mod, and the manager sets up BepInEx and its dependencies for you.
- Manual route: install the BepInEx loader in the game folder, then drop the unzipped .dll or plugin folder into BepInEx/plugins/.
- Launch the game — the BepInEx console logs every plugin it loads; seeing this mod in the log means it is installed.
Mods with listed dependencies need those installed too, or they will not load. Options are usually changed in-game or in the plugin's config file. In multiplayer, the host and every client need the same mods installed.
Install these first, or the mod will not work: