• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Conquest protagonist in the poll by clicking here.
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Tutorial] How to build the Pokémon GBA decomps using WSL (Win10)

OMG, this tutorial was just what I needed!
been trying for upwards of 6 hours to build the ROM
Hopefully, this works, will try when have motivation
 
I stopped it, opened wsl and then put in the commands and I got the same result.
Try to input the commands from outside /mnt/c.
Open WSL, type cd which should take you to the Linux Filesystem, and then type sudo umount /mnt/c and sudo mount -t drvfs C: /mnt/c -o metadata.
 
Am I supposed to download something before cloning /pret/pokeemerald
Because it doesn't show me anything when I do install.sh for pokeemerald I'm kinda confused
 
Once I do all this how to I begin to edit the code?
That's the correct output.
When a UNIX based script doesn't give any feedback, it means nothing went wrong and everything worked correctly.
Once I do all this how to I begin to edit the code?
Use a good text editor like Notepad++ or an environment such as Visual Studio Code, and modify functions of code as you see fit.
Once you're done, save the changes and build a new ROM by using make on your terminal.
 
what happens if it shows the following?.. it doesnt give me a y/n choice.. (step 3-4)

tinytyph08@DELL-XPS2008:/mnt/c/Users/User$ sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
tinytyph08@DELL-XPS2008:/mnt/c/Users/User$
 
what happens if it shows the following?.. it doesnt give me a y/n choice.. (step 3-4)

tinytyph08@DELL-XPS2008:/mnt/c/Users/User$ sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
tinytyph08@DELL-XPS2008:/mnt/c/Users/User$
That means you already have the most recent versions of each of the packages your distro comes with by default, therefore, there is nothing to upgrade.
 
okie.. but this also shows up when i do the next step..

tinytyph08@DELL-XPS2008:/mnt/c/Users/User$ sudo apt-get install build-essential git libpng-dev gdebi-core
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package gdebi-core is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'gdebi-core' has no installation candidate
 
okie.. but this also shows up when i do the next step..

tinytyph08@DELL-XPS2008:/mnt/c/Users/User$ sudo apt-get install build-essential git libpng-dev gdebi-core
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package gdebi-core is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'gdebi-core' has no installation candidate
Are you sure that you used sudo apt update before sudo apt upgrade like it's indicated in the main post?
 
Hello!

New user here. I've followed the instructions and have attempted to use this guide to help me along with running the Pokemon Expansion. However, after cloning that repo and running the make.py script I am left with an error:

"Assembling ./assembly/hooks.s
Error! The Assembler could not be located.
Are you sure you set up your path to devkitPro/devkitArm/bin correctly?"

I only strayed from your guide due to my downloads folder being moved. I adjusted my steps by installing devkitpro in another location. However, due to your note on the echo for location, I do get the same results which led me to believe I was still good.

Any thoughts on this issue? Stumped as of right now.

EDIT After comp restart. its hanging up on hooks still, but reading: "There was an error compiling the engine [Errno 13] Permission denied: 'arm-none-eabi-as"
 
Last edited:
Hello!

New user here. I've followed the instructions and have attempted to use this guide to help me along with running the Pokemon Expansion. However, after cloning that repo and running the make.py script I am left with an error:

"Assembling ./assembly/hooks.s
Error! The Assembler could not be located.
Are you sure you set up your path to devkitPro/devkitArm/bin correctly?"

I only strayed from your guide due to my downloads folder being moved. I adjusted my steps by installing devkitpro in another location. However, due to your note on the echo for location, I do get the same results which led me to believe I was still good.

Any thoughts on this issue? Stumped as of right now.

EDIT After comp restart. its hanging up on hooks still, but reading: "There was an error compiling the engine [Errno 13] Permission denied: 'arm-none-eabi-as"
I think you're a bit confused here.
You seem to be trying to use the DPE, the CFRU or both, but neither of them are decompilation projects.
They're injections of code written in C for the ROM of Pokémon FireRed v1.0, and thus, binary hacking affairs.
This tutorial won't help you because the process to inject them into a ROM, and the process to build the decompilation projects explained in this thread, are different.

I suggest you to open a thread in the ROM Hacking Help Section and ask for help about the usage of the aforementioned C injections there.
Alternatively, you can join the Pokémon Unbound Discord Server which, from what I heard, has an area where people can ask for help about their usage.
 
Last edited:
I think you're a bit confused here.
You seem to be trying to use the DPE, the CFRU or both, but neither of them are decompilation projects.
They're injections of code written in C for the ROM of Pokémon FireRed v1.0, and thus, binary hacking affairs.
This tutorial won't help you because the process to inject them into a ROM, and the process to build the decompilation projects explained in this thread, are different.

I suggest you to open a thread in the ROM Hacking Help Section and ask for help about the usage of the aforementioned C injections there.
Alternatively, you can join the Pokémon Unbound Discord Server which, from what I heard, has an area where people can ask for help about their usage.

Ahhh, I am still learning quite how everything is connected/separated across the forums and really appreciate the details and direction.

In the end, it seems like I'm having moreso errors with devkitpro installation than anything else so I may point myself to their forums. What I've found so far are people with similar issues and then they eventually close thread with "the install magically started working all of a sudden!"

Appreciate the help!
 
Hey! First time decompiler here- I had some difficulty decompiling in Msys2 so I went over to this guide for WLS. Everything is working okay, except at the very end when I run make -jN, when I get the following fatal error issue. Any advice on what might be going wrong?

Spoiler:
 
Hey! First time decompiler here- I had some difficulty decompiling in Msys2 so I went over to this guide for WLS. Everything is working okay, except at the very end when I run make -jN, when I get the following fatal error issue. Any advice on what might be going wrong?

Spoiler:
Just fyi, you're not decompiling anything here.
Decompilation is the action of translating code from a low level language to a high level one.
In this particular instance, the people from Pret translated the games' code in ASM to C, the language they were originally written in by Game Freak.
What I teach here is how to build a ROM using the decomps, which in other words means you're compiling the code.

Anyway, judging by the errors you got, I'd say you installed agbcc into your project incorrectly, assuming you installed it at all.
 
I'm stuck after trying to clone pokeemerald and the other file. Says something about couldn't set value to false. I think som3one said something about cloning to root but i have no idea how to
 
Back
Top