• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
  • Announcement - March 5th 12:17 PM GMT

    Hi there Guest!
    Thanks for checking out Silph Co.! Right now things are very much still in development with things like themes, guidelines, rules and most importantly content, still being a WIP. The staff and our members are actively working to make the community more homey for you. In the mean time, we are welcoming feedback and suggestions if you have them in the Feedback section.
    Please read the forum rules before posting.

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.