Giter Site home page Giter Site logo

icogn / tp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zeldaret/tp

0.0 0.0 0.0 346.11 MB

Decompilation of The Legend of Zelda: Twilight Princess (GCN, USA)

Makefile 0.52% Assembly 63.35% Shell 0.01% C 0.43% C++ 21.67% Python 14.00% POV-Ray SDL 0.02%

tp's Introduction

The Legend of Zelda: Twilight Princess

This repo contains a WIP decompilation of The Legend of Zelda: Twilight Princess (GCN USA).

Project Setup

  1. Clone down project
$ git clone https://github.com/zeldaret/tp
  1. Setup compiler directory
$ mkdir -p tools/mwcc_compiler/
  1. Download GC_COMPILERS.zip from the Discord server. See the pins in the #tp-decomp channel under the Twilight Princess group.

  2. Extract GC_COMPILERS.zip into the previously created mwcc_compiler directory

$ unzip GC_COMPILERS.zip -d tools/mwcc_compiler/
  1. Place a copy of NTSC-U GCN Twilight Princess in the root directory and call it gz2e01.iso (find this on your own)

  2. Setup the project

$ ./tp setup

Building The Game

  1. To build a playable game, complete the Project Setup steps, then run
$ make game

The completed build is under build/dolzel2/game/sys/main.dol

Build DOL

$ make

(Note that any time you run make you can add the -j# argument where # is the amount of threads your system has in order to greatly speed up build times)

Build RELs

$ make rels

The completed RELs will be under build/dolzel2/rel

Extract Game Assets

$ make assets

Create Expected Directory

  1. Run make
  2. Run:
$ ./tp expected

Clean Directories

Clean RELs

$ make clean_rels

Clean Game Directory

$ make clean_game

Clean Build Directory

$ make clean_all

Clean Dol

$ make clean

Project Overview

tp/
├── .github          # Github actions for this project.
├── asm              # The assembly for unmatched functions.
├── defs             # Python modules used by dol2asm.
├── docs             # Notes and documentation about this project.
├── include          # Header files used by this project.
├── libs             # Source code for the libraries based on the symbol map.
├── rel              # Source code for the game RELs.
├── src              # Source code for the main game.
├── tools            # Various tools to support the project.
├── .clang-format    # Clang format file.
├── .gitignore       # Files/folders to ignore changes to when making commits.
├── Doxyfile         # Doxygen configuration file.
├── Makefile         # Makefile for the project containing various targets.
├── Progress.md      # Markdown file that displays the current progress of the project.
├── README.md        # The file you're currently reading.
├── diff.py          # Python script to diff two functions.
├── diff_settings.py # Settings for the diff.py script.
├── dolzel2.sha1     # SHA1 of the dol.
├── include_link.mk  # Makefiles to include in the main Makefile.
├── obj_files.mk     # Object files to include in the main Makefile.
└── tp               # Bash script used to call the main tp python script in tools directory.

tp's People

Contributors

pheenoh avatar takarikka avatar lepelog avatar magcius avatar barzamin avatar julgodis avatar jdflyer avatar hytopoulos avatar lioncash avatar jcw87 avatar zen64 avatar icogn avatar epochflame avatar thar0 avatar tom-overton avatar kipcode66 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.