Skip to content

Discord Rich Presence for Hatsune Miku: Project DIVA Mega Mix+.

License

Notifications You must be signed in to change notification settings

Braasileiro/PDRPC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PDRPC

Discord Rich Presence for Hatsune Miku: Project DIVA Mega Mix+.

This mod adds support for Discord Rich Presence in the game.

Displays information such as song name, author, album art, difficulty and current song performers, including custom songs.

It also indicates when you are just watching a PV or in Practice Mode.

Installation

  • .NET Framework 4.8 Runtime. This is normally built into minimally updated Windows.
  • Install Visual C++ 2015+ x64 Runtime if you don't have already installed.
  • Install DivaModLoader or DivaModManager.
  • Download the latest release and extract the zip contents on the "mods" folder in the Project DIVA installation directory. For DivaModManager, just drag and drop the zip file in the mod grid.

This mod has an GameBanana release.

Usage

Just play the game my little PogChamp. The Discord Activity will show up.

The PDRPC will try to reconnect to Discord if it is closed or opened after the game, but preferably open the Discord before the game.

Configuration

There are some settings you can change in config.toml file on [settings] section. Here are the default values:

album_art: Enabled. Shows the album art of the song. If no album art, defaults to the image of first performer. The mod contains album arts for all official songs and Restore Cut Songs Mod.
** Custom Songs will not show album art because the image has to be previously uploaded in the app console on Discord.

japanese_names: Disabled. Shows the song info in japanese whenever possible.
** This setting will have no effect on custom songs. The reading of the name and author on custom songs is done from memory, will appear exactly what is written in the game at the moment.

show_difficulty: Enabled.
Shows the difficulty of the current song with a colored icon (corresponding to the difficulty), in addition to the text in the small icon when hovering over.

song_info_output: Disabled.
Writes the output of the current song to a text file 'current_song_info.txt' inside the mod directory in the format below:

Rin-chan Now!                              -- Name
Owata P                                    -- Author
Hatsune Miku, Megurine Luka, Kagamine Rin  -- Performers
Playing                                    -- Mode (Playing, Watching Music Video, Practicing)
Extreme                                    -- Difficulty

User Custom Data

As of version 0.1.4, the application will try to fetch custom song data from memory, but still following the default priority: User Data > Internal Data > Read Memory > Fallback.

The mod supports loading user custom data. With this you can add songs to the rich presence database (like song packs) or overwrite official song data. As of version 0.0.6 the default database is now internal to the mod, so the only way to add and edit entries is this way.

Create the database_user.json file inside the PDRPC mod folder. Here's an example of what the file format should look like:

[
  {
    "id": 999,
    "album": 233,
    "jp": {
      "name": "曲名",
      "arranger": "ソングアレンジャー",
      "illustrator": "ソング・イラストレーター",
      "lyrics": "曲の歌詞",
      "music": "歌謡曲"
    },
    "en": {
      "name": "Song Name",
      "arranger": "Song Arranger",
      "illustrator": "Song Illustrator",
      "lyrics": "Song Lyrics",
      "music": "Song Music"
    },
    "performers": [
      {
        "chara": "MIK",
        "role": "VOCAL"
      },
      {
        "chara": "RIN",
        "role": "GUEST"
      }
    ]
  }
]

The file is self explanatory. It's basically a comma separated array of objects, a standard json array.

id: The song id. If you put here any id that already exists within the game, this record will overwrite the data that rich presence will show. Required field.

album: The album art id. It can be null or not declared. You can check all available arts here.

jp and en: The song info data. Required fields.

performers: An array that indicates the artists of the song. It can be null or not declared.

  • chara: The performer identifier.

    • KAI: KAITO
    • LEN: Kagamine Len
    • LUK: Megurine Luka
    • MEI: MEIKO
    • MIK: Hatsune Miku
    • RIN: Kagamine Rin
  • role: The performer role on the song. VOCAL or GUEST.

Thanks

Showcase