Lunos
Random Uruguayan User
- 3,170
- Posts
- 16
- Years
- Montevideo (Uruguay)
- Seen today
I'll be as quick as possible.
My objective here was to build the decomps as fast as possible, so forget about having me explain the meaning behind these steps.
It's not hard to figure out what are we doing here though.
Before starting, I want to give a quick shout-out to UltimaSoul who told me the process of building libpng from its source code.
Alright, let's do this.
Instructions:
1) Download and install devkitPro.
Note: If for some strange reason you get an error, try again after following these instructions.
To make things easier for everyone, I will assume that you installed it or will install it in its default location, which is C:\devkitPro.
2) Open C:\devkitPro\msys2\msys2_shell.bat and type the following commands:
3) Download libpng.
4) Uncompress the folder that you just downloaded (libpng's) twice. libpng-1.6.34.tar.gz first, and then libpng-1.6.34.tar which is inside of it.
That will give you access to a folder called libpng-1.6.34 that contains the source code of libpng.
EDIT: Alternatively, you can try out a newer version like libpng-1.6.37 instead.
It should also work just fine, but I haven't tested it myself, so keep that in mind.
5) Back to msys2_shell, go to the libpng-1.6.34 folder by using the cd command and then type the following commands in order:
6) Type cd to go back to your Home folder and then just use the following commands in order:
Note: You can create an Environment Variable called "HOME" and give it a desired folder path in order to change the Home folder that MSys2 uses.
To create an Environment Variable, open Windows' Run command (Win Key + R), type "sysdm.cpl" and go to Advanced -> Environment Variables.
Here's an example of how I have it set up.
If you don't have a HOME variable, MSys2 will use your User Account's folder found in C:\Users to store stuff by default.
I also recorded a quick video showing the whole process, just in case.
What can you do now? Well, whatever you want really. You have the source code of Game Freak's Pokémon Emerald in front of you, so go wild.
A lot of people like to inject DizzyEgg's works into their projects. Updates to many core parts of the game like the battle system, amount of items and amount of Pokémon.
If you want to learn how to do this, you can visit my tutorial.
https://www.pokecommunity.com/threads/432321
And that's pretty much it.
My objective here was to build the decomps as fast as possible, so forget about having me explain the meaning behind these steps.
It's not hard to figure out what are we doing here though.
Before starting, I want to give a quick shout-out to UltimaSoul who told me the process of building libpng from its source code.
Alright, let's do this.
Instructions:
1) Download and install devkitPro.
Note: If for some strange reason you get an error, try again after following these instructions.
To make things easier for everyone, I will assume that you installed it or will install it in its default location, which is C:\devkitPro.
2) Open C:\devkitPro\msys2\msys2_shell.bat and type the following commands:
pacman -Sy msys2-keyring
pacman -S make gcc zlib-devel git
3) Download libpng.
4) Uncompress the folder that you just downloaded (libpng's) twice. libpng-1.6.34.tar.gz first, and then libpng-1.6.34.tar which is inside of it.
That will give you access to a folder called libpng-1.6.34 that contains the source code of libpng.
EDIT: Alternatively, you can try out a newer version like libpng-1.6.37 instead.
It should also work just fine, but I haven't tested it myself, so keep that in mind.
5) Back to msys2_shell, go to the libpng-1.6.34 folder by using the cd command and then type the following commands in order:
./configure --prefix=/usr
make check
make install
6) Type cd to go back to your Home folder and then just use the following commands in order:
Note: "N" stands for the number of CPU Threads you want to assign to the compiler. The more threads, the faster it'll go.git clone https://github.com/pret/agbcc
git clone https://github.com/pret/pokeruby (or git clone https://github.com/pret/pokeemerald)
cd agbcc
./build.sh
./install.sh ../pokeruby (or ./install.sh ../pokeemerald)
cd ../pokeruby (or cd ../pokeemerald)
make -jN
Note: You can create an Environment Variable called "HOME" and give it a desired folder path in order to change the Home folder that MSys2 uses.
To create an Environment Variable, open Windows' Run command (Win Key + R), type "sysdm.cpl" and go to Advanced -> Environment Variables.
Here's an example of how I have it set up.
If you don't have a HOME variable, MSys2 will use your User Account's folder found in C:\Users to store stuff by default.
I also recorded a quick video showing the whole process, just in case.
What can you do now? Well, whatever you want really. You have the source code of Game Freak's Pokémon Emerald in front of you, so go wild.
A lot of people like to inject DizzyEgg's works into their projects. Updates to many core parts of the game like the battle system, amount of items and amount of Pokémon.
If you want to learn how to do this, you can visit my tutorial.
https://www.pokecommunity.com/threads/432321
And that's pretty much it.
Last edited: