LeopoldsTavernMusic
Plays Leopold's Tavern when a gameplay level starts. Install on every client that should hear it.
By ItsFlynn
| Date uploaded | 2 weeks ago |
| Version | 1.0.2 |
| Download link | ItsFlynn-LeopoldsTavernMusic-1.0.2.zip |
| Downloads | 12 |
| Dependency string | ItsFlynn-LeopoldsTavernMusic-1.0.2 |
This mod requires the following mods to function
BepInEx-BepInExPack
BepInEx pack for Mono Unity games. Preconfigured and ready to use.
Preferred version: 5.4.2305README
Leopold's Tavern Level Music
Plays LeopoldsTavern.wav locally whenever a gameplay scene whose name starts with Level_ loads. WAV is used because this game's Unity audio decoder does not reliably load MPEG files.
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 to change volume, looping, or the scene-name prefix.
Multiplayer
Playback is triggered independently by the synchronized level load. 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
Enabledsetting 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.wavmix (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
LoadAudioDatarequest. - 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.