A decompilation of Pikmin 2 (USA) brought to you by fans of the series.
Go to file
2022-10-26 13:57:42 +11:00
.github/workflows Various cleanups & KochappyBaseMgr done 2022-10-19 23:11:49 +01:00
.vscode Update settings.json 2022-10-26 01:20:04 +01:00
asm Link BigTreasureMgr.cpp 2022-10-26 13:57:42 +11:00
docs Link RockMgr.cpp 2022-10-26 11:38:54 +11:00
include Link BigTreasureMgr.cpp 2022-10-26 13:57:42 +11:00
sha1 Initial commit 2021-09-27 21:57:49 +01:00
src Link BigTreasureMgr.cpp 2022-10-26 13:57:42 +11:00
tools Link BigTreasureMgr.cpp 2022-10-26 13:57:42 +11:00
unsorted_include_todo Various JSystem updates (#99) 2022-10-22 13:05:24 +11:00
.clang-format Misc. tweaks 2022-10-26 01:12:41 +01:00
.gitattributes Create .gitattributes 2022-01-27 22:30:48 -05:00
.gitignore Various cleanups & KochappyBaseMgr done 2022-10-19 23:11:49 +01:00
aoi.exe Various cleanups & KochappyBaseMgr done 2022-10-19 23:11:49 +01:00
asmdiff.sh Add makefile for elf2dol, Edit asmdiff.sh, Add patch_linker.sh 2021-10-04 10:10:08 -04:00
e_files.mk Match + link more Dolphin files (#94) 2022-10-15 16:53:33 +11:00
genasm.sh Update genasm.sh with --no-strip and some smarts. 2022-07-03 17:28:06 -04:00
genasmNoStrip.sh JPATexture, gameIconTexture, and random progress! 2021-12-05 19:22:31 -05:00
ldscript.lcf Major BSS refactor 2022-06-24 21:08:27 -04:00
LICENSE.MD Rename LICENSE to LICENSE.MD 2022-01-21 21:35:01 -05:00
linker-map.txt recreated source filesystem 2021-09-29 17:30:58 -04:00
Makefile Various cleanups & KochappyBaseMgr done 2022-10-19 23:11:49 +01:00
obj_files.mk Link BigTreasureMgr.cpp 2022-10-26 13:57:42 +11:00
README.MD Cleanup #1 2022-10-25 20:02:49 +01:00

Pikmin 2

Pikmin 2 decompilation to C++/C

- INFORMATION! -

The ROM this repository builds can be shifted. You are able to add
and remove code as you see fit, for modding or research purposes.

It builds the following DOL: pikmin2.usa.dol: sha1: 90d328bf8f190c90472e8c19e7e53c6ad0fe0d1a

Credits

  • intns
  • EpochFlame
  • SodiumChlorideLogic
  • GibHaltmannKill
  • kiwi
  • shibboleet
  • wowjinxy
  • nerduminer
  • JHawk
  • Minty-Meeo
  • Revo
  • ShadowLugia
  • HeartPiece
  • DroughtEnder

Building

Required Tools

Instructions

  • WINDOWS ONLY STEP:
    • Launch msys2(Provided by devkitPro) and run the command pacman -S gcc.
  1. Download GC_WII_COMPILERS.zip from (https://cdn.discordapp.com/attachments/727918646525165659/917185027656286218/GC_WII_COMPILERS.zip) and extract the GC folder to tools/mwcc_compiler/.
    • This folder should be made by the user.
  2. Run make -j in a command prompt or terminal.
    • -j Allows make to use multiple threads, speeding up the process.
  • OPTIONAL:
    • Obtain a clean DOL of Pikmin 2 USA 1.0 and place it in the base working directory and rename it to baserom.dol.
    • To generate a linker map (takes a considerable amount of time), run make MAPGENFLAG=1 -j

Generating Context for decomp.me Scratches

(NB: The generator requires Python 3 to run)

  • Stand-alone decompilation packages and tools require information on the functions and structures of the project in order to parse extracted blocks correctly. The easiest way to do this is to pass the tool just the necessary 'context' for the file, i.e. a set of all the headers used by the file that's being worked on.
  • A recursive context processing script is included in the repo (tools/decompctx.py), which generates a ctx.c file in the root directory.
    • The contents of this can then be copied and pasted into the 'Context' section of a decomp.me scratch or similar.
  • To use, call the generator via the terminal/command line from the root directory (replacing DIRECTORY and FILE as required): python3 tools/decompctx.py src/DIRECTORY/FILE.cpp
  • Credit to encounter and the Metroid Prime decomp project for the script!