Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2020-12-30 09:10:25

ElfinHilon10
New member
Registered: 2020-12-30
Post 2/3

ROMX sections extend past the end; 16bit pokecrystal

Hello!

I have a really strange error it seems a few different have gotten. However, from what I can gather, most solutions revolve around using the 8bit disassembly of pokecrystal.

I've been using (trying to) the 16 bit version with expanded moves and mons.

I was following the tutorial on Phy/Spec split (which is meant for 8 bit though seemed to be ok for 16 bit), however I cannot even test to see if it's working due to this error I'm receiving.

error: pokecrystal.link(64): Sections would extend past the end of ROMX ($800d >
$7fff)
make: *** [Makefile:78: pokecrystal.gbc] Error 1

Line 64 of pokecrystal.link is "Enemy Trainer Parties 2".

Does anyone have a solution on how to fix this?

Thank you! :)


EDIT: I was able to build a clean ROM with no phy/spec split changes made. Weirdly, the phy/spec split tutorial doesn't touch anything to do with trainer parties.

Last edited by ElfinHilon10 (2020-12-30 09:30:39)

Offline

#2 2021-01-02 18:58:15

Danny-E 33
Administrator
Registered: 2012-06-09
Post 1,194/1,197

Re: ROMX sections extend past the end; 16bit pokecrystal

The game ROM is made up of many "banks" which are all $4000 bytes big.
Even though you did not modify "Enemy Trainer Parties 2", you modified other things from the same bank.
Your modifications increased the overall size of that bank to $400d bytes, which is invalid.
The fix is to make adjustments so that no bank is greater than $4000 bytes. The approach you take is completely up to you.

Offline

#3 2021-01-07 06:59:30

ElfinHilon10
New member
Registered: 2020-12-30
Post 3/3

Re: ROMX sections extend past the end; 16bit pokecrystal

I got it to work! I moved the offending part to the Battle Tower section for trainers and it worked! Thank you! :)

Offline

Board footer

Powered by FluxBB