[0.0] Setting up The Decomp: Compiling pokeemerald (Pokemon ROM Hacking Tutorial)
HTML-код
- Опубликовано: 20 окт 2024
- I wanted to teach my friend how to romhack so he could join me on a project, and I figured if I was going to put in the effort I might as well record it for everyone to use as a resource. So here is the first video in a planned list of many that will cover various topics related to decomp hacking. There aren't many video tutorials covering this hacking method, so hopefully people find it useful. If you stumble across this before I have all of the first few videos up, and want more there is a small RUclips playlist on decomps by Mantager that is very good and covers essentially the same topics we'll be covering in our intro videos.
Make sure to check out the PRET discord to see the crazy people who made this all possible.
#romhacking #decomp #emerald
Link To Team Aqua Discord: / discord - Наука
CORRECTION: I was a little confused about how nproc worked when I made this, it just tells you how many processing units are available for compiling so you can compile in parallel if you have multiple cores. 'make' automatically does the caching of object files that speed up the compiling.
Link To Discord: discord.com/invite/hX3a63RYzZ
Sorry the audio got kind of robotic at the end, idk what happened but it won't be that way in the next one [well this didn't turn out to be true lmao], I also turned off Windows Sounds because I didn't realize they would be so loud when recording with OBS, so that won't be a problem next time either. Sorry for your ears.
Also there were some things that were simplified like the fact you might have to worry about the size and locations of adding files, but for beginners that isn't going to come up yet. Also you can use Ubuntu instead of Debian, Ubuntu is based on Debian so it doesn't really matter. They both work
Got it to work! Thanks for the tutorial
your still lost with `nproc` I think. so yes first run of `make`, will produce files that at "recompile" time its faster, but parallel compiling can only occur if you specify `make -j $(nproc)` (that might not be the correct syntax). If you just do `make -j0` in most cases it should use all available cores.
Late here but when I’m trying to select a folder to save it in, it says file or directory no found or something. What do I do? I can’t find anywhere for help
I'm following along with the updated instructions and it has been really easy. Watching you while reading the up to date instructions has been really helpful in understanding each part, even today. Looking forward to watching them all, thanks for making such a cool tutorial. I'm actually just doing this casually for fun and have been enjoying following along and learning. Which of these was the most fun video for you to make, and what's your favorite part of the process?
Dude, your tutorial series for this is an invaluable resource! Just incredible and I can't wait to dive in and get started on learning!
Good luck on your journey, try not to get too frustrated with the setup it can be annoying and even harder for some people than a lot of the actual romhacking actually is
hey! was looking for resources to help me create my first ROM hack and i stumbled across this video. looking forward for the rest of the series, as a first timer looking into creating my first ROM hack!
Thanks for watching! We have a lot planned so make sure to check back!
This series is absolute gold dust, thank you so much, took me a whole day to set everything up because my laptop is so slow but now its all set up and works perfectly. Can build a pokeemerald-expansipn rom in about 5 mins even with slow laptop. Tysm
Glad you got it working, hope the rest of the process is smooth
I started my rom hacking carreer just today - and you are the best help I could hope for.
Thank you so much!
Thank you so much for putting this series together!! I have absolutely zero experience with Linux, so this video was super helpful.
6:44 Side note, in case anyone else runs into the same issue. First time I tried downloading the decomp, I got the error message. When I tried unmounting, I kept getting the 'target is busy' message. Nothing I tried from Google helped either, so I ended up just restarting my computer and started over from 5:39 and it downloaded just fine. Again, I have zero experience in this realm and I have no idea why restarting my computer worked, but it did!
Good luck with the rest of your romhacking journey
Thank you *so* much. Took forever for me to find a good video tutorial on this stuff (I think I'm just bad at looking). Will definitely be watching your other romhack tutorials later ❤
You're welcome!
thanks for this entire playlist, helped a ton
I've been stubbornly using binary until I've lost a few projects, finally gonna make the switch
Glad you've finally seen the light lol
Thank you for the playlist this is super helpful. If anyone gets the error "failed: Operation not permitted
fatal: could not set 'core.filemode' to 'false'" just add in "sudo" before copy and pasting "cd /mnt/c/Users//Desktop/decomps". also remembering to change "" to the name of your computer.
goat comment ty
Made it through. Miracles do happen I suppose.
Kinda of a stupid question, but does this take up a lot of space/memory? Also, should i worry about my files and stuff when instaling Debian or WSL1?
Debian will take up a few gigabytes. The decompn is smaller
this is dope man. thank you for this.
Thanks for watching! Romhacking is a ton of fun!
Hey, I'm really enjoying and learning from your tutorials. Everything is great, I just wish you talked a bit louder.
In any case, thank you very much for all the help you provide!
The early tutorials had terrible audio in general. It should get better as you make it through the series. Sorry lol
@@TeamAquasHideout No problem, thank you again for doing this!
wish i knew about this sooner cuz it makes rom hacking so much easier. Thanks for posting this
1:02
Am I supposed to have the files on my pc at this point of the process (or before around the 5:40 mark), or is it that you just already have them, and I'll get them by following the steps in the video?
The files get put on your PC after you run the git clone command
thanks for the helpful guide! can I ask what is that command at 11:25 to open the pokeemerald folder? It looks like 1s, but thats not doing anything for me
L S or ls stands for List. And it lists the contents of a directory (folder)
When downloading everything, will it affect other Windows accounts that I have in store? I have some saved work that isn't backed up and I want to be careful when creating these roms...
It shouldn't mess with any data. But you will need to turn the computer off and on again
I am having trouble replicating the make process. When I first did "make compare", it said "permission denied" twice and then proceeded to process something until it stopped and nothing happened after that with no result. I tried closing the window and reopened it to replicate it, but nothing happened after typing "make compare" and nothing pops up after that.
You should join the discord and post screenshots of your terminal otherwise it's going to be really hard to troubleshoot through RUclips
Hey did you solve this? same issue here.
Hey sorry if this is a rather stupid question but I only got back in rom hacking recently. So is it possible to also decomp my old binary rom hacked rom from the past? Or will the files only be messed up and some even unusable? Thanks ahead already!
It's not possible at all. You can use HexManiacAdvance or other binary tools to rip your assets out, and there are technically ways to port maps themselves. But it's not a simple process getting anything out of a binary hack into a decomp hack. Most people start over
@@TeamAquasHideout Thank you for the reply i should probably start a new project then
Can the hacking be done without all the decompiling software? I can't get anything to run, past installing Debian, because I keep getting Errors.
You can use what's called binary hacking but it's more limited and often even harder.
@@TeamAquasHideout Damn. It seems like I'm screwed then, because I can't run the software on my own pc, and I doubt anyone would do it for me.
What's the deal with the devkitARM C compiler? Don't know if that's been added onto the instructions since this video but i noticed it wasn't covered and was wondering if it was necessary
That is for if you're not using WSL. Which is not recommended
This might sounds like a stupid question (I Haven't watched the whole video or set yet), but can you do this in JUST Linux? I think it might be easier with all these terminal commands, instead of having to fight with Windows.
Yes you can but the main problem is that porymap has to be built from source and I think the current build from source has some issues right now. I don't remember what they are but it shouldn't be a permanent roadblock, I believe there's a way to handle it but again I don't really remember as I've never tried it.
@@TeamAquasHideout Awesome. I love this either way. Keep it up!
so im not particularly computer savvy but i followed through the whole video, everything progressed as expected, but the decomps folder is still empty. do you know what is wrong? thanks for your time.
You either have it somewhere like in the OneDrive folder on accident, or you got some errors that you didn't pay attention to that I'd need to know to help you
@@TeamAquasHideout ok, thanks for such a quick reply, apparently it does not work if the decomps folder location is the desktop instead of in documents with a *shortcut* on the desktop. stuff is appearing in the folder now so that seems to have been the issue, thanks!
Idk what you meant by shortcut, but any shortcuts are unnecessary in this process
@@TeamAquasHideout yeah sorry for the poor wording, just didnt work when i created the folder directly on the desktop, but it worked when i created the folder in the documents section of the file directory. everythings working fine now. thanks for you videos, im having a great time learning about rom hacking!
Hi when trying the git clone to obtain pokeemerald from github. i kept getting returned with "operation not permitted" "fatal: could not set 'core.filemode' to 'false'" any ideas on fixes for this, or what i may be doing wrong?
Did you restart your PC after installing and setting up Debian?
@@TeamAquasHideout I restarted but I still get that same exact error message
@@TeamAquasHideout I moved the decomp folder somewhere else and it worked somehow
Sounds like you had it in the OneDrive folder. Which behaves really weird, and isn't really a folder like the rest of them.
You have to add sudo before the command. You basically do not have the administrator right to load the files in the folder. Sudo is saying to the computer "I am admin" so you can run the following line safely.
I have an issue I did the thing with the command and restarted my cpu but it says that the windows subsystem for Linux has not been enabled
Please help me
Were you in administrator mode in Powershell, if you already were then you might have to enable it in your BIOS, look up 'enabling WSL virtualization in BIOS'
even after following everything in this video are we able to edit the rom file with programs like HMA or do we have to edit the game differently?
If you're using the decomps there is no reason to use HMA again. You don't use any tools that edit the ROM, you only edit the source code files directly and recompile them. All binary tools do not work with decomp hacks and even if they did, any changes you made to the ROM with them would just be overwritten the next time you compiled
@@TeamAquasHideout ah yes Ty very much
Hello I saw that your tutorial for updating to the poke-emerald expansion is unavailable even though I was able to watch it before. Is there anyway I could still get access to it?
The process has changed and a lot of people were having problems following the tutorial because of it. The best way to install the Expansion is to follow the install.md file on the Github page for the Expansion. If you have problems you can join the RHH discord where the expansion is made, or the team aqua discord for help
I was wondering, is decomp hacking also possible with the dynamic pokemon expansion + complete fire red upgrade? I would love to skip adding 5 gens of Pokemon if I go from binary hacking to decomp hacking.
It is not. If you use Emerald instead of FireRed then there is an alternative to CFRU. But if you want to use FireRed you will have to add the stuff yourself. A lot of it can be copied (with modifications) from the CFRU but it will still take a lot of effort and require a lot of knowledge. The people who make the CFRU still recommend to use the Decomps for new projects though.
@@TeamAquasHideout Thanks for your quick reply! Okay, seems I will have to get to work then. I haven’t checked yet but I hope I can collect the images from the CFU so I can just copy a lot.
When I try and open WSL it instantly crashes. I’m not sure why I am unable to open or run as administrator but everytime I do the page opens for a split second and disappears again. Any suggestions?
You might need to enable virtualization in your bios. Look up "enable wsl virtualization in bios" on google and you'll find some tutorials
4:05 I am stuck at this point.
When I open Debian, I get an error.
"0x8007019e The Windows Subsystem for Linux has not been enabled."
Then it says: "Press any key to continue..."
Doing so, closes the program.
Gotta do the powershell step
You either didn't enable WSL, or you did it while not Admin, or your computer has it locked down and in that case you'll have to look up "enable wsl in bios" and follow the instructions you find online
Hi, following instructions and getting a "cp: cannot stat 'libgcc.a': no such file or directory" error when running .install.sh ../pokeemerald. got no errors when i ran ./build.sh...any thoughts?
I'm guessing you asked this in my discord as well right? It sounds like something I just made a suggestion for yesterday
I have some questions.
1st: this installs another OS in my pc with WIN10 right?
2nd: will the "Activate Windows" advice interfere with the process(I don't know how to activate windows lol)?
3rd: i already edited some things in my hack through binary hacking, will i lose my progress so far?
1. kind of it enables you to run a virtualization of Linux inside of Windows. Its not like dual booting where they're both installed next to each other on a drive.
2. I'm not sure. Activating Windows means buying a Windows license (or finding a way around that)
3. Its possible to export maps from Advanced Map into the decomp, but other than that, no, progress will be lost. Such is the life of something as annoying as binary hacking.
@@TeamAquasHideout 1: ok good to know.
2: i guess i'll just try out then
3: well, crap. Good thing i just edited the first three routes and the town/region. map
did everything and the EMERALD rom inside my folder is working, so how do i do it for my fire red rom? :D
Best regards, keep up the good work!
Basically the same exact way but with the pokefirered GitHub repo
Question: I got to the point where I've installed and created an account for Debian. I tried copying and pasting the first command, but it didn't work. I'd do ctrl+v once it wouldn't work, but then I did it again and it showed ^V. I pressed enter thinking possibly that's how it shows up, but it said command not found. Next I tried typing the command myself verbatim and that didn't work either. If I could get some help with this it would be greatly appreciated.
It's probably going to be easier to help with a problem like this if you join the discord and post screenshots of the commands you typed and the errors. It's likely just a path error. You're trying to cd, change directory, into a path that doesn't exist. Somewhere along the filepath you typed is an error, either you're starting in the wrong place, you have a folder with spaces, or your folder doesn't exist.
@@TeamAquasHideout I never made a folder so perhaps that's it.
@@TeamAquasHideout Apparently I’ve just been using copy paste wrong and now the commands are working. UGH
Right click instead
Debian/Ubuntu keep giving me error 0x80370102 despite the fact I had virtualization already enabled on my PC and I'm not on a virtual machine, so I'm confused on why things still don't work.
Which step are you getting an error on. Are you positive it's enabled in your BIOS
i keep getting "no such file or directory" in debian when i try to choose where to store it even though i typed everything in right and the folder exists in my desktop
The folder might not be mounted properly, did you try the two different mount commands that I suggest in the video if you have an error?
@@TeamAquasHideout thanks, it works!
@@TeamAquasHideout no matter what I try i still recieve this error and ive watched that section of the video about 20+ times and im lost on what I may be doing wrong
Join the pret discord and post your errors there. Its hard to help from RUclips comments
@@TeamAquasHideout Thx I will try that
is there a way i can edit my current rom, i spent weeks editing it, and the only thing i want to change is the ai. i already have poke emerald battle engine upgrade but it made the ai dumb i want to replace ai scripts.
This is a series on using the pokeemerald decomp projects, I can't really help you with any outdated binary hacking rom bases.
@@TeamAquasHideout ok thanks I will just start over from scratch then this ain't the first time
is there anyway i can decompile a pre-existing edited rom? I have a rom that added gen 4 moves to emerald and i would like to further edit the rom directly without having to binary hack?
No it is not a viable strategy. If you just want Gen 4 Pokemon in Emerald you can just use the pokeemerald-expansion which adds all Pokemon Gen 1-9 and just toggle off the Gen 5-9 mons
@@TeamAquasHideout Thanks, appreciate the quick reply
I keep getting an error when building the agbcc. It just says that the makefile cannot be created because no such directory exists than terminates the action. Please help
Join my discord and send a screenshot of the error in the help channels. It'll be much easier to help that way
Hello, I have made it to “mounting the drive” but I am getting “-bash: user: No such file or directory”
Is this normal? Or have I messed up? Thanks for any help. I barely know how to use a pc but enjoy playing roms and was trying to learn advance map and came across these videos.
It generally means you had a problem with the path. If you have spaces in any folder names then that will cause problems. It's hard to help over RUclips it's easier if you join the discord and share pictures of the commands and errors
Do you have a link for the discord?
It's in the description and pinned comment of almost every video
#romhacking-help is the channel you should post your screenshots in so we can see what's wrong
@@TeamAquasHideoutthanks so much for the help and the reply!
I followed this completely and did it in the same order but when I try to make the game I get "fatal error: Stddef.h: No such file or directory"
Sounds like you must have gotten an error on one of the other steps or you missed it. I'd just go through it slowly again
Assuming that you aren't using either Kanto or Hoenn as the region for your hack, are there any major reasons to choose one over the other?
If you're making a brand new region use pokeemerald. If not, pick whichever region you want your hack set in
@@TeamAquasHideout What happens if you make a new region in FireRed?
Not much really there's just less support for it, and no real reason to do it. If you're going to be making a new region use the more updated code base since you're changing all the maps anyway
@@TeamAquasHideout Less support, I see.
Thank you for the video! I managed to do your steps. I'm trying to make a rom in which all the battle are Battle Palace style (wild pokemon, trainers etc). Can you help me? I think there are little changes to do.
I think Ackolade did something like that, you can maybev look up their channel and ask them how they did it. I don't know how the battle palace works though
the website has updated the command and it wont work for me for some reason, how do i figure this out? The new command is wsl --install -d Ubuntu --enable-wsl1
You should join the discord and post the errors it gives you in the help chat. It's impossible to help without the errors. Screenshots are much appreciated
hey! I am getting this error message:
Failed to read "data/maps/LittlerootTown/scripts.inc".
tools/preproc/preproc data/event_scripts.s charmap.txt | cc -E -I include - | arm-none-eabi-as -mcpu=arm7tdmi --defsym MODERN=0 -o build/emerald/data/event_scripts.o
Failed to read "data/maps/LittlerootTown/scripts.inc".
make: *** [Makefile:396: build/emerald/data/event_scripts.o] Error 1
make: *** Deleting file 'build/emerald/data/event_scripts.o'
Do you know why this could be??
You should also join our discord and the pret one so you can get more immediate help, it makes the process of helping you troubleshoot a lot easier
When I write "make compare" it refuses to do anything and says "WARNING: 1 computed checksum did NOT match". I have absolutely zero idea of what that's supposed to mean. Says "payload.gba: FAILED" right before.
Did you make any changes to anything? If you've already made changes you shouldn't use make compare. What does make -j on its own say
@@TeamAquasHideout It seems to have worked doing "make -j"? But "make compare" has never succeeded and I have not made any changes.
Well, unless it is counting the fact I am using pokeemerald-expansion, as I didn't intend on using regular emerald. That would explain it.
Yes make compare will never work with Expansion. Make compare checks to see if it compiles a vanilla Emerald ROM byte for byte with the original. Any changes break it
error: chmod on /mnt/e/decomps/pokeemerald/.git/config.lock failed: Operation not permitted
fatal: could not set 'core.filemode' to 'false'
Wht could that mean? i tried to solve from github but it didnt help :(
Nevermind, fixed it. forgot to correct all the mount signes from c to e in the fix command.
Other question tho, after building my first nproc was instantly 24. Should i be afraid?
See my comments regarding nproc. It's not something to worry about at all. 24 means your PC is great. Just use "make -j" everytime on its own. Nothing else. No nproc.
Late here but when I’m trying to select a folder to save it in, it says file or directory no found or something. What do I do? I can’t find anywhere for help
You're gonna have to provide more info than that. It's easier to help with this kind of problem if you join the discord and post screenshots of the command you typed and the errors. Common problems with this error are having spaces in your folder names or not being in the right directory in wsl to start with
@@TeamAquasHideouthow and where to post pic or vid on discord
You have to join our romhacking server, the link is in all the descriptions and I think also pinned comments on the majority of my tutorial videos. Post them in the #romhacking-help chat. If you don't already have a discord account you'll have to make one but it's worth it, the majority of romhackers hang out and learn on the three major decomp hacking discords
why when I try putting in the location around 6:30 it says no such file or directory?
You're going to have to be more specific. Join the discord and post screenshots of the error. Otherwise it's impossible to tell what you did wrong
@@TeamAquasHideout figured it out with the help of the discord. Thanks for your reply though!
I did everything but the rom is not working?.. any fix?..
Nevermind LOL.. it was an emulator problem..
So i just went through this whole process and can't don't see the decomp on my folder. The debian thing says it's successfully installed. I prolly installed it in the wrong place, so.... yep, I see where I goofed now. I entered:
"~$ cd "
Yep, I just copy/pasted that without reading it and didn't notice the resulting error message.
I guess I have to uninstall it and reinstall it to the right place, but idk man, I'm pretty lost at this point.
It's much easier to help walkthrough the process if you join the Discord
hey for it doesnt work when i will clone the github pokeemerald to my file, it says "command not found", and i cant coppy in the debian, pls help
You clearly skipped some steps, I would recommend following the tutorial again but slower
@@TeamAquasHideout are the "1s" importent, that you do before you start the clone?
I have windows 11 I'm not sure how to download pokeemerald because the WSL is windows 10 only
Are you sure about that? Here's a link I didn't really check it but all the ones I look up say its possible. If not there are other ways to build natively on Windows but they're annoying in ways imo, check the install.md file because it covers them. www.groovypost.com/howto/install-windows-subsystem-for-linux-in-windows-11/#:~:text=Microsoft%20allows%20you%20to%20enable,in%20a%20Hyper%2DV%20environment.
@@TeamAquasHideout thank you very much I see it now
Is there a more in depth tutorial available on installing everything? I have zero knowledge of powershells, debian, linux, etc. Following your video and the install.md instructions... I'm running into a lot of errors already.
I'm not sure if there's any more in depth you can really get on it. If you're having specific errors you can ask about those in the discord
@@TeamAquasHideout After some trial and error I am up and running. Thanks for the swift reply! Glad to see this account is still active.
Making some minor edits to test the waters. Currently trying to find out where to edit the zigzagoon battle after choosing a starter.
Yeah I'm still around lol, I'm very active in the discord where we have dozens of people who can also help out with questions so you should definitely join. There's also the pret and RHH discords which are great places to be if you're getting into this stuff. pret are the ones who make the decomps and RHH makes the pokeemerald-expansion with all the gen 1-9 mons, moves, abilities, items, etc
I'm current;y getting an error in Debian, something about enabling virtualization and BIOS. I don't understand.
Sounds like you skipped one of the first steps about enabling wsl
@@TeamAquasHideout Not as far as I know, I did what you did step by step.
But did the step where you enable wsl in Powershell give you an error?
@@TeamAquasHideout I'll have to go back and recheck that step./ Can you please timestamp the specific step?
@@TeamAquasHideout Now when going back through the steps, I'm getting an error when I try to Enable WSl, that I didn't get before. It says Elevated Permissions required. Can you help?
I get an error that says:
Cloning into 'pokeemerald'...
error: chmod on /mnt/c/Users/Ethan/Documents/decomps/pokeemerald/.git/config.lock failed: Operation not permitted
fatal: could not set 'core.filemode' to 'false'
I restarted after doing the PowerShell command and I think I have done everything said at this point. I ran the two commands in Debian and they worked but then tried this and it doesn't
I hope you figured this out, if not join the discord and we should be able to hopefully sort you out
If it still doesn't work, try using sudo before the command. "sudo git clone.... "
I read through the other comments and am still confused. I mounted to the folder where i want to install everything, but when i did the install it installed somewhere else (home) instead. How can I fix this?
I'm not really sure you should tbh. Its likely due to you including something like ~/ in the path you installed to but anyway, its actually faster inside the WSL home directory and you can access it from windows if you type \\wsl$\ in the file finder address bar
Or you didn't back out all the way, before trying to enter the mnt directory. Try cd .. and also watch my Linux Command video
Update: i tried it with sudo and it worked. I hope I can keep up with this stuff
the big bunch of info that occurs at 12:04 is where you lost me, im stuck at where you were at 12:02 and im not sure how to proceed
Just follow install.md very closely everything you need is there
never mind i got it!
hey, when i try to mount the file system i get a message that says "-bash: cd: too many arguments" any help would be appreciated :)
i think it might be caused by having a space in my directory (user name is )
sorry for the bother. I figured it out!
No problem! And yeah linux has trouble with spaces, there are ways around it but its better just to use underscores instead
If anyone gets the "target is busy" message while trying to unmount, I solved this by doing a cold boot (ie shut the pc all the way off, then restart it). Dunno why that worked, but the drive mounted properly after that without the special conditions, and it was all smooth sailing from there!
I have done the exact same thing and get the same results; HOWEVER, when I look in my folder the .gba file is not there! Do you know why this could be?? any help would be GREATLY appreciated!!!
Did you get an error? If you ran 'make' and didn't get an error then it absolutely should be in the main folder of the project
It turns out my directory was wrong! Thanks so much for the help, I’ll be following along for your other videos as well!! I really enjoy the channel!!!! (Same person I’m just on my phone account)
how necessary is Debian and Linux because everytime i restart my computer, the Microsoft powershells acts as if i never ran a command
You probably need to change a setting in your BIOS to enable virtualization. But there is a Windows only option with msys2, the setup is in the install.md file
Be sure to run it as administrator. You can run powershell without it being an administrator but it can't do any larger commands without being ran as administrator. It does not ask you to run as administrator at launch so you may have been under the impression that you were already running it as administrator. Just try right clicking powershell and manually choosing "Run as Administrator"
Does this work with game boy games as well, or just game boy advance only?
This only works with Gen 3 Pokemon games. There are other decomps of other games out there, and disassemblies of some GameBoy games. But this stuff I covered is exclusively Gen III Pokemon
@@TeamAquasHideout ok thanks, but if you had decomps of game boy games will this program still work for editing, like sprites maps and stuff?
No, any new game will need new programs for mapping. I mean VSCode will work on any code base but mapping has to be done with a special program specifically made for those games by modders. The red/Blue/silver/gold/crystal all have disassemblies and a mapping program if those are the games you're interested in. Look up pokecrystal
How do I get the decomp file? Is it just a zip file of emerald or the file for the game itself?
The video goes over it. It's kind of the whole point of the video lol. No it is not a zip file of the game. It's not a file. It's a lot of files. It's on GitHub
how much storage would installing linux (or whatever the app to compile pokeemerald) would take.
also do we download the repo, or if we dont have github desktop, can we still put git clone (pokeemerald)
You must git clone. If you just download the Zip you will have problems later on. Big ones. Restart your entire project level problems.
I don't know how large it is exactly, but it's not that big. Maybe a couple gigabytes for the Linux distro and a small amount for the decomp itself
@@TeamAquasHideout alr thanks!!
It doesnt work when i get to decomp just says no such file or directory
You used a file path that isn't correct for where you store it on your computer. Either there's a space in a folder name that leads to your decomps folder or you just don't understand how directories work. Maybe watch the Linux Commands 101 video
It keeps saying that it can't find a directory so I did the sudo umount /mnt/ c and got this, "umount: /mnt/c: not mounted." Then, I tried to remount and it said, "mount: /mnt/c: C: already mounted on /mnt/c.
init: (21) ERROR: UtilCreateProcessAndWait:501: /bin/mount failed with status 0x2000
No error information." After that, I tried finding the directory again and it still didn't work. Also, it might be caused by my username having a space in it but I don't know how to format it then because I put a underscore below the space and removed the space but it still doesn't work.
Solution 1: just install it in WSLs home directory somewhere instead of Windows because its actually faster. To find it in windows type \wsl$\\ in the windows address bar.
Solution 2: change your username to not have spaces.
Solution 3: put single quotes around the path name you're trying to mount. 'mnt/c/Users/john doe/Documents'
@@TeamAquasHideout Thanks for the help, the problem was that there was a /onedrive I needed to put in which while I'm not sure why but I did it and now it works.
Hey so I tired to add the WSL1 to the power shell and it didn't work any suggestions?
You're going to have to be a little more specific about what didn't work and what the last thing you did that didn't work was
3:13
@@TeamAquasHideoutI actually do need it now
@@TeamAquasHideout lol I dident hit enter
@@TeamAquasHideout hey so sorry to bother you…..again butttttt now it won’t let me run the dubian thing it say the visual something isent working for DIOS and on your device. I got it working on the devices but I think the maker of my laptop locked my out of my advanced settings for DIOS so I can’t use it. What do I do?
I didn't have to make a user on Ubuntu when i started it. It might be because when i started it for the first time i closed it, becaused i went to sleep. But the decomp worked and i got my fire red gba file!
After I type the username in Debian and go to create a password, it wont let me type. Then when I paste sudo apt install build-essential binutils-arm-none-eabi git libpng-dev, I cant type in the password there either
When you're creating your password, it IS letting you type. It just doesn't display the password on screen as a security measure for entering passwords.
@@TeamAquasHideout Now I get an error that says:
Cloning into 'pokeemerald'...
error: chmod on /mnt/c/Users/Ethan/Documents/decomps/pokeemerald/.git/config.lock failed: Operation not permitted
fatal: could not set 'core.filemode' to 'false'
I restarted after doing the PowerShell command and I think I have done everything said at this point. I ran the two commands in Debian and they worked but then tried this and it doesn't
@@ethanspassoff6366you can try placing sudo before the command.. Tbat worked for me
the "make comapre" doesnt work for me, what have i done wrong lol
thx
Uh it's kinda hard to say without any information lol
When I type cd../pokeemerald/ it can not find directory. Very new to this . Overall not sure what to do from here
First, did you make sure to use YOUR path to the pokeemerald directory or did you type mine? Because it'll be different on every machine. It has to be the actual path to the folder pokeemerald exists in. But again, you have to have your Windows C drive mounted in (WSL/linux) and you have to cd into it exactly.
If you know you managed to mount the C drive and are still having trouble, try the command 'ls' it lists everything in a directory. Then you can 'cd mnt' 'cd C' 'cd Users' whatever one by one until you are in your folder. Cd just means change directory. Basically it just takes you inside folders. I'll be doing a short video on Linux commands soon. If you have any other problems try the PRET or Rom Hacking Hideout discord because you can't get updates on RUclips comments when they're answered I don't believe. I will have my own discord up and running when I officially announce the tutorial series on Reddit and Pokecommunity, but I'm waiting until I have a significant amount of tutorials finished before getting people excited about another series that will die off before being finished.
@@TeamAquasHideout thankyou for the response, yeah very new to Linux commands. Want to take the time to learn to create a hack from scratch since I felt very limited with regular ROM hacking tools. Didn't think I'd run into a road block so early .
@@DaRootz did you end up figuring it out? I learned second level comments come with notifications so you can actually be updated when I respond
@@TeamAquasHideout I currently have not but I have yet to find the time the last few days to endeavor. I'm definitely looking forward to it however
@@DaRootz okay well like I said, when you do try. First, assuming you did mount the drive, try the command 'ls' which will list all the files and directories. Then you just have to 'cd' one by one into your pokeemerald directory that you created. If you haven't created it yet then it obviously won't work. But you should cd to the directory where you plan on having the decomp
Can you add the new engine to a old ROM hack that doesn't have the new engine???
What do you mean by that, if you mean add the pokeemerald-expansion to an exisiting romhack, then no that's definitely not possible unless its a public open source decomp based hack.
@@TeamAquasHideout ok thanks for the reply
i dont know what file it wants me to use it keeps saying No such file or directory
It's going to be impossible to help you without any extra information. You should really join the discord and post screenshots of your problem in the help chat
@@TeamAquasHideout ok
If anyone gets stuck at the "git clone" command part because it keeps giving an error: Try running Debian with Administrative permissions.
I got all the way to the make compare but it doesn't do the command
What does it do
@@TeamAquasHideout i got it fixed! Unsure what was wrong but it just wasnt doing any command
I just realized that Yay with AUR can replace most of the packages with the custom pacman stuff on Arch linux
Ughhh I was so keen to do this but it's just error after error after error after error and there's barely any documentation about it online. Looks like Windows 11 is a major issue because this is a pretty freshly setup Windows 11 PC with great hardware specs. Lame.
Windows 11 doesn't really have any specific problems with the decomps, many people use it. If you're having trouble with specific things you should join the discord and post screenshots of your errors in the help channels so we can figure out how to help.
Can I just do this in VS or notepad++?
You still need WSL and stuff, but yes
Hi could you transfer your stuff from example the advanced pokemon programs?
Uh? I'm confused as to what exactly you're asking. Can you ask that again but differently?
@@TeamAquasHideout ok so basically I started a rom hack with binary hacking but I want to transfer to this one but I don't want to do everything all over again, so that's what im asking
@@Awesomeguy1020You mean how to port your Projects from Binary to Decomp?
You can port maps and graphics but not much else
You are the goat!
🙏
Is there a link available to the necessary programs?
github.com/pret/pokeemerald/blob/master/INSTALL.md
@@TeamAquasHideout Thank you. For some reason I couldn't get it to come up. Must have done somethin' wrong.
No problem!
What should I I do if my make doesn't work
It completely depends on why make doesn't work. It should give you errors. You can post them to the pret discord or mine. Pret gets faster responses because there are way more people
@@TeamAquasHideout Debian says make: *** No targets specified and no makefile found. Stop.
is there a way I can add back EVs to an Emerald decomp rom hack using the battle engine upgrade that removed them?
I'm not sure what you're referring to. But if someone created a hack using the decomps it is extremely difficult to make edits to unless you have the source code
I want to change the shiny odds in Pokémon recharged emerald, it’s emerald and I already changed the odds of both fire red and emerald none rom hack, recharged emerald is a romhack in itself and it seems I can only change the odds this way
Recharged Emerald isn't open source as far as I know so you just can't edit the shiny odds. Certainly not with decomps. This tutorial series offers nothing for you, you either have to find out how to do it with binary hacking, or give up on doing it for this romhack. Non open source decomp hacks are hard to edit.
Hiya, these videos have all been super helpful so far, thank you! A quick question. Outside of the extra wait time, do "make" and "make -j" do the same thing once the decomp is first built? I ask because I followed the instructions slightly prematurely and ended up just running "make" instead of (in my case) "make -j6" after I followed the GitHub instructions. Everything still seems to run fine on mGBA, was just wondering. And thanks again! :)
They do essentially the same thing but make -j is faster.
I actually explain nproc and 'make' a little weird in my early videos so I apologize. But you actually just need 'make -j' on it's own. Without any number or anything, just -j
@@TeamAquasHideout I see. I've been making my first changes in Porymap and it feels extremely intuitive (having dabbled with Binary hacking and this advance map before). I've given myself a challenge to try and program a little proof-of-concept game up to a custom first gym, I'll update on how it goes!
Definitely, you can join the discord if you need help it's much easier to answer there and there are dozens of others to chime in.
Will this tutorial work with Windows 11?
Yeah WSL works on Windows 11. It might be slightly different but it all works.
I’ve opened Debian and it’s telling me that I must update WSL2? What should I do?
www.google.com/url?sa=t&source=web&rct=j&url=learn.microsoft.com/en-us/windows/wsl/install%23:~:text%3DUpgrade%2520version%2520from%2520WSL%25201%2520to%2520WSL%25202,-New%2520Linux%2520installations%26text%3DTo%2520change%2520versions%252C%2520use%2520the,distribution%2520to%2520use%2520WSL%25202.&ved=2ahUKEwiigbKbmdz8AhVSD1kFHQlIC8AQFnoECAoQBQ&sqi=2&usg=AOvVaw3NDNYJVUKnKqnP9DjgAR3M
@@TeamAquasHideout managed to get all of my problems resolved and was able to get the rom into porymap, thanks for the help!
its saying "-bash: cd: too many arguments" when i was trying to direct the decomps folder at 6:40
You cannot have spaces in any folder or file names when using Linux
@@TeamAquasHideout well my user has a space, how would i do this then?
I think you can put it in single quotes maybe, the whole path that is
@@TeamAquasHideout ok i did that and now there is a # at the end of the path, is the # good or is it suppose to be a $
If it worked and took you to that folder then yeah
I keep getting the same error message. I cloned both the repository and agbcc file and they’re saved in the same folder. Not sure what I’m doing wrong
“Target directory does not exist. If you aren't familiar with relative paths, make sure that agbcc and the repository are in the same directory, and run "./install.sh ../Users/Desktop/exalted/pokeemerald" again.”
It's really hard to help with this kind of question over RUclips, you should join the discord and ask in the help channel there with pictures
@@TeamAquasHideout I haven't been able to get help in the discord
Hi, how to make a Unix username?
Just type it into google, it's faster than me copying an explanation from Google
I tried tô make rom hack in the 2000's. I gave Up cuz it was always Hard (impossible) tô make what I wanted. Can't Belive it's that simple now.
It's definitely easier now than it's ever been
Has anything changed yet?
Some but not really
Uhh one question. While I was trying to download the decompiled emerald rom from github using Ubuntu I have this error:
Operation not permitted
fatal: could not set 'core.filemode' to 'false'
How can I solve this?
You either had a typo or you need to run the following commands in order, close and then reopen WSL
> cd ~
> sudo umount /mnt/c
> sudo mount -t drvfs C: /mnt/c -o metadata
my biggest issue seems to be swapping directories or something because I get to the step where its like make the game and do cd pokeemerald and it would be like no such directory exists
I suggest watching basic Linux command videos
This just makes a rom that boots a white screen and errors out, unfortunately. Doesn't actually make a playable rom.
You must have made a mistake then. I can't help with any more info. It definitely makes a byte for byte matching ROM
It says .install.sh command not found
Then you aren't in the right folder in the Linux terminal. You should really watch some basic tutorials on navigating Linux it's going to be a struggle if you keep trying without it
I had to reinstall and when I want to make the pokeemerald-expansion.gba, it keeps saying "fatal error: string.h: no such file or directory"
Sounds like you skipped a step in the install. Maybe forgetting to add agbcc
Bruhh i am too dumb, i still cant do shit😢 all i need just regular pokemon emerald with gen6 exp share.. why its so hard
Romhacking can be challenging
why do i need ubuntu debian?
You don't *need* it, but using WSL is the fastest and easiest to set-up method of compiling the decomps
11:11 the install.shh poke emerald won’t work for me
It says target directory does not exist I typed what you copy and pasted (I can’t find where to copy and paste)
“If you aren’t fimiliar with relative paths make sure that agbcc and the respiratory are in the same directory”
You can't just copy and paste it, you have to use your computers path to the folder you want
@@TeamAquasHideout so I mount it again?
You should watch a couple RUclips videos on navigating the Linux file system, there are hundreds of them on RUclips.