Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2017-03-18 02:15:50

stubbyfinger
Member
From: Edmonton, Alberta
Registered: 2016-08-07
Post 13/24

Error in reassembling rom

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.

Offline

#2 2017-03-24 01:19:46

Danny-E 33
Administrator
Registered: 2012-06-09
Post 1,023/1,119

Re: Error in reassembling rom

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)

Offline

#3 2017-03-24 17:14:25

stubbyfinger
Member
From: Edmonton, Alberta
Registered: 2016-08-07
Post 14/24

Re: Error in reassembling rom

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.

Offline

#4 2017-03-28 22:34:02

Crystal_
Member
From: Spain
Registered: 2012-09-16
Post 413/450
Website

Re: Error in reassembling rom

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.

Offline

Board footer

Powered by FluxBB