2020-08-17 18:49:59 +02:00
# Paper Mario
This is a WIP decompilation of Paper Mario (USA). It builds the following ROM:
* papermario.z64 `md5: a722f8161ff489943191330bf8416496`
Discord: [Paper Mario Modding ](https://discord.gg/urUm3VG )
## Setup
2020-10-13 20:45:55 +02:00
You'll need Linux, a Linux VM, or [Windows 10 (WSL2) ](#wsl ) to work on this project.
2020-08-17 18:49:59 +02:00
#### Clone the repository
```sh
$ git clone https://github.com/ethteck/papermario.git
$ cd papermario
```
#### Install build dependencies
```sh
$ ./install.sh
```
Our install script does not yet support distros other than Ubuntu, Arch, and their derivatives. Please consider contributing to the script if you use another distro!
2020-12-28 13:26:41 +01:00
##### Docker
A Docker image containing all dependencies can be built and ran as follows:
```sh
# build image
$ docker build . -t pm
# spin up container, mounting current directory inside
$ docker run --rm -ti -v $(pwd):/papermario pm
```
2020-08-17 18:49:59 +02:00
#### Base ROM
You'll need a Paper Mario (USA) ROM to work on this project. Copy it into the root directory of the repository with the name `baserom.z64` .
#### Install tools and extract ROM
```sh
$ make setup
```
### Compile the game
```sh
$ make
```
If you get `OK` , you're all set! Otherwise, please feel free to reach out to us in [our Discord channel ](https://discord.gg/urUm3VG ).
2020-12-22 01:09:55 +01:00
## Star Rod GUI
You can open [our modified version of Star Rod ](https://github.com/nanaian/star-rod-for-decomp ) with `make editor` .
2020-08-17 18:49:59 +02:00
## Contributing
2020-12-24 09:40:01 +01:00
Please see [CONTRIBUTING.md ](CONTRIBUTING.md ) for information on how to contribute to the project. Any and all help is welcome!
2020-08-19 13:54:50 +02:00
2020-10-28 22:13:22 +01:00
## Troubleshooting
2020-08-17 18:49:59 +02:00
2020-10-28 22:13:22 +01:00
* If you are using Windows, you may encounter the following when you run `make` :
2020-08-17 18:49:59 +02:00
```
sha1sum -c checksum.sha1
sha1sum: 'papermario.z64'$'\r': No such file or directory
: FAILED open or read
sha1sum: WARNING: 1 listed file could not be read
Makefile:118: recipe for target 'verify' failed
make: ** * [verify] Error 1
```
> 💡 Solution
2020-10-28 22:14:10 +01:00
2020-12-22 01:09:55 +01:00
> Run `git checkout checksum.sha1` and retry building. Windows has different line endings than Linux, causing some of our tools to break.