← 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.
| Requirement | What it's for | Included |
|---|---|---|
| Moreo Festival map (not included) | Every booth, speaker, mic and lighting position in the config is measured from this map. | No |
| Cayo Perico game build | The lighting rig uses DJ rig and speaker models from that update. | No |
swarm_bridge | Required 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
- Copy the folders
SwarmDJ_V1,swarm_bridgeinto your server'sresourcesfolder. Already haveswarm_bridgefrom another Swarm script? Keep just one copy, the newest. - Add them to
server.cfg, dependencies first:# your Moreo Festival map resource ensure swarm_bridge ensure SwarmDJ_V1 - Database: No database. Venue state is kept in server memory.
- Put your MP3, OGG or WAV files in
SwarmDJ_V1/music, list them inConfig.LocalTracks, and restart the resource. - 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. - 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.
| Setting | What it does |
|---|---|
Config.RequireAce | false by default, so anyone at the booth can take over the decks. Set true to limit the decks to Config.AcePermission. |
Config.AcePermission | ACE checked when RequireAce is on ('swarmdj.use' by default). |
Config.LocalTracks | Your local tracks in /music. |
Config.Venues.moreo_festival | Booth, speaker, mic and fixture positions. Only valid with the Moreo Festival map. |
Config.OpenKey / Config.Command / Config.InteractKey | F6, '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
| Command | Who | What it does |
|---|---|---|
/swarmdj | Everyone | Opens the DJ console within 12 m of a booth. Bound to F6. |
/swarmdj_smokestop | Everyone | Stops running smoke. |
Permissions (ACE)
Add to server.cfg, changing group.admin to your staff group if needed:
add_ace group.admin swarmdj.use allowswarmdj.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.
Swarm Scripts
Nyxia Development