korCaptain-CaptainAudio icon

CaptainAudio

Custom audio replacement mod for Valheim. Replace music, ambient sounds, and SFX with your own audio files.

Last updated a week ago
Total downloads 224
Total rating 1 
Categories Audio Client-side
Dependency string korCaptain-CaptainAudio-1.3.0
Dependants 0 other packages depend on this package

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2202 icon
denikson-BepInExPack_Valheim

BepInEx pack for Valheim. Preconfigured and includes unstripped Unity DLLs.

Preferred version: 5.4.2202

README

Captain Audio

Replace Valheim's music, ambient sounds, and sound effects with custom audio files embedded directly in the mod DLL.

Transform your Valheim experience with 64MB of custom music covering all biomes, bosses, time-based themes, and more. Captain Audio provides a complete audio replacement system with real-time controls and easy customization.

๐Ÿ“– About This Mod

Captain Audio is an enhanced and extended version of aedenthornCustomAudio, adding:

  • 44 high-quality music tracks embedded directly in the DLL (64MB total)
  • Pre-configured music for all biomes, bosses, and activities
  • Ready to use out-of-the-box - no additional setup required
  • Full compatibility with the original CustomAudio external file system

This mod builds upon aedenthornCustomAudio's flexible audio replacement framework while providing a complete curated soundtrack experience.


โœจ Features

๐ŸŽต Music Replacement

  • 44 embedded audio files covering:
    • ๐Ÿ— Boss battles (Eikthyr, Elder, Bonemass, Moder, Yagluth, The Queen)
    • ๐ŸŒฒ All biomes (Meadows, Black Forest, Swamp, Mountains, Plains, Mistlands, Ashlands)
    • ๐ŸŒ… Time-based themes (Morning, Evening)
    • ๐Ÿ  Activities (Home, Sailing, Menu)
    • ๐Ÿฐ Dungeons (Forest Crypt, Frost Caves)

๐ŸŒŠ Ambient Sound Replacement

  • Environment sounds for each biome
  • Ocean and wind sounds with special handling
  • Day/night ambient variations

๐Ÿ”Š Sound Effects (SFX) Replacement

  • Portal sounds
  • Fireplace/torch sounds (5 types: ground torch, wall torch, bonfire, etc.)
  • Customizable object sounds

โš™๏ธ Real-time Controls

  • Console commands for instant audio control
  • Config file for persistent settings
  • Volume controls that apply immediately
  • Reset functionality to restore vanilla audio

๐ŸŽต Included Music Inventory

This mod includes 44 embedded audio files (64MB total) covering:

Biomes (23 tracks)

  • Meadows: 3 tracks
  • Black Forest: 3 tracks
  • Swamp: 3 tracks + 1 rainy day variant
  • Mountains: 3 tracks
  • Plains: 3 tracks
  • Mistlands: 3 tracks
  • Ashlands: 2 tracks
  • Forest Crypt (dungeon): 2 tracks
  • Frost Caves (dungeon): 1 track

Boss Battles (10 tracks)

  • Eikthyr: 1 track
  • The Elder: 2 tracks
  • Bonemass: 1 track
  • Moder: 1 track
  • Yagluth: 2 tracks
  • The Queen: 1 track

Time & Activities (11 tracks)

  • Morning: 2 tracks
  • Evening: 1 track
  • Home: 3 tracks
  • Sailing: 2 tracks
  • Menu: 1 track

๐Ÿ“ฆ Installation

Method 1: r2modman (Recommended)

  1. Install r2modman if you haven't already: r2modman Download
  2. Select Valheim as your game
  3. Search for "CaptainAudio" in the mod browser
  4. Click "Download" and let r2modman handle everything
  5. Launch the game through r2modman

Method 2: Manual Installation

  1. Install BepInEx if not already installed: BepInExPack Valheim
  2. Download CaptainAudio.dll from this mod page
  3. Navigate to BepInEx/plugins/ folder
  4. Create folder CaptainAudio (if it doesn't exist)
  5. Copy CaptainAudio.dll into the folder
  6. Launch Valheim

Installation Path:

Valheim/
โ””โ”€โ”€ BepInEx/
    โ””โ”€โ”€ plugins/
        โ””โ”€โ”€ korCaptain-CaptainAudio/
              โ””โ”€โ”€ CaptainAudio.dll

๐ŸŽฎ Usage

Console Commands

Press F5 in-game to open the console, then use these commands:

Command Description Example Output
captainaudio music Display current music info Shows playing track, biome, time of day
captainaudio env Display environment audio info Shows ambient sounds, ocean/wind settings
captainaudio reset Reload settings from config Reapplies all config values

Example:

F5 (open console)
> captainaudio music
Current Music: Meadows_Morning_01.ogg
Biome: Meadows
Time: Morning
Volume: 0.6

Configuration File

After first launch, edit the config file at:

BepInEx/config/captain.CaptainAudio.cfg

Available Settings:

Setting Default Range Description
Enabled true true/false Enable/disable the mod
MusicVolume 0.6 0.0 - 1.0 Background music volume
AmbientVolume 0.3 0.0 - 1.0 Environment sounds volume
LocationVolumeMultiplier 5.0 0.0 - 10.0 Volume boost for location-specific music

Example Config:

[General]
Enabled = true
MusicVolume = 0.6
AmbientVolume = 0.3
LocationVolumeMultiplier = 5.0

[Advanced]
LoadRetryCount = 3
LoadRetryDelay = 0.5
LoadTimeout = 15
EnableFallback = true

Note: Config changes apply immediately in-game. Use captainaudio reset to reload if needed.


๐ŸŽจ Music Customization Guide

Audio File Organization

Captain Audio automatically matches audio files based on folder and file names:

asset/Resources/
โ”œโ”€โ”€ Music/
โ”‚   โ”œโ”€โ”€ Meadow/               โ† Meadows biome music
โ”‚   โ”‚   โ”œโ”€โ”€ song1.ogg
โ”‚   โ”‚   โ””โ”€โ”€ song2.ogg
โ”‚   โ”œโ”€โ”€ BlackForest/          โ† Black Forest music
โ”‚   โ”œโ”€โ”€ Boss_Eikthyr/         โ† Eikthyr boss battle
โ”‚   โ”œโ”€โ”€ Morning/              โ† Morning theme (all biomes)
โ”‚   โ””โ”€โ”€ Evening/              โ† Evening theme
โ”œโ”€โ”€ Ambient/
โ”‚   โ””โ”€โ”€ ocean_waves.wav
โ””โ”€โ”€ SFX/
    โ””โ”€โ”€ portal_sound.mp3

Naming Conventions

Music Files:

  • Folder names should match game locations: Meadow, BlackForest, Swamp, Mountain, Plain
  • Boss music: Boss_Eikthyr, Boss_TheElder, Boss_Bonemass, Boss_Moder, Boss_Yagluth, Boss_TheQueen
  • Time-based: Morning, Evening
  • Special: Home, Menu, Sailing

Supported Audio Formats:

  • .ogg - Recommended (Vorbis compression, smaller file size)
  • .wav - Uncompressed (high quality, larger files)
  • .mp3 - MPEG compression (limited support)

Adding Your Own Music

Method 1: External Files (โœ… Recommended)

  1. Navigate to: BepInEx/plugins/CaptainAudio/ folder (create if it doesn't exist)
  2. Create folders:
    BepInEx/plugins/korCaptain-CaptainAudio/
    โ”œโ”€โ”€ Music/       # Your custom music files
    โ”œโ”€โ”€ Ambient/     # Custom ambient sounds
    โ””โ”€โ”€ SFX/         # Custom sound effects
    
  3. Add your audio files (.ogg, .wav, .mp3)
  4. Organize by folders:
    • Root level: Individual tracks (e.g., Music/custom_song.ogg)
    • Subfolders: Biome/boss-specific music (e.g., Music/Meadows/meadow1.ogg, Music/Boss_Eikthyr/boss_track.ogg)
  5. Restart Valheim to load new music

Supported Formats:

  • .ogg - Recommended (Vorbis compression, best compatibility)
  • .wav - Uncompressed (high quality, larger files)
  • .mp3 - MPEG compression (limited support)

Note: Game restart required to detect new files. Files added during gameplay are not automatically loaded.

How Folder Matching Works

Captain Audio uses a 3-tier matching system:

  1. Exact Folder Name (Priority 1)

    • Music/Meadows/ โ†’ Meadows biome music
    • Music/Boss_Eikthyr/ โ†’ Eikthyr boss battle music
  2. Mapping Rules (Priority 2)

    • Music/Meadow/ โ†’ Also works for Meadows (mapped: "meadow" โ†’ "meadows")
    • Music/Forest/ โ†’ Black Forest music (mapped: "forest" โ†’ "blackforest")
    • Music/Menu/ or Music/MainMenu/ โ†’ Menu music (multiple aliases)
  3. Individual Clip Replacement (Fallback)

    • Root-level files replace specific clips by filename

Recommended Folder Names:

  • Biomes: Meadows, BlackForest, Swamp, Mountain, Plain, Mistland, Ashland
  • Bosses: Boss_Eikthyr, Boss_TheElder, Boss_Bonemass, Boss_Moder, Boss_Yagluth, Boss_TheQueen
  • Time/Activities: Morning, Evening, Home, Sailing, Menu
  • Dungeons: forestcrypt, frostcaves

Multiple Files Per Folder: Each folder can contain multiple tracks. The game will randomly select from available tracks.

Example Structure:

BepInEx/plugins/korCaptain-CaptainAudio/Music/
โ”œโ”€โ”€ Meadows/
โ”‚   โ”œโ”€โ”€ peaceful1.ogg
โ”‚   โ”œโ”€โ”€ peaceful2.ogg
โ”‚   โ””โ”€โ”€ peaceful3.ogg   # 3 tracks โ†’ random selection
โ”œโ”€โ”€ Boss_Eikthyr/
โ”‚   โ””โ”€โ”€ epic_battle.ogg  # 1 track
โ””โ”€โ”€ Mountain/
    โ”œโ”€โ”€ mountain_theme1.ogg
    โ””โ”€โ”€ mountain_theme2.ogg  # 2 tracks โ†’ random selection

Method 2: Rebuild from Source (Advanced)

  1. Clone/download the source code
  2. Add your .ogg or .wav files to asset/Resources/Music/[Folder]/
  3. Rebuild the project with dotnet build -c Release
  4. The audio files will be embedded in the DLL

๐Ÿ”ง Troubleshooting

Music Not Playing

  1. Check console (F5) for error messages
  2. Verify BepInEx is installed correctly
  3. Try captainaudio reset command
  4. Check config file: Enabled = true, MusicVolume > 0.0

Volume Too Low/High

  • Adjust MusicVolume and AmbientVolume in config file
  • Use captainaudio reset to apply changes
  • For location music, adjust LocationVolumeMultiplier

Audio Cuts Out or Stutters

  • Check LoadRetryCount and LoadTimeout in Advanced config
  • Ensure sufficient disk space
  • Try reducing LocationVolumeMultiplier if location music overlaps

Config File Not Found

  • Launch the game once to generate the config file
  • Location: BepInEx/config/captain.CaptainAudio.cfg
  • Default values will be created automatically

๐Ÿ“‹ Technical Details

  • Framework: .NET Standard 2.1
  • BepInEx Version: 5.4.2200+
  • Total Audio: 64MB embedded (44 files)
  • Audio Formats: OGG (primary), MP3, WAV
  • Harmony Patches: 10 patches for comprehensive audio replacement
  • Performance: Parallel loading, reflection caching, retry logic

๐ŸŒ Compatibility

  • โœ… Singleplayer: Fully supported
  • โœ… Multiplayer: Client-side only (other players won't hear your music)
  • โœ… Dedicated Servers: No server-side installation needed
  • โœ… Other Mods: Compatible with most mods (no known conflicts)

๐Ÿค Support & Feedback


๐Ÿ“ Credits


๐Ÿ“„ License

This mod is provided as-is for personal use. Please respect the original audio creators' rights when using custom audio files.


Enjoy your personalized Valheim soundtrack! ๐ŸŽต


ํ•œ๊ตญ์–ด

๋‚ด์žฅ ์Œ์•… (DLL์— ํฌํ•จ)

๋ฐ”์ด์˜ด/์ง€์—ญ ๊ณก ์ˆ˜
์ดˆ์› (Meadow) 3๊ณก
๊ฒ€์€์ˆฒ (BlackForest) 3๊ณก
๋Šช์ง€๋Œ€ (Swamp) 3๊ณก
๋Šช์ง€๋Œ€ ๋น„์˜ค๋Š”๋‚  (Swamprainday) 1๊ณก
์‚ฐ์•… (Mountain) 3๊ณก
ํ‰์› (Plain) 3๊ณก
์•ˆ๊ฐœ๋•… (Mistland) 3๊ณก
์žฟ๋น›๋•… (Ashland) 2๊ณก
ํ•ญํ•ด (Sailing) 3๊ณก
์ง‘ (Home) 3๊ณก
๋ฉ”๋‰ด (Menu) 1๊ณก
์•„์นจ (Morning) 2๊ณก
์ €๋… (Evening) 1๊ณก
์ˆฒ ๋˜์ „ (forestcrypt) 2๊ณก
์–ผ์Œ ๋™๊ตด (frostcaves) 1๊ณก
๋ณด์Šค (์ดํ•ฉ) 10๊ณก
- ์—์ดํฌํŠ€๋ฅด (Eikthyr) 1๊ณก
- ์žฅ๋กœ (TheElder) 2๊ณก
- ๋ณธ๋งค์Šค (Bonemass) 1๊ณก
- ๋ชจ๋ฐ๋ฅด (Moder) 1๊ณก
- ์•ผ๊ธ€๋ฃจ์Šค (Yagluth) 2๊ณก
- ์—ฌ์™• (TheQueen) 1๊ณก
- ํŽ˜์ด๋” (Fader) 2๊ณก

์ดํ•ฉ: 44๊ณก

์ปค์Šคํ…€ ์Œ์•… ์šฐ์„ ์ˆœ์œ„

์ปค์Šคํ…€ ํด๋”์— ์Œ์•…์„ ๋„ฃ์œผ๋ฉด, ํ•ด๋‹น ๋ฐ”์ด์˜ด์€ ์ปค์Šคํ…€ ์Œ์•…๋งŒ ์žฌ์ƒ๋ฉ๋‹ˆ๋‹ค!

๋‚ด์žฅ ์Œ์•…์€ ์™„์ „ํžˆ ๋ฌด์‹œ๋ฉ๋‹ˆ๋‹ค.

์‚ฌ์šฉ ๋ฐฉ๋ฒ•

  1. ํด๋” ์ƒ์„ฑ: BepInEx/plugins/korCaptain-CaptainAudio/Music/{ํด๋”๋ช…}/
  2. .ogg, .wav, .mp3 ํŒŒ์ผ ์ถ”๊ฐ€
  3. ๊ฒŒ์ž„ ์‹œ์ž‘ - ํ•ด๋‹น ์ง€์—ญ์—์„œ ์ปค์Šคํ…€ ์Œ์•…๋งŒ ์žฌ์ƒ

์˜ˆ์‹œ

BepInEx/plugins/CaptainAudio/
โ”œโ”€โ”€ CaptainAudio.dll
โ””โ”€โ”€ Music/
    โ””โ”€โ”€ Meadow/            โ† ์—ฌ๊ธฐ์— ์ปค์Šคํ…€ ์Œ์•… 2๊ณก ์ถ”๊ฐ€
        โ”œโ”€โ”€ my_song1.ogg
        โ””โ”€โ”€ my_song2.ogg

๊ฒฐ๊ณผ: ๋‚ด์žฅ๋œ ์ดˆ์› ์Œ์•… 3๊ณก์€ ๋ฌด์‹œ๋˜๊ณ , ์ปค์Šคํ…€ ์Œ์•… 2๊ณก๋งŒ ๋žœ๋ค ์žฌ์ƒ๋ฉ๋‹ˆ๋‹ค.

ํด๋”๋ช…

์•„๋ž˜ ํด๋”๋ช…์„ ์ •ํ™•ํžˆ ์‚ฌ์šฉํ•˜์„ธ์š”:

  • Meadow, BlackForest, Swamp, Swamprainday, Mountain, Plain
  • Mistland, Ashland, Sailing, Home, Menu
  • Morning, Evening, forestcrypt, frostcaves
  • Boss_Eikthyr, Boss_TheElder, Boss_Bonemass, Boss_Moder
  • Boss_Yagluth, Boss_TheQueen, Boss_Fader

Support