Files
tp/README.md
T

141 lines
3.2 KiB
Markdown
Raw Normal View History

2020-08-29 17:54:55 -04:00
# The Legend of Zelda: Twilight Princess
This repo contains a WIP decompilation of The Legend of Zelda: Twilight Princess (GCN USA).
2022-03-22 23:41:57 -04:00
<!--ts-->
* [Project Setup](#project-setup)
* [Building The Game](#build-game)
* [Extract Game Assets](#extract-game-assets)
* [Create Expected Directory](#create-expected-directory)
* [Clean Directories](#clean-directories)
* [Project Overview](#project-overview)
* [Contributing](./docs/Contributing.md)
* [FAQ](https://zelda64.dev/games/tp)
<!--te-->
2020-08-29 17:54:55 -04:00
2022-03-22 23:41:57 -04:00
Project Setup
=================
2020-08-29 17:54:55 -04:00
2022-03-22 23:41:57 -04:00
1. Clone down project
2021-06-13 19:47:12 -04:00
```bash
2022-03-22 23:41:57 -04:00
$ git clone https://github.com/zeldaret/tp
2021-06-13 19:47:12 -04:00
```
2022-03-22 23:41:57 -04:00
2. Setup compiler directory
2021-06-13 19:47:12 -04:00
```bash
2022-03-22 23:41:57 -04:00
$ mkdir -p tools/mwcc_compiler/
```
3. Download `GC_COMPILERS.zip` from the [Discord](https://discord.gg/Nshw5pHS4h) server. See the pins in the `#tp-decomp` channel under the Twilight Princess group.
4. Extract `GC_COMPILERS.zip` into the previously created `mwcc_compiler` directory
```bash
$ unzip GC_COMPILERS.zip -d tools/mwcc_compiler/
```
5. Place a copy of NTSC-U GCN Twilight Princess in the root directory and call it `gz2e01.iso` (find this on your own)
6. Setup the project
```bash
$ ./tp setup
```
Building The Game
-----
1. To build a playable game, complete the [Project Setup](#project-setup) steps, then run
```bash
$ make game
```
The completed build is under `build/dolzel2/game/sys/main.dol`
Build DOL
```bash
$ make
```
Build RELs
```bash
$ make rels
```
The completed RELs will be under `build/dolzel2/rel`
Extract Game Assets
```bash
$ make assets
```
Create Expected Directory
1. [Build the DOL](#build-dol)
2. Run:
```bash
$ ./tp expected
```
2021-06-13 19:47:12 -04:00
2020-08-29 17:54:55 -04:00
2022-03-22 23:41:57 -04:00
Clean Directories
-----
2020-08-29 17:54:55 -04:00
2022-03-22 23:41:57 -04:00
Clean RELs
2020-09-05 15:21:05 -04:00
2022-03-22 23:41:57 -04:00
```bash
$ make clean_rels
```
Clean Game Directory
```bash
$ make clean_game
```
Clean Build Directory
```bash
$ make clean_all
```
Clean everything
```bash
$ 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.
├── 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.
```