You are viewing a potentially older version of this package. View all versions.
ItsFlynn-LeopoldsTavernMusic-1.4.0 icon

LeopoldsTavernMusic

Plays Leopold's Tavern from the boat when its quota is met, with positional audio and Music-volume control.

Date uploaded a week ago
Version 1.4.0
Download link ItsFlynn-LeopoldsTavernMusic-1.4.0.zip
Downloads 51
Dependency string ItsFlynn-LeopoldsTavernMusic-1.4.0

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2305 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2305

README

Leopold's Tavern Boat Music

Plays LeopoldsTavern.wav locally when the value inside the boat reaches the level's quota. The track emanates from the boat as proximity-based 3D audio. Playback uses the game's own FMOD Core audio system rather than Unity's unreliable external-file decoder. It stops when gameplay exits for the shop, lobby, victory, defeat, disconnect cleanup, or a level-scene unload.

Installation

Install this mod on every player who should hear the song, then launch the game modded.

Configuration

After the first launch, edit BepInEx/config/com.bwadd.lastpirates.leopoldstavernmusic.cfg. Enabled turns the music on or off, Volume controls playback level (0.35 by default), and Loop controls whether it repeats. FullVolumeDistance and SilentDistance control proximity. The final playback volume also follows the game's Music volume slider. Enable and volume changes apply live.

Multiplayer

Playback is triggered independently from the synchronized quota state on each client. The host cannot send custom audio data to an unmodded client, so each listener needs this package installed.

Audio rights

Only redistribute this package if you have permission to distribute the included recording.

CHANGELOG

Changelog

1.4.0

  • Starts playback when the value in the boat reaches the level quota instead of at level start.
  • Emits the track from the boat as distance-attenuated 3D audio.
  • Ties final playback loudness to the game's Music volume setting while retaining the mod volume control.
  • Adds configurable full-volume and silent distances.

1.3.0

  • Lowers the default playback volume from 0.7 to 0.35.
  • Adds an Enabled setting that immediately stops playback when disabled.
  • Applies volume changes to a currently playing track.

1.2.1

  • Replaces the bundled track with the new Leos.wav mix (48 kHz, stereo, 24-bit WAV).

1.2.0

  • Starts playback only after the game's gameplay-level initialization completes.
  • Stops playback immediately when gameplay exits for the shop, lobby, victory, or defeat.
  • Stops and cancels queued playback when a level scene unloads, the plugin is disabled, or the game closes.
  • Prevents next-level scene preloading during the shop transition from starting the song early.

1.1.0

  • Replaced Unity AudioClip playback with the game's native FMOD Core streaming system.
  • Added FMOD initialization retries, duration reporting, and precise FMOD errors.

1.0.4

  • Bypassed Unity 6's failing file-to-AudioClip decoder with direct 16-bit PCM WAV streaming.
  • Added RIFF/WAVE validation and precise PCM format diagnostics.

1.0.3

  • Fixed Unity unloading an already-decoded downloaded WAV by removing the invalid second LoadAudioData request.
  • Added diagnostics for the clip state immediately returned by the WAV request.

1.0.2

  • Converted the track to PCM WAV after the game's Unity MPEG decoder returned an unloaded, zero-sample clip.
  • Added level-scene and queued-playback diagnostics.

1.0.1

  • Wait for MP3 sample decoding to finish before starting playback.
  • Reject zero-length clips with a useful diagnostic instead of silently playing them.

1.0.0

  • Initial release.
  • Local MP3 loading and level-start playback.
  • Configurable volume, looping, and scene-name prefix.