← All docsServer experience

Swarm DJ

A dual-deck DJ console (local MP3/OGG/WAV and YouTube) with synced spatial PA audio, festival lighting, smoke and pyro control and a stage microphone, built for the Moreo Festival map.

standaloneResource: SwarmDJ_V1

New to Swarm scripts? Read Getting started first. It covers Swarm Bridge, install order and the licence.

Requirements

Frameworks: standalone.

RequirementWhat it's forIncluded
Moreo Festival map (not included)Every booth, speaker, mic and lighting position in the config is measured from this map.No
Cayo Perico game buildThe lighting rig uses DJ rig and speaker models from that update.No
swarm_bridgeRequired for the licensed edition. In the source edition it only sets the language.Yes
Mumble-based voice (for example pma-voice)For the stage microphone.No

Install

  1. Copy the folders SwarmDJ_V1, swarm_bridge into your server's resources folder. Already have swarm_bridge from another Swarm script? Keep just one copy, the newest.
  2. Add them to server.cfg, dependencies first:
    # your Moreo Festival map resource
    ensure swarm_bridge
    ensure SwarmDJ_V1
  3. Database: No database. Venue state is kept in server memory.
  4. Put your MP3, OGG or WAV files in SwarmDJ_V1/music, list them in Config.LocalTracks, and restart the resource.
  5. Licensed edition only: put your ServerSecret in swarm_bridge/licence/private_config.lua. One secret unlocks every Swarm script you own. How to get it. The Source Code edition has no licence check, so skip this.
  6. Start the server and check the console for errors.

Configuration

Open shared/config.lua and check these before going live. Anything marked as a placeholder should be moved to a spot that suits your map.

SettingWhat it does
Config.RequireAcefalse by default, so anyone at the booth can take over the decks. Set true to limit the decks to Config.AcePermission.
Config.AcePermissionACE checked when RequireAce is on ('swarmdj.use' by default).
Config.LocalTracksYour local tracks in /music.
Config.Venues.moreo_festivalBooth, speaker, mic and fixture positions. Only valid with the Moreo Festival map.
Config.OpenKey / Config.Command / Config.InteractKeyF6, 'swarmdj' and E by default.
Config.Locale'auto' follows the language set in Swarm Bridge. Set a code such as 'de' to force this script into another language. See Languages.

Commands & permissions

CommandWhoWhat it does
/swarmdjEveryoneOpens the DJ console within 12 m of a booth. Bound to F6.
/swarmdj_smokestopEveryoneStops running smoke.

Permissions (ACE)

Add to server.cfg, changing group.admin to your staff group if needed:

add_ace group.admin swarmdj.use allow

swarmdj.use is only checked when Config.RequireAce = true.

Keys

  • F6: open the console near a booth
  • E: open the console at the booth marker, or toggle the stage microphone at the mic marker

Good to know

  • Arm PYRO in the console before flames, fireworks or the finale will fire.
  • One performer at a time can use the stage microphone.

Need help?

Ask in the Swarm Scripts Discord and we'll help you get set up.