Valheim
Install with App

Details

Latest version
1.1.2
Last Updated
First Uploaded
Downloads
267
Likes
2
Size
313KB
Dependants
ADDatHost Valheim hosting
30% off

BossGate

BossGate

Control the pace of your Valheim server.
Unlock bosses by game day, force the boss order and let ores through portals only after the right boss is dead.
All set by the server, changed live in-game.

πŸ’¬ Discord  Β·  βš™οΈ Ultimate SCM


✨ Features

  • πŸ“… Unlock bosses by game day: "Bonemass from day 20". One setting per boss, from Eikthyr to Kall Fimbulbringer.
  • πŸ† Mandatory boss order: The Elder only after Eikthyr, Bonemass only after The Elder... no skipping ahead.
  • πŸŒ€ Ores through portals after the boss: kill Bonemass and iron can travel by portal at once. Copper, tin, iron, silver, black metal, flametal, dragon eggs and even Hildir's chests, each released by its own boss.
  • πŸ‘€ World or personal progress: a kill counts for the whole server, or only for the players who took part in it, in this world.
  • πŸ”’ Master lock: close every boss altar with one switch.
  • πŸ› οΈ Its own in-game panel (bossgate_config): every setting explained, live examples and tables for admins; the bosses' status and the portal items for every player.
  • ⚑ Live and server-controlled: the server's settings apply to every player and changes reach everyone instantly. No restart, no relog.
  • 🌍 15 languages, clear on-screen messages, and the offering is never consumed when a summon is blocked.

Every rule is off by default: install it and turn on only what you want.

πŸ’‘ Suggestions, bugs and questions: https://discord.gg/aMkN89Cuas β€” when reporting a bug, attach your BepInEx LogOutput.log and say what you expected to happen.


πŸ› οΈ The in-game panel: bossgate_config

Open the console (F5) and type bossgate_config (or open it from Ultimate SCM).

Who What they see
πŸ‘‘ Admin with devcommands on Every page and every setting. In single player / on a hosted game: the host. On a dedicated server: a player in the server's admin list, checked again by the server on every request.
πŸ§‘ Every other player Overview and Portal items, read only: the bosses' status today and which items can travel through portals. No settings, no save buttons.
Overview
Overview
Every boss with its trophy, unlock day, defeated or not, and whether it can be summoned today. Master lock.
Unlock days
Unlock days
One slider per boss, a quick plan (every 5 / 10 / 20 / 30 days) and what players will see on screen.
Progression
Progression
Previous bosses first and personal progress, with the next boss in the order for this world.
Portal items
Portal items
Each group of items, the bosses that release it and whether it is released today (world or personal progress).
Server
Server
Kick players who join without BossGate.
Made to be clear
  • In practice lines: what each value does in the game today.
  • Warnings when two settings get in each other's way.
  • Undo / Default per setting, page defaults, reload .cfg.
  • A summary before Save and apply; then every player gets the new rules instantly.
  • Every change written to the server's log with the admin's name.
  • Trophies and item icons from the game, in the player's language.

Click an image to see it full size.


βš™οΈ Ultimate SCM is included

BossGate comes with Ultimate Server Configuration Manager (Ultimate SCM), a panel for the settings of all your BepInEx mods. It is a dependency, so a mod manager (Thunderstore / r2modman) installs it for you.

  • BossGate's own panel is listed there, for players (Overview and Portal items) and admins.
  • Its generic panel (F1, or ESC β†’ Mod Settings) also shows every BossGate setting with the LIVE badge (scm:live): as an admin with devcommands on, pick BossGate, change a value and apply. Every connected player gets the new rule instantly.
  • Undo (Ctrl+Z), draft mode, admin notes and a "who changed what, and when" history come with it. If F1 is already used by ConfigurationManager, change the key of one of the two.
  • You choose what players see there: Hidden (default), View only or Can edit. For BossGate the server's value is enforced for everyone in all three cases.

Without Ultimate SCM BossGate still works, and bossgate_config too: the server uses its BepInEx/config/Igao.BossGate.cfg and sends the values to every player when they join.


πŸ“„ Configuration

File: BepInEx/config/Igao.BossGate.cfg β€” edit it on the server. The values on a player's own .cfg are ignored (and never overwritten) when the player is connected to a server running BossGate.

[1 - General]

Setting Default Values What it does
LockAllBosses false true / false Blocks every boss on every day, ignoring the unlock days below. Players see "Boss summoning is not possible right now."
KickClientsWithoutMod true true / false Disconnects players who join without BossGate (or with an incompatible BossGate version) about 20 seconds after joining. Without it, a client that does not have the mod can still summon bosses.

[2 - Boss Unlock Day]

All eight settings work the same way: default 0, range 0–9999. 0 means no restriction. Any other value means the boss can be summoned only when the current game day (the day number shown by the game) is equal to or greater than the value. Example: 3 - Bonemass = 20 blocks Bonemass until the game shows day 20.

Setting Boss
1 - Eikthyr Eikthyr
2 - The Elder The Elder
3 - Bonemass Bonemass
4 - Moder Moder
5 - Yagluth Yagluth
6 - The Queen The Queen
7 - Fader Fader
8 - Kall Fimbulbringer Kall Fimbulbringer

[3 - Progression]

Setting Default Values What it does
RequirePreviousBossDefeated false true / false A boss can be summoned only after all the bosses before it (Eikthyr, The Elder, Bonemass, Moder, Yagluth, The Queen, Fader, Kall Fimbulbringer, in this order) have been defeated in the world. Players see "Defeat the previous bosses first.". Eikthyr is never affected.
PerPlayerProgress false true / false Whose kills count for RequirePreviousBossDefeated and PortalItemsRequireBossKill. false = world progress: a boss killed by anyone counts for everybody. true = personal progress: each player only counts the bosses (and Hildir minibosses) they took part in killing in this world. See Personal progress.

[4 - Portals]

Setting Default Values What it does
PortalItemsRequireBossKill false true / false Portal rule (see Portal items). false = vanilla: ores and metals can never go through portals. true = the blocked items of a biome can go through portals once the boss of that biome has been defeated in the world (Hildir's chests: once the miniboss that guards the chest and the boss of its biome are defeated).

πŸ† Boss progression

Off by default. When RequirePreviousBossDefeated is true, the game's progression order is mandatory: a boss can be summoned only if every boss before it is dead in the world (the world's own boss-kill record, which the game already shares with every player).

Boss Must already be dead
Eikthyr nothing (never affected)
The Elder Eikthyr
Bonemass Eikthyr, The Elder
Moder Eikthyr, The Elder, Bonemass
Yagluth Eikthyr, The Elder, Bonemass, Moder
The Queen Eikthyr, The Elder, Bonemass, Moder, Yagluth
Fader Eikthyr, The Elder, Bonemass, Moder, Yagluth, The Queen
Kall Fimbulbringer all the other seven
  • It works together with the unlock days: the boss must be unlocked by the day and the previous bosses must be dead. If both conditions fail, the unlock-day message is shown first. It also applies to bosses whose unlock day is 0.
  • LockAllBosses still wins over everything.
  • The Queen's Sealbreaker door and the hive seat follow the rule too.
  • The offering is not consumed when the summoning is blocked.
  • Server-controlled like everything else, and live-editable in bossgate_config or Ultimate SCM.

πŸŒ€ Portal items

Off by default (vanilla behaviour). When PortalItemsRequireBossKill is true, a player can step into a portal carrying items the game normally blocks, as long as every blocked item they carry has been released. An item is released when the boss of its biome is dead (the world's own boss-kill record, which the game already shares with every player):

Boss defeated Items released
The Elder copper, tin, bronze (ore, scrap and bars)
Bonemass iron (ore, scrap, bars, ironpit)
Moder silver (ore and bars), dragon eggs
Yagluth black metal (scrap and bars)
The Queen mechanical spring, Dvergr extractor
Fader flametal (ore and bars), charred cogwheel
Kall Fimbulbringer (whole fight, last phase) gold (ore and bars)
Brenna (Smouldering Tomb) and The Elder Hildir's Brass Chest
Geirrhafa (Howling Cavern) and Moder Hildir's Silver Chest
Zil & Thungr (Sealed Tower) and Yagluth Hildir's Bronze Chest
  • It only ever releases items the game already blocks and that are on the list above. Anything else the game blocks keeps being blocked, and the rule never blocks anything the game allows.
  • Items of a biome whose boss is still alive stay blocked. One blocked item is enough to stop the whole trip.
  • Items the game never lets through any portal (not even with the world setting that allows every item) stay blocked.
  • The inventory follows the rule: the "cannot teleport" mark disappears from items the player can already take through a portal.
  • Released at once: the check runs every time a player steps into a portal, so items are released the moment the boss dies.
  • Server-controlled like everything else: the server's value is sent to every player and applies to everyone. It can be changed live in bossgate_config or Ultimate SCM.
  • It does not depend on the boss unlock days: the question is whether the boss is dead in the world, not which day it is.

πŸ‘€ Personal progress

Off by default. PerPlayerProgress decides whose kills count for RequirePreviousBossDefeated and PortalItemsRequireBossKill:

PerPlayerProgress A boss counts as defeated for a player when...
false (default) anyone has killed it in the world (the world's own boss-kill record).
true that player took part in killing it in this world.
  • Who takes part: every player who hit the boss (the game's own attacker record) and every player within 40 m of it when it died. Healers and tanks in the fight are counted too.
  • Per world: the record is stored on the character but tied to this world. A boss killed in singleplayer or on another server does not count here.
  • Recorded all the time: kills are recorded even while the setting is off, so it can be turned on later without punishing players who already fought (as long as they ran BossGate 1.1.1 or newer at the time).
  • Applies to the boss progression rule, to the portal items and to Hildir's chests (the miniboss and the biome boss must both be personal kills).
  • A player who joins later or missed a fight has to take part in killing that boss to progress.

🌐 Multiplayer

  • Install the mod on the server and on every client.
  • When a player joins, the server sends its config; the player's own .cfg is ignored.
  • If the server does not run BossGate, the client does nothing.
  • Versions 1.1.x and 1.0.0 can be mixed: a 1.0.0 client simply ignores the new rules (progression, portal items, personal progress), and a 1.1.x client on a 1.0.0 server treats them as off.
  • Singleplayer and the host of a listen server use their own .cfg.
  • The settings pages of bossgate_config need BossGate 1.1.2 or newer on the server; on an older server, players and admins still get the read-only Overview and Portal items.

⚠️ Known limitations

  • The rule is checked on the player's own game, not by the server. A client without BossGate can still summon bosses unless KickClientsWithoutMod is on, and a player running a modified client can get around any client-side check. KickClientsWithoutMod cannot stop modified clients.
  • BossGate does not watch its .cfg file. If you edit Igao.BossGate.cfg by hand while the server is running, restart the server for the change to apply, press Reload .cfg in the bossgate_config panel, or make the change in Ultimate SCM instead. (Ultimate SCM can also reload edited .cfg files on its own: it checks every 60 seconds.)
  • A player removed by KickClientsWithoutMod gets a plain disconnect; no explanation is sent.
  • The rule applies to every player, admins included. Bosses spawned with console commands are not affected, and bosses that are already alive are not touched: only placing the offering is blocked.
  • The Queen has no offering on her first fight, so BossGate gates the Sealbreaker instead: while The Queen is locked (6 - The Queen day, or LockAllBosses), the Infested Citadel door cannot be opened with the Sealbreaker and the player gets the on-screen message. Summoning her again with Seeker soldier trophies on the hive seat is gated by the same setting. The Sealbreaker is detected by the key item of the door (item id DvergrKey), so any door that uses that key follows The Queen's setting. Each door used is written once to LogOutput.log (Door used). The door is also blocked from being closed again while the lock is active.
  • Fader is summoned with 3 Bells on the coliseum's item stands: placing the bells is allowed, activating the altar is what gets blocked.
  • Personal progress is recorded by the game of the player who controls the boss when it dies (usually one of the players in the fight). That player must run BossGate 1.1.1 or newer; use KickClientsWithoutMod to make sure everyone does. Kills made before BossGate 1.1.1 was installed are not recorded.
  • The portal rule is also checked on the player's own game, like the summoning rule: a client without BossGate (or a 1.0.0 client) keeps vanilla portals, and a modified client can get around it. KickClientsWithoutMod does not change that.
  • The portal rule only knows the items listed in Portal items. If a game update adds new blocked items, they stay blocked until BossGate is updated.
  • The progression rule only counts kills the world has recorded. Bosses killed before the rule was turned on are counted (the record is already in the world). In a world where an earlier boss was never defeated, that boss must be killed before the next ones can be summoned.
  • Bosses are recognized by the names of the altar's boss and offering item. If a game update renames them, that boss stops being gated until BossGate is updated.

🌍 Languages

English, Portuguese (Brazil), Portuguese (Portugal), Spanish, French, German, Italian, Dutch, Polish, Swedish, Turkish, Russian, Japanese, Korean, Chinese. The files are in plugins/Translations/ and can be edited; keys are msg_locked_day ({boss}, {day}, {current}), msg_locked and msg_previous_boss; the other keys are the texts of the bossgate_config panel.


πŸ“¦ Installation

Install with a mod manager (Thunderstore / r2modman): BossGate and Ultimate SCM are installed together. For a manual install, copy BossGate.dll and the Translations folder to BepInEx/plugins/ on the server and every client, and also install Ultimate SCM if you want its F1 panel (bossgate_config works without it).

AI tools were used to help review the code and hunt down bugs. All features were designed by the author.


Found a bug? Got an idea for BossGate?
πŸ’¬ https://discord.gg/aMkN89Cuas

Thunderstore development is made possible with ads. Please consider making an exception to your adblock.