Skip to content

Commit

Permalink
Merge branch 'tx_pokedexPlus_hgss' of https://github.com/TheXaman/pok…
Browse files Browse the repository at this point in the history
  • Loading branch information
TheXaman committed Jul 5, 2022
2 parents a9d39d4 + 53603f6 commit d9c7caf
Show file tree
Hide file tree
Showing 123 changed files with 7,065 additions and 2,648 deletions.
69 changes: 34 additions & 35 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,52 +125,19 @@ Otherwise, ask for help on Discord or IRC (see [README.md](README.md)), or conti

Note that in msys2, Copy is Ctrl+Insert and Paste is Shift+Insert.

1. Open msys2 at C:\devkitPro\msys2\msys2_shell.bat.
1. Open msys2 at C:\devkitPro\msys2\mingw64.exe or run `C:\devkitPro\msys2\msys2_shell.bat -mingw64`.

2. Certain packages are required to build pokeemerald. Install these by running the following command:

```bash
pacman -S make gcc zlib-devel git
pacman -S make zlib-devel git mingw-w64-x86_64-gcc mingw-w64-x86_64-libpng
```
<details>
<summary><i>Note...</i></summary>

> This command will ask for confirmation, just enter the yes action when prompted.
</details>

3. Download [libpng](https://sourceforge.net/projects/libpng/files/libpng16/1.6.37/libpng-1.6.37.tar.xz/download).

4. Change directory to where libpng was downloaded. By default, msys2 will start in the current user's profile folder, located at **C:\Users\\&#8288;_\<user>_**, where *\<user>* is your Windows username. In most cases, libpng should be saved within a subfolder of the profile folder. For example, if libpng was saved to **C:\Users\\_\<user>_\Downloads** (the Downloads location for most users), enter this command:
```bash
cd Downloads
```
<details>
<summary><i>Notes...</i></summary>
> Note 1: While not shown, msys uses forward slashes `/` instead of backwards slashes `\` as the directory separator.
> Note 2: If the path has spaces, then the path must be wrapped with quotations, e.g. `cd "Downloads/My Downloads"`.
> Note 3: Windows path names are case-insensitive so adhering to capitalization isn’t needed.
> Note 4: If libpng was saved elsewhere, you will need to specify the full path to where libpng was downloaded, e.g. `cd c:/devkitpro/msys2` if it was saved there.
</details>
5. Run the following commands to uncompress and install libpng.
```bash
tar xf libpng-1.6.37.tar.xz
cd libpng-1.6.37
./configure --prefix=/usr
make check
make install
```
6. Then finally, run the following command to change back to the user profile folder.
```bash
cd
```
### Choosing where to store pokeemerald (msys2)
At this point, you can choose a folder to store pokeemerald into. If you're okay with storing pokeemerald in the user profile folder, then proceed to [Installation](#installation). Otherwise, you'll need to account for where pokeemerald is stored when changing directory to the pokeemerald folder.

Expand Down Expand Up @@ -338,6 +305,20 @@ Then proceed to [Choosing where to store pokeemerald (Linux)](#choosing-where-to
> then you will have to install devkitARM. Install all the above packages except binutils-arm-none-eabi, and follow the instructions to
> [install devkitARM on Debian/Ubuntu-based distributions](#installing-devkitarm-on-debianubuntu-based-distributions).
</details>

### Arch Linux
Run this command as root to install the necessary packages:
```bash
pacman -S base-devel arm-none-eabi-binutils git libpng
```
Then proceed to [Choosing where to store pokeemerald (Linux)](#choosing-where-to-store-pokeemerald-linux).
<details>
<summary><i>Note for legacy repos...</i></summary>

> If the repository you plan to build has an **[older revision of the INSTALL.md](https://github.com/pret/pokeemerald/blob/571c598/INSTALL.md)**,
> then you will have to install devkitARM. Install all the above packages except binutils-arm-none-eabi, and follow the instructions to
> [install devkitARM on Arch Linux](#installing-devkitarm-on-arch-linux).
</details>

### Other distributions
_(Specific instructions for other distributions would be greatly appreciated!)_
Expand Down Expand Up @@ -553,6 +534,24 @@ devkitARM is now installed.

devkitARM is now installed.

## Installing devkitARM on Arch Linux

1. Follow [devkitPro's instructions](https://devkitpro.org/wiki/devkitPro_pacman#Customising_Existing_Pacman_Install) to configure `pacman` to download devkitPro packages.
2. Install `gba-dev`: run the following command as root.
```console
pacman -S gba-dev
```
This will ask for the selection of packages to install. Just press Enter to install all of them, followed by entering Y to proceed with the installation.
3. Run the following command to set devkitPro related environment variables (alternatively, close and re-open the Terminal):
```bash
source /etc/profile.d/devkit-env.sh
```
devkitARM is now installed.
## Other toolchains
To build using a toolchain other than devkitARM, override the `TOOLCHAIN` environment variable with the path to your toolchain, which must contain the subdirectory `bin`.
Expand Down
42 changes: 21 additions & 21 deletions asm/macros/event.inc
Original file line number Diff line number Diff line change
Expand Up @@ -828,10 +828,10 @@
.endm

@ Sets the movement type (MOVEMENT_TYPE_*) for an object's template.
.macro setobjectmovementtype word:req, byte:req
.macro setobjectmovementtype localId:req, movementType:req
.byte 0x65
.2byte \word
.byte \byte
.2byte \localId
.byte \movementType
.endm

@ If a standard message box (or its text) is being drawn on-screen, this command blocks script execution until the
Expand Down Expand Up @@ -1451,48 +1451,48 @@
.endm

@ Equivalent to goto using the relative address set by setvaddress.
.macro vgoto pointer:req
.macro vgoto destination:req
.byte 0xb9
.4byte \pointer
.4byte \destination
.endm

@ Equivalent to call using the relative address set by setvaddress.
.macro vcall pointer:req
.macro vcall destination:req
.byte 0xba
.4byte \pointer
.4byte \destination
.endm

@ Equivalent to goto_if using the relative address set by setvaddress.
.macro vgoto_if byte:req, pointer:req
.macro vgoto_if condition:req, destination:req
.byte 0xbb
.byte \byte
.4byte \pointer
.byte \condition
.4byte \destination
.endm

@ Equivalent to call_if using the relative address set by setvaddress.
.macro vcall_if byte:req, pointer:req
.macro vcall_if condition:req, destination:req
.byte 0xbc
.byte \byte
.4byte \pointer
.byte \condition
.4byte \destination
.endm

@ Equivalent to message using the relative address set by setvaddress.
.macro vmessage pointer:req
.macro vmessage text:req
.byte 0xbd
.4byte \pointer
.4byte \text
.endm

@ Expands the given text at the pointer (- the relative address set by setvaddress) into gStringVar4
.macro vbuffermessage ptr:req
.macro vbuffermessage text:req
.byte 0xbe
.4byte \ptr
.4byte \text
.endm

@ Equivalent to bufferstring using the relative address set by setvaddress.
.macro vbufferstring stringVarIndex:req, pointer:req
.macro vbufferstring stringVarIndex:req, text:req
.byte 0xbf
stringvar \stringVarIndex
.4byte \pointer
.4byte \text
.endm

@ Create a window showing how many Coins the player has.
Expand Down Expand Up @@ -1549,9 +1549,9 @@
.endm

@ Used only in FireRed/LeafGreen, does nothing in Emerald.
.macro loadhelp pointer:req
.macro loadhelp text:req
.byte 0xc8
.4byte \pointer
.4byte \text
.endm

@ Used only in FireRed/LeafGreen, does nothing in Emerald.
Expand Down
1 change: 1 addition & 0 deletions charmap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ SUPER_RE = A0
'ä' = F4
'ö' = F5
'ü' = F6
EMOJI_DIZZYEGG = F7
TALL_PLUS = FC 0C FB
'$' = FF

Expand Down
Loading

0 comments on commit d9c7caf

Please sign in to comment.