-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not require "extras" submodule to build
- Loading branch information
1 parent
e4342f9
commit 6be6de3
Showing
98 changed files
with
6,231 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +0,0 @@ | ||
[submodule "extras"] | ||
path = extras | ||
url = git://github.com/kanzure/pokemon-reverse-engineering-tools.git | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,65 +1,162 @@ | ||
# Linux | ||
# Instructions | ||
|
||
sudo apt-get install make git python2 | ||
These instructions explain how to set up the tools required to build **pokered**, including [**rgbds**](https://github.com/gbdev/rgbds), which assembles the source files into a ROM. | ||
|
||
sudo apt-get install byacc flex pkg-config libpng-dev | ||
git clone https://github.com/rednex/rgbds | ||
cd rgbds | ||
sudo make install | ||
cd .. | ||
If you run into trouble, ask for help on IRC or Discord (see [README.md](README.md)). | ||
|
||
git clone --recursive git://github.com/TheFakeMateo/rpp-backup.git | ||
cd rpp-backup | ||
|
||
To build **pokered.gbc** and **pokeblue.gbc**: | ||
## Windows 10 | ||
|
||
Download and install [**Windows Subsystem for Linux**](https://docs.microsoft.com/en-us/windows/wsl/install-win10). Then open the **WSL terminal**. | ||
|
||
Update WSL's software before continuing. If you chose Debian, Ubuntu, or another distribution that uses `apt-get`, then enter this command: | ||
|
||
```bash | ||
apt-get update && apt-get upgrade | ||
``` | ||
|
||
WSL has its own file system that's not accessible from Windows, but Windows files *are* accessible from WSL. So you're going to want to install pokered within Windows. You'll have to change the **current working directory** every time you open WSL. | ||
|
||
For example, if you want to store pokered in **C:\Users\\*\<user>*\Desktop**, enter this command: | ||
|
||
```bash | ||
cd /mnt/c/Users/<user>/Desktop | ||
``` | ||
|
||
(The Windows `C:\` drive is called `/mnt/c/` in WSL. Replace *\<user>* in the example path with your username.) | ||
|
||
If this works, then follow [the instructions for **Linux**](#linux) below for whatever distribution you installed for WSL. | ||
|
||
Otherwise, continue reading below for [the older Windows instructions](#windows). | ||
|
||
|
||
## Windows | ||
|
||
Download [**Cygwin**](http://cygwin.com/install.html): **setup-x86_64.exe** for 64-bit Windows, **setup-x86.exe** for 32-bit. | ||
|
||
Run setup and leave the default settings. At the "**Select Packages**" step, choose to install the following, all of which are in the "**Devel**" category: | ||
|
||
- `make` | ||
- `git` | ||
- `gcc-core` | ||
|
||
Double click on the text that says "**Skip**" next to each package to select the most recent version to install. | ||
|
||
Then follow the [**rgbds** install instructions](https://rgbds.gbdev.io/install/windows) for Windows with Cygwin to install **rgbds 0.5.2**. | ||
|
||
**Note:** If you already have an older rgbds, you will need to update to 0.5.2. Ignore this if you have never installed rgbds before. If a version newer than 0.5.2 does not work, try downloading 0.5.2. | ||
|
||
Now open the **Cygwin terminal** and enter the following commands. | ||
|
||
Cygwin has its own file system that's within Windows, at **C:\cygwin64\home\\*\<user>***. If you don't want to store pokered there, you'll have to change the **current working directory** every time you open Cygwin. | ||
|
||
For example, if you want to store pokered in **C:\Users\\*\<user>*\Desktop**: | ||
|
||
```bash | ||
cd /cygdrive/c/Users/<user>/Desktop | ||
``` | ||
|
||
make | ||
(The Windows `C:\` drive is called `/cygdrive/c/` in Cygwin. Replace *\<user>* in the example path with your username.) | ||
|
||
To build them individually: | ||
Now you're ready to [build **pokered**](#build-pokered). | ||
|
||
make red | ||
make blue | ||
|
||
## macOS | ||
|
||
# Mac | ||
Install [**Homebrew**](https://brew.sh/). Follow the official instructions. | ||
|
||
Get [**Homebrew**](http://brew.sh/). | ||
Open **Terminal** and prepare to enter commands. | ||
|
||
Then in **Terminal**, run: | ||
Then follow the [**rgbds** instructions](https://rgbds.gbdev.io/install/macos) for macOS to install **rgbds 0.5.2**. | ||
|
||
xcode-select --install | ||
brew install rgbds | ||
Now you're ready to [build **pokered**](#build-pokered). | ||
|
||
git clone --recursive git://github.com/TheFakeMateo/rpp-backup.git | ||
cd rpp-backup | ||
|
||
make | ||
## Linux | ||
|
||
Open **Terminal** and enter the following commands, depending on which distro you're using. | ||
|
||
### Debian or Ubuntu | ||
|
||
# Windows | ||
To install the software required for **pokered**: | ||
|
||
It is probably easiest to just follow [**This Video Tutorial**](https://www.youtube.com/watch?v=fYytG7IUUWg). | ||
Just use this project's url instead of the vanilla Pokered url. | ||
```bash | ||
sudo apt-get install make gcc git | ||
``` | ||
|
||
Then follow the [**rgbds** instructions](https://rgbds.gbdev.io/install/source) to build **rgbds 0.5.2** from source. | ||
|
||
Original instructions are below: | ||
### OpenSUSE | ||
|
||
To build on Windows, use [**Cygwin**](http://cygwin.com/install.html) (64-bit). Use the default settings. | ||
To install the software required for **pokered**: | ||
|
||
```bash | ||
sudo zypper install make gcc git | ||
``` | ||
|
||
Then follow the [**rgbds** instructions](https://rgbds.gbdev.io/install/source) to build **rgbds 0.5.2** from source. | ||
|
||
### Arch Linux | ||
|
||
To install the software required for **pokered**: | ||
|
||
```bash | ||
sudo pacman -S make gcc git | ||
``` | ||
|
||
Then follow the [**rgbds** instructions](https://rgbds.gbdev.io/install/arch) for Arch Linux to install **rgbds 0.5.2**. | ||
|
||
If you want to compile and install **rgbds** yourself instead, then follow the [**rgbds** instructions](https://rgbds.gbdev.io/install/source) to build **rgbds 0.5.2** from source. | ||
|
||
### Termux | ||
|
||
To install the software required for **pokered**: | ||
|
||
```bash | ||
sudo apt install make clang git sed | ||
``` | ||
|
||
To install **rgbds**: | ||
|
||
```bash | ||
sudo apt install rgbds | ||
``` | ||
|
||
If you want to compile and install **rgbds** yourself instead, then follow the [**rgbds** instructions](https://rgbds.gbdev.io/install/source) to build **rgbds 0.5.2** from source. | ||
|
||
### Other distros | ||
|
||
If your distro is not listed here, try to find the required software in its repositories: | ||
|
||
In the installer, select the following packages: | ||
- `make` | ||
- `gcc` (or `clang`) | ||
- `git` | ||
- `python2` | ||
- `rgbds` | ||
|
||
If `rgbds` is not available, you'll need to follow the [**rgbds** instructions](https://rgbds.gbdev.io/install/source) to build **rgbds 0.5.2** from source. | ||
|
||
Now you're ready to the rom(s). | ||
|
||
|
||
## Build Red++ v3 | ||
|
||
To download the source files: | ||
|
||
```bash | ||
git clone https://github.com/JustRegularLuna/rpp-backup | ||
cd rpp-backup | ||
``` | ||
|
||
To build **pokered.gbc** and **pokeblue.gbc**: | ||
|
||
Then download [**rgbds**](https://github.com/bentley/rgbds/releases). | ||
Extract the archive. Inside should be `rgbasm.exe`, `rgblink.exe`, `rgbfix.exe`, `rgbgfx.exe` and some `.dll` files. Put each file in `C:\cygwin64\usr\local\bin\`. If your Cygwin installation directory differs, ensure the `bin` directory is present in the PATH variable. | ||
```bash | ||
make | ||
``` | ||
|
||
In the **Cygwin terminal**: | ||
### Build with a local rgbds version | ||
|
||
git clone --recursive https://github.com/TheFakeMateo/rpp-backup.git | ||
cd rpp-backup | ||
If you have different projects that require different versions of `rgbds`, it might not be convenient to install rgbds 0.5.2 globally. Instead, you can put its files in a directory within pokered, such as `pokered/rgbds-0.5.2/`. Then specify it when you run `make`: | ||
|
||
make | ||
"pokered.gbc" will be the "Normal" version and "pokeblue.gbc" will be the "Hard" version. | ||
```bash | ||
make RGBDS=rgbds-0.5.2/ | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule extras
deleted from
0e1798
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
scan_includes | ||
gfx | ||
pkmncompress |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
.PHONY: all clean | ||
|
||
CC := gcc | ||
CFLAGS := -O3 -std=c99 -Wall -Wextra -pedantic | ||
|
||
tools := scan_includes gfx pkmncompress | ||
|
||
all: $(tools) | ||
@: | ||
|
||
clean: | ||
rm -f $(tools) | ||
|
||
gfx: common.h | ||
%: %.c | ||
$(CC) $(CFLAGS) -o $@ $< |
Oops, something went wrong.