Giter VIP home page Giter VIP logo

Comments (2)

doodlezucc avatar doodlezucc commented on June 3, 2024 1

Hi there!

The background music of Dungeon Club is fetched from actual YouTube playlists which contain audio tracks licensed under Creative Commons (or similar).

It's not documented anywhere right now (don't worry about being confused), but ambience/meta.json is an automatically generated file. It includes information about each track's name and duration, as well as all source YouTube IDs.

If you want to add your own tracks, I'd suggest modifying the ambience/source.json file. That's where you'll find the IDs to all playlists which are downloaded. You can include new videos by adding any valid YouTube ID to the include field of a playlist.

{
    "playlists": {
        // ...

        // This playlist is titled "Ethereal" in Dungeon Club
        "PL4K_2Hl-nCuVDGnP6JX39cdqT63R1eyI1": {
            "include": [
                "XPZL2yFOeA8" // <-- Your newly added video ID
            ]
        },

        // ...
    }
}

Download the music-bundle.zip

All default music included in the public version of Dungeon Club is available as a compressed ZIP file. This "music bundle" contains all linked YouTube videos, converted to normalized MP3 files. I recommend downloading this bundle and unzipping the audio files into ambience/tracks/. Essentially, this replaces the step of fetching/converting all default tracks yourself, which may take a while.

Manual download/conversion

There are two command line tools required for downloading and converting the youtube playlists from ambience/source.json yourself: yt-dlp and ffmpeg. After installing, you can start your Dungeon Club server with the music player feature enabled by running ./server.exe --music. You should be able to see download progress of your newly added video IDs.

Updating ambience meta...
Downloading...  95.24%
Downloading... 100.00%
Downloaded track 21/21
Loaded music playlists

Dungeon Club is ready!
  - Local:   http://localhost:7070
  - Network: http://192.168.178.43:7070

Navigate to http://localhost:7070 and launch a campaign session. You should now be able to find your custom audio tracks when skipping through the audio player.

Thanks for trying out the self hosted version. If you encounter any problems, I'm always happy to help!

Cheers!

from dungeonclub.

senatormailman avatar senatormailman commented on June 3, 2024 1

Aha! That explains my confusion with meta.json!

Apologies, I have been quite busy these past couple of weeks. I will have to try this out now! I will go ahead and close this. Thank you again! 😃

from dungeonclub.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.