Valheim

Details

Last Updated
3 hours ago
First Uploaded
3 hours ago
Downloads
47
Likes
0
Size
566KB
Dependency string
sighsorry-DropNSpawn-1.0.3
Dependants

DropNSpawn

All drops, spawns and boss locations are configurable.

The mod is split into five domains:

  • location: OfferingBowl, ItemStand, and Vegvisir inside location roots
  • character: CharacterDrop loot
  • object: containers, pickables, destructibles, mine rocks, trees, fish, and related object-domain drop tables
  • spawner: SpawnArea and CreatureSpawner
  • spawnsystem: the world SpawnSystem table

Location


Specific for boss-related locations

  • boss altar behavior (Harder boss at night, boss respawn cooldown and so on)
  • slot-specific ItemStand restrictions (Change offerings)
  • Vegvisir target or presentation changes (change icon and the location it points to)
  • Hover on altar to see the offerings and boss. (serversync)

Character

  • replace vanilla creature loot
  • merge multiple conditional loot rows for the same creature (VNEI compatible)
  • Check various conditioned examples on the config/DropNSpawn/examples
  • apply CLLC-aware drop behavior when Creature Level and Loot Control is installed
  • Mobs can drop loots in one stack.
  • Loot per person checks configured range instead of whole world.

Object

  • chest loot replacement
  • tooltier, health change for trees and rocks
  • tree or rock drop changes
  • pickable loot changes (bonefiles, fish, berries)
  • destructible health and spawn-on-destroy changes
  • DNS_object.locations.reference.yml exists because many objects are dependent on locations

Spawner

  • change spawn tables
  • change spawn intervals, trigger distance, caps, level range, respawn time
  • apply location-scoped spawner overrides with top-level location
  • ExpandWorldData compatible
  • DNS_spawner.locations.reference.yml exists because many spawners are dependent on locations

SpawnSystem

You can see many vertical lines on above image. Those are SpawnSystems

  • biome/world spawn rules
  • global-key-gated spawning
  • time-of-day spawn rules
  • world-level conditional behavior
  • ExpandWorldData compatible (Same system with ExpandWorldSpawn just that format is different)
  • This domain is authoritative and replaces the live SpawnSystem table with the rows you define.
  • Above image is explanation of how spawnsystem works in valheim

Compatibility Notes

DropNSpawn overlaps with other mods that edit the same runtime systems.
If another mod owns a domain more completely, disable the overlapping DropNSpawn domain instead of stacking both.

VNEI: All the custom drops would show up normally in VNEI
CLLC: CLLC effects can be used as condition or modification uppon creature drops and spawns
MonsterDB: DNS overlap with MonsterDB on character, spawnsystem. Disable those on DNS config if you prefer MonsterDB on that part
DropThat!: DNS overlap with DropThat! on object, character. Disable those on DNS config if you prefer DropThat! on that part
SpawnThat!: DNS overlap with SpawnThat! on spawner and/or spawnsystem. Disable those on DNS config if you prefer SpawnThat! on that part
ExpandWorldSpawns: DNS overlap with ExpandWorldSpawns on spawnsystem. Disable that on DNS config if you prefer ExpandWorldSpawns on that part
SpawnerTweaks: DNS should be compatible with SpawnerTweaks

Helpful mods

ESP: To see the spawner and spawnpoints and various other objects' info
XRayVision: To see the object's component
InfinityHammer: To place and remove various objects arbitrarily

Recommended Workflow

  1. Start the game and let DropNSpawn initialize game data
  2. Inspect the generated reference file
  3. Copy only the rows you need into DNS_<domain>.yml or a supplemental DNS_<domain>_*.yml
  4. Reload by saving the YAML file, or restart if you prefer a clean boot

Reference, Override, Examples and Full Files

files are generated under: BepInEx/config/DropNSpawn/
These file types have different purposes.

  • reference

    • Lookup snapshot of real prefab names and reference values
    • Safe to regenerate at any time
  • override

    • Loaded live configuration
    • Changes runtime behavior
  • full

    • Exhaustive generated scaffold
    • Not auto-loaded
    • Intended as a copy/paste source when writing overrides
  • Basic reference files

    • DNS_location.reference.yml
    • DNS_character.reference.yml
    • DNS_object.reference.yml
    • DNS_object.locations.reference.yml
    • DNS_spawner.reference.yml
    • DNS_spawner.locations.reference.yml
    • DNS_spawnsystem.reference.yml
  • Basic override files

    • DNS_location.yml
    • DNS_character.yml
    • DNS_object.yml
    • DNS_spawner.yml
    • DNS_spawnsystem.yml
      • Keep in mind that spawnsystem is full override while other domains are partial override (If you put only boar entry in DNS_spawnsystem.yml that's all you got)
      • If you have installed monster mod after first file generation, get those new entries of spawns from DNS_spawnsystem.reference.yml and put it on DNS_spawnsystem.yml

AutoUpdate and ManualUpdate

Reference generation behavior is controlled by the mod config.

  • AutoUpdate
    • creates missing reference files automatically
    • updates existing reference files automatically for most domains
    • There can be some hitch at initial file generation
  • ManualUpdate
    • creates missing reference files automatically
    • updates existing reference files only when you run dns:reference

Console Commands

DropNSpawn registers three console commands:

  • dns:reference [object|character|spawner|location|spawnsystem|all]
    • Regenerates current reference files
  • dns:full [object|character|spawner|location|spawnsystem|all]
    • Writes non-loaded full scaffold files
  • dns:inspect spawner
    • Inspects the current or nearest spawner target and shows resolved prefab and location selector context

Config


## If on, the configuration is locked and can be changed by server admins only. [Synced with Server]
# Setting type: Toggle
# Default value: On
# Acceptable values: Off, On
Lock Configuration = On

## If off, DropNSpawn object YAML files stay on disk but object runtime overrides are not applied and existing object changes are restored to vanilla. Turn this off with Enable Character when using Drop That!. Turn this off when using Spawner Tweaks features for Chests or Pickables. [Synced with Server]
# Setting type: Toggle
# Default value: On
# Acceptable values: Off, On
Enable Object Overrides = On

## If off, DropNSpawn character YAML files stay on disk but CharacterDrop runtime overrides are not applied and existing character changes are restored to vanilla. Turn this off with Enable Object when using Drop That!. Turn this off when using Spawner Tweaks creature overrides. [Synced with Server]
# Setting type: Toggle
# Default value: On
# Acceptable values: Off, On
Enable Character Overrides = On

## If off, DropNSpawn SpawnArea and CreatureSpawner runtime overrides are not applied and existing spawner changes are restored to vanilla. Turn this off with Enable SpawnSystem when using Spawn That!. Turn this off when using Spawner Tweaks Spawn points or Spawners features. [Synced with Server]
# Setting type: Toggle
# Default value: On
# Acceptable values: Off, On
Enable Spawner Overrides = On

## If off, DropNSpawn location runtime overrides for OfferingBowl, ItemStand, and Vegvisir are not applied and existing location changes are restored to vanilla. Turn this off when using Spawner Tweaks Boss altars or Item stands features. [Synced with Server]
# Setting type: Toggle
# Default value: On
# Acceptable values: Off, On
Enable Location Overrides = On

## If off, DropNSpawn world SpawnSystem runtime overrides and extended global key handling are not applied and existing SpawnSystem changes are restored to vanilla. Turn this off for Expand World Spawns. Turn this off with Enable Spawner when using Spawn That! world spawning. [Synced with Server]
# Setting type: Toggle
# Default value: On
# Acceptable values: Off, On
Enable SpawnSystem Overrides = On

## Affects only timeOfDay: [afternoon]. Uses the raw day fraction before Valheim's internal day/night rescale. Valheim day starts at 0.15 and night starts at 0.85. Allowed range is 0.2 to 0.8. [Synced with Server]
# Setting type: Single
# Default value: 0.5
# Acceptable value range: From 0.2 to 0.8
Afternoon Start Fraction = 0.5

## If on, looking at an OfferingBowl shows simplified offering info with the spawned boss/item and required offering item. Matching altar ItemStands also show their required supported item names. [Synced with Server]
# Setting type: Toggle
# Default value: On
# Acceptable values: Off, On
Show LocationProxy Offering Bowl Hover Info = On

## Controls server sync behavior for VNEI-visible character and SpawnArea preview data. OnConnectOnly keeps the latest payload on the server for new connections but does not push live updates to already connected clients. Live pushes runtime changes to connected clients immediately, which may cause small hitches if the server saves DNS files often. [Not Synced with Server]
# Setting type: VneiSyncMode
# Default value: OnConnectOnly
# Acceptable values: OnConnectOnly, Live
VNEI Sync Mode = OnConnectOnly

[2 - Character Drop]

## If on, all character loot drops in stacks whenever possible, including vanilla drops that are not overridden in YAML. Items listed in the Drop In Stack Blacklist always stay as separate drops. Non-stackable items and single-quantity drops are unchanged. Turning this off only disables the global default; per-entry YAML dropInStack still works unless the item is blacklisted. [Synced with Server]
# Setting type: Toggle
# Default value: Off
# Acceptable values: Off, On
Global Drop In Stack = Off

## Comma, semicolon, or newline separated item prefab names that should never use character loot drop-in-stack. Applies to both vanilla character drops and YAML-driven character drops when they pass through CharacterDrop. This blacklist has higher priority than the global default and higher priority than per-entry YAML dropInStack. Example: Coins,TrophyDeer [Synced with Server]
# Setting type: String
# Default value:
Drop In Stack Blacklist =

## If 0, disables the nearby-player override and uses vanilla server-wide online player count for character-drop onePerPlayer. If greater than 0, counts only players within this many horizontal XZ meters of the dropping character. [Synced with Server]
# Setting type: Single
# Default value: 32
# Acceptable value range: From 0 to 100
One Per Player Nearby Range = 32

[3 - Client]

## AutoUpdate automatically creates missing reference YAML files and updates existing ones, except DNS_spawner.locations.reference.yml, which is only auto-created when missing and never auto-updated afterwards. ManualUpdate automatically creates missing reference YAML files but updates existing ones only when you run dns:reference. [Not Synced with Server]
# Setting type: ReferenceUpdateMode
# Default value: AutoUpdate
# Acceptable values: AutoUpdate, ManualUpdate
Reference Update Mode = AutoUpdate
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.