Skip to content

nastys/MEGAHAKUS

Repository files navigation

MEGAHAKUS 2.4.0

A Tesla overlay for 初音ミク Project DIVA MEGA39's.

screenshot Screenshot ©SEGA/©Crypton Future Media, INC.→www.piapro.net piapro

Licence: GNU GENERAL PUBLIC LICENSE Version 2

Project DIVA Modding 2nd Discord server: https://discord.gg/cvBVGDZ

Requirements

  • Atmosphère
  • 初音ミク Project DIVA MEGA39's 1.0.3
  • (recommended) An extracted copy of the game's romfs partition (use Lockpick_RCM, included with Kosmos, to dump your keys, then hactool to extract the PFS0 AKA NSP and the NCAs it contains)

Installation

  1. Install nx-ovlloader and Tesla-Menu (both are included with Kosmos v15.2+)
  2. Get MEGAHAKUS.ovl from Releases (or clone/download the repository and build it yourself) and copy it to switch/.overlays/ (it's a hidden folder)

No-NPR black skin workaround

  1. Copy shader/hlsl/cloth_defaults.bnsh from the game romfs to atmosphere/contents/0100F3100DA46000/romfs/shader/hlsl/ and rename it skin_defaults.bnsh
  2. Copy shader/hlsl/glass_eye_nonssss.bnsh from the game romfs to atmosphere/contents/0100F3100DA46000/romfs/shader/hlsl/ and rename it glass_eyes.bnsh

Outlines in NPR-only songs

  1. Copy pv_082.adp, pv_243.adp, pv_268.adp, and pv_988.adp from romfs:/rom_switch/rom/add_param/ to atmosphere/contents/0100F3100DA46000/romfs/rom_switch/rom/adp_force/
  2. To fix outlines in PS4 songs, you'll also need pv_234.adp, pv_434.adp, pv_610.adp, and pv_629.adp in both atmosphere/contents/0100F3100DA46000/romfs/rom_switch/rom/adp_force/ and atmosphere/contents/0100F3100DA46000/romfs/rom_switch/rom/add_param/

Note that if you disable or enable NPR, you need to go back to the PV selector to apply your changes. The module selector is not affected.

VP

Left: -1000 VP
Right: +1000 VP
-: 0 VP
+: 9999999 VP

Resolution scale

WARNING: CAN CAUSE FLICKER!

Left: -0.1%
Right: +0.1%
L: -1.0%
R: +1.0%
-: 2%
+: 100%

Thanks to SwigS-27 for the resolution scale address.

Debug mode

NOTE: Not compatible with DLC pack 2nd+. Currently, button releases are a bit buggy.

Joystick (default)/D-pad: move cursor
L/R/Joystick: hold/push to move faster
L+R: toggle overlay
ZL: left click
ZR: right click

Input polling interferes with clicks, therefore it must be disabled. Based on samyuu's research and code.

Enable recording

A modified control NCA is required. Based on somewhatlurker's research.