Fexty12573/forge

An environment for linking, runtime hooking and code patching in Monster Hunter Generations Ultimate

★ 2Forks 1C++GitHub ↗Compare

README

MHGU Forge

An environment for linking, runtime hooking and code patching in Monster Hunter Generations Ultimate.

Installing (Ryujinx)

  1. Download the latest release from the releases page
  2. Open Ryujinx, right click MHGU and select "Open Mods Directory"
  3. Extract the contents of the downloaded archive into that folder
  4. In Ryujinx, right click MHGU and select "Create Custom Configuration" (or "Edit Custom Configuration" if you already did so before)
  5. Go to the CPU section and disable the "PPTC (Profiled Persistent Translation Cache)" option
  6. Click "Save".
  7. Right click MHGU and select "Cache Management > Purge PPTC Cache" and "Cache Management > Purge Shader Cache"
  8. Restart Ryujinx

Keyboard Input

To make keyboard input work, you need to enable "Direct Keyboard Access" in the Ryujinx Input Settings.

Building

Be sure to check out submodules first:

git submodule update --init --recursive

To build the module you'll need devkitPro.

Install devkitARM using pacman:

sudo (dkp-)pacman -Sy
sudo (dkp-)pacman -S devkitARM

Use dkp-pacman on macOS and Debian-based distros and pacman otherwise.

Also install the lz4 package:

# On Debian-based distros
sudo apt install liblz4-dev

# On Arch-based distros
sudo pacman -S lz4

# On macOS with Homebrew
brew install lz4

Then you can build the module:

make

You'll find subsdk.nso and main.npdm in the project directory. Move subsdk.nso to subsdk1 (for example) and main.npdm into an exefs folder in a mod directory.

Credits

Contributors

Fexty12573jeffi6375

Issues