A simple plugin for SCP: Secret Laboratory (LabAPI) that plays a single background music track while players are waiting in the lobby. The music stops automatically when the round starts.
Version: 3.0.2 · Author: Hanbin-GW
- Plays one looping track during the waiting (lobby) phase.
- Stops the track on round start.
- Configurable file path, volume, and loop behavior.
- Creates the audio folder automatically on first run (path is printed in the server logs).
- SCP: Secret Laboratory server
- LabAPI ≥ 1.1.5
- AudioPlayerApi (for audio playback)
- Recommended audio format: .ogg (Vorbis)
Build-time references used in this project include
LabApi,AudioPlayerApi,NVorbis, andSharpCompress.
- Build the project to produce
LobbyMusicLabAPI.dll(see Build below), or use a prebuilt DLL. - Place
LobbyMusicLabAPI.dllin your server's LabAPI plugins folder (e.g.,<SCP_SL_Server>/LabApi/Plugins/— use the folder where your LabAPI loads plugins). - Start the server once. The plugin will create a music folder if it does not exist and print its path in the console logs:
Music Folder didn't exist create new: <path>
- Put your music file (e.g.,
77.ogg) into that folder and update the config if needed. - Restart the server.
The plugin uses a YAML configuration. Default values (from code):
OnEnabled: true
Debug: true
LobbySongPath: "77.ogg" # File name or path to your lobby music (recommended .ogg)
Volume: 0.9 # 0.0 ~ 1.0
Loop: true # Whether to loop the lobby track- On server start / Waiting For Players: the plugin gets (or creates) an
AudioPlayernamed"Lobby", adds a non-spatial speaker, and starts the track with the requested volume and loop settings. - On Round Start: the plugin clears the lobby player and stops all clips.
- Target Framework: .NET Framework 4.8
- References: point these to your server/game DLLs or packages as appropriate
LabApi(tested with 1.1.4)AudioPlayerApiAssembly-CSharp.dll,Mirror.dll(from your game/server installation)NVorbis,SharpCompress,YamlDotNet
- Build in Release to produce
LobbyMusicLabAPI.dll.
- YouTube URL playback
- Auto-download & caching
- Smooth fade in/out
- Per-track volume control
- No music plays
- Check the server logs for the music folder path and ensure your file (e.g.,
77.ogg) exists there. - Verify
OnEnabled: truein the config. - Ensure AudioPlayerApi and LabAPI are installed and loaded without errors.
- Check the server logs for the music folder path and ensure your file (e.g.,
- Too quiet / too loud
- Adjust
Volumein the YAML (0.0–1.0).
- Adjust
- Does not stop on round start
- Confirm there are no conflicting plugins that also control lobby audio.
- Plugin by Hanbin-GW (Ghost World Inc.).
- Built on LabAPI and AudioPlayerApi.