You are not logged in.
Hi guys, I have a pretty simple question, but I don't know if the answer will be simple :/
Ive been editing Egg Moves and TMs/HMs, and whenever I try to make the rom in Cygwin, I keep getting this error:
.exe: Unable to load fixed ROMX section into bank $10
make: *** [Makefile:59: pokecrystal.gbc} Error 1
my best guess is that I've run out of space somewhere, but I was under the impression that there was lots of free space, and I havn't really added very much in right now, maybe a couple hundred lines of code...any of you guys run into that error before? I'm still learning so I apologize if this is a well known error.
You are right that there is a lot of free space. But the free space is spread across many banks. Each particular bank is a fixed size ($4000 bytes). Your guess is correct. You ran out of space in bank $10.
This can be solved by shifting things between banks so that no bank contains more than $4000 bytes worth of data.
Of course, this shifting of data needs to be done carefully so that all code still works appropriately (you need to be certain no code accidentally looks in the wrong bank for some data/other code)
Ok, that does make sense. I know that you can move data around in hex editors, but I've been pretty much exclusively working with pokecrystal, and I'm not too familiar with hex editing. I'm sure there must be a way to say, split the data between 2 banks or whatever in assembly, right? Any idea how I might do that? I ran into this problem when editing Egg Moves and and the TMs/HMS each pokemon learns, btw. Though I think my edited Egg Moves take up the most space out of the two.
Move this line (https://github.com/pret/pokecrystal/blo … .asm#L1717) to some other section, e.g. line 6087 in main.asm for bank 7F. By moving the whole pokedex engine out of bank 10 you should have more than enough space for your moves.