A work-in-progress decompilation of Pikmin 2.
Supported versions:
GPVE01: USA RetailGPVE01_D17: USA Demo 17On Windows, it's highly recommended to use native tooling. WSL or msys2 are not required.
When running under WSL, objdiff is unable to get filesystem notifications for automatic rebuilds.
%PATH%.
%PATH%.
pip install ninjaInstall ninja:
brew install ninjaInstall wine-crossover:
brew install --cask --no-quarantine gcenx/wine/wine-crossoverAfter OS upgrades, if macOS complains about Wine Crossover.app being unverified, you can unquarantine it using:
sudo xattr -rd com.apple.quarantine '/Applications/Wine Crossover.app'Clone the repository:
git clone https://github.com/projectPiki/pikmin2.gitUsing Dolphin Emulator, extract your game's system data to orig/GPVE01. (Or orig/GPVE01_D17 for demo)
Properties.Filesystem tab and right-click Disc -> Extract System Data.

orig/GPVE01/sys/main.dol.Configure:
python configure.pyTo use the demo version, add --version GPVE01_D17. Add --help to see all available options.
Build:
ninjaOnce the initial build succeeds, an objdiff.json should exist in the project root.
Download the latest release from encounter/objdiff. Under project settings, set Project directory. The configuration should be loaded automatically.
Select an object from the left sidebar to begin diffing. Changes to the project will rebuild automatically: changes to source files, headers, configure.py, splits.txt or symbols.txt.

To enable modding, run configure.py with the --non-matching flag:
python configure.py --non-matchingThis:
asm.Equivalent in configure.py.Once built with ninja, the new DOL will exist at build/GPVE01/main.dol.