• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Tutorial Setting up the Pokeruby dissassembly

Compatible Base ROMs
I will be making two folders in the ~/Desktop (hope you know relative and absolute path in Linux):
  1. pokemon_ruby
  2. agbcc
cd Desktop
mkdir pokemon_ruby
mkdir agbcc

Installing devkitARM
There is a perl script available that will automatically install it in Linux: (can't post link, google it)
Save it in a file with 'pl' extension (say ~/Desktop/script.pl) and run following commands:
chmod +777 script.pl
perl script.pl
This will start the installation process.
After devkitARM is installed, you need to set two environment variables: DEVKITPRO and DEVKITARM. Run the following commands in your terminal:
echo "export DEVKITPRO=/opt/devkitpro" >> ~/.bashrc
echo "export DEVKITARM=/opt/devkitpro/devkitARM" >> ~/.bashrc
source ~/.bashrc

Setting up the environment
Go to pokemon_ruby folder and get the disassembly code:
cd pokemon_ruby/
git init
git remote add origin https://github.com/pret/pokeruby.git
git pull origin master
cd ..
Get the agbcc compiler:
cd agbcc/
git init
git remote add origin https://github.com/pret/agbcc.git
git pull origin master
./install.sh ~/Desktop/pokemon_ruby
cd ..
Then, in the pokemon_ruby directory, build the tools and then the rom:
cd pokemon_ruby/
You should see the following message as the last line after building the ROM:
pokeruby.gba: OK

You have successfully set up a working environment.