A WIP decompilation of Dinosaur Planet for the Nintendo 64
Go to file
Ethan Lafrenais 6077ff087e
Some checks failed
build / build (push) Has been cancelled
Mark microcode in splat/symbol_addrs
2024-11-09 13:48:51 -05:00
.github/workflows Update GitHub workflows 2022-04-10 20:24:09 -04:00
docs Small tool updates (#85) 2022-04-18 14:25:55 -04:00
include Update libultra headers a little 2024-11-09 13:48:01 -05:00
src Some segment_5660 decomp (#94) 2024-11-08 18:20:54 -05:00
tools ROM patcher tool for recomp 2024-11-09 01:21:32 -05:00
.dockerignore update dockerfile and requirements.txt (#30) 2021-03-03 08:13:48 -06:00
.gitignore Fixed permuter support (#87) 2022-04-26 23:43:19 -04:00
.gitmodules Fixed permuter support (#87) 2022-04-26 23:43:19 -04:00
baserom.md5 Verify baserom is original dump (#16) 2021-02-27 18:55:55 +11:00
checksum.md5 move output ROM to build directory 2021-02-22 15:17:13 -08:00
CONTRIBUTING.md workflow test 2024-05-15 13:36:41 -05:00
diff_settings.py Small tool updates (#85) 2022-04-18 14:25:55 -04:00
dino.py Fixed permuter support (#87) 2022-04-26 23:43:19 -04:00
Dockerfile Update progress.py (#88) 2022-05-10 21:25:12 -04:00
packages.txt Fixed permuter support (#87) 2022-04-26 23:43:19 -04:00
README.md Update progress.py (#88) 2022-05-10 21:25:12 -04:00
requirements.txt Recomp symbol generation tool (#92) 2024-11-08 17:14:56 -05:00
splat.yaml Mark microcode in splat/symbol_addrs 2024-11-09 13:48:51 -05:00
symbol_addrs.txt Mark microcode in splat/symbol_addrs 2024-11-09 13:48:51 -05:00
undefined_funcs.txt Some segment_5660 decomp (#94) 2024-11-08 18:20:54 -05:00
undefined_syms.txt Some libultra progress (#89) 2022-05-30 13:28:01 -04:00

Dinosaur Planet Decompilation

A WIP decompilation of Dinosaur Planet for the Nintendo 64, as released by Forest of Illusion on Feb. 20, 2021.

Note: To use this repository, you must already have a ROM for the game.

- WARNING! -

This codebase is in an early research/development phase and the ROM this repository
builds is not 'shiftable', so cannot be used yet as a source code base for general changes.

Development

Prerequisites

Operating system

  • Linux (Debian / Ubuntu)
  • Windows 10/11 WSL (Ubuntu)
    • Note: The repository must be cloned with Unix line endings!
    • It is highly recommended to clone this repository to the WSL Linux partition. Builds are considerably slower when done on a Windows partition.
  • Other systems may work, see packages.txt for the list of required APT packages

APT packages
sudo apt install -y $(cat packages.txt)

Python 3 packages
pip3 install -r requirements.txt

Note: This repository uses Git submodules. Don't forget to update them with ./dino.py submodules or git submodule update --recursive after pulling changes to a submodule ref.

Setup

  1. Place an unmodified Dinosaur Planet ROM into the root of the repository as baserom.z64 (MD5: 49f7bb346ade39d1915c22e090ffd748).
  2. Set up tools and extract the ROM:
    • ./dino.py setup
  3. Build the ROM:
    • ./dino.py build

Rebuilding

  1. If any symbols or the splat config were changed, re-extract the ROM and rebuild the linker script:
    • ./dino.py extract
  2. If any source files were added, removed, or renamed, re-configure the build script:
    • ./dino.py configure
  3. Rebuild the ROM:
    • ./dino.py build

Documentation

Please see the docs directory for project documentation such as:

Tools

The repository comes with a bunch of tools for decompilation and managing the repository:

  • dino.py - An all in one script for working with the repository. Some of the common commands:
    • build - Builds the ROM and verifies that it matches.
    • configure - Re-configures the build script.
    • extract - Splits the ROM and unpacks DLLs.
    • clean - Removes all extracted files, build artifacts, and build scripts for a fresh state.
    • diff - Diff a function/address between the base and re-built ROM.
    • context - Create a context file that can be used for mips2c/decomp.me.
  • tools/first-diff.py - Find the first N differences between the base and re-built ROM.
  • tools/first_bin_diff.py - Find the first N differences between two binary files.
  • tools/dlldump.py - Dump headers, relocation tables, and assembly from a Dinosaur Planet DLL.

Docker

If you prefer to develop inside of a Docker container instead of installing everything in your local environment, use the provided Dockerfile in the root of the repository.

Example usage:

# Create image
docker build -t dpdecomp --build-arg login=$USER --build-arg uid=$UID .

# Enter a bash prompt
docker run --rm -it -v $(pwd):/dino dpdecomp bash

# Run a one-off command
docker run --rm -it -v $(pwd):/dino dpdecomp dino build

Contributing

Pull requests are welcome! Please see our contribution guide for more information on how this project works and how to contribute.

If you're interested in contributing, please also consider joining us on Discord over at the Dinosaur Planet Community server in the #decompilation channel!