Skip to content

Ghidra plugin with tools for Super Monkey Ball 2 reverse engineering

License

Notifications You must be signed in to change notification settings

ComplexPlane/Ghidra-SuperMonkeyBallTools

Repository files navigation

Ghidra-SuperMonkeyBallTools

Ghidra plugin with tools for Super Monkey Ball 2 reverse engineering.

Install

  • Ensure that OpenJDK 17 is installed correctly
  • Download the plugin .zip from the releases page
  • Move the .zip to <Ghidra install dir>/Extensions/Ghidra/
  • Start Ghidra, go to (File > Install Extensions...), and enable the extension
  • Restart Ghidra, then open the decompilation in Code Browser and enable the extension when prompted

If you had a previous version of the plugin installed and the windows/hotkeys appear absent, for unknown reasons, you may need to remove .ghidra/ in your home directory and try again. File an issue if you run into this so it can be debugged further.

Features

Address Conversion

  • Convert a Ghidra address to an address in GameCube memory
  • Convert a Ghidra address to a location in a .dol/.rel file
  • Convert an address in GameCube memory to a Ghidra address

SMB Address Conversion window: Window > SMB: Convert Address in CodeBrowser

Convert address window

Shift-G: Go to GameCube RAM address

Symbol Export

Build from Source

  • Ensure you have JAVA_HOME set to the path of your JDK 17 installation
  • Set GHIDRA_INSTALL_DIR to your Ghidra install directory. This can be done in one of the following ways:
    • Windows: Running set GHIDRA_INSTALL_DIR=<Absolute path to Ghidra without quotations>
    • macOS/Linux: Running export GHIDRA_INSTALL_DIR=<Absolute path to Ghidra>
    • Using -PGHIDRA_INSTALL_DIR=<Absolute path to Ghidra> when running Gradle
    • Adding GHIDRA_INSTALL_DIR to your environment variables
  • Run .\gradlew.bat (Windows) or ./gradlew (macOS/Linux)
  • You'll find the output .zip file inside /dist

Credits

Thanks to CraftedCart for writing the initial version of this plugin.

About

Ghidra plugin with tools for Super Monkey Ball 2 reverse engineering

Resources

License

Stars

Watchers

Forks

Packages

No packages published