
TocoronScaling
Scales enemy health and damage by the number of players online on the server, without the vanilla player cap. Server-synced config.TocoronScaling
Vanilla Valheim only makes enemies tougher based on the players near each enemy, and stops counting at a fixed cap. TocoronScaling can also count the players online on the server and lets you raise or remove that cap.
Install
Install it on the dedicated server and on every player. Enemy health and damage are calculated by whichever game controls the enemy, and that is usually a player's game.
How it counts players
| Mode | Players counted |
|---|---|
Online |
Everyone online on the server |
Nearby |
Only players near the enemy, like vanilla but with your own cap and range |
Mix (default) |
The higher of: players nearby, or players online × OnlineWeight (rounded up) |
Example with the defaults (Mix, OnlineWeight = 0.5): with 7 players online and 1 near the enemy, it counts 4. With all 7 together, it counts 7.
Config
BepInEx/config/tocoron.scaling.cfg. On a server, the server's values are sent to every player when they join and when a setting changes. The player's own file is left untouched, and their own values come back when they leave.
| Setting | Default | What it does |
|---|---|---|
Enabled |
true | Turns the scaling on |
Mode |
Mix | Online / Nearby / Mix |
OnlineWeight |
0.5 | Mix only: how much each online player counts |
MaxPlayers |
10 | Most players counted |
NearbyRange |
200 | Meters around the enemy where a player counts as nearby |
HealthPerPlayer |
0.3 | Extra enemy health per player after the first (0.3 = +30%). The game applies it by reducing the damage enemies take. -1 keeps the game's value |
DamagePerPlayer |
0.04 | Extra enemy damage per player after the first (0.04 = +4%). -1 keeps the game's value |
DebugLog |
false | Logs the counted players and the resulting multipliers at most every 30 s. Local only |
TestExtraOnline |
0 | Testing only: adds fake online players so you can see the effect alone. Local only, keep it at 0 to play |
The console command players N still forces a fixed count, as in vanilla.
Compatibility
- Do not turn on ValheimPlus
[Game]difficulty options at the same time: both change the same calculation. - It does not touch star levels, so it works alongside StarLevelSystem or CLLC.