Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2016-03-25 18:53:58

TotesTim
Member
Registered: 2016-03-03
Post 12/12

'Pokedex Text' is too big error.

So, I had been adding more Pokemon slots into my ROM when I eventually came across this error:

Section 'Pokedex Text' is too big (old size 16377 + 15 > 16384)
Makefile:46: recipe for target 'text_red.o' failed
make: *** [text_red.o] Error 1

I had assumed that this meant that the "pokedex.asm" file located within pokered/text had gotten too big. So, I figured that I could solve the problem by creating a new bank for a seperate asm file containing the remaining dex entries, as this had worked for me as far as implementing new Pokemon sprite locations. I determined that "text.asm" contained the "pokedex.asm" file in question, and tried to make a fix.

The code below contains lines 1 to 16 in "text.asm":

TEXT_1  EQU $20
TEXT_2  EQU TEXT_1 + 1
TEXT_3  EQU TEXT_2 + 1
TEXT_4  EQU TEXT_3 + 1
TEXT_5  EQU TEXT_4 + 1
TEXT_6  EQU TEXT_5 + 1
TEXT_7  EQU TEXT_6 + 1
TEXT_8  EQU TEXT_7 + 1
TEXT_9  EQU TEXT_8 + 1
TEXT_10 EQU TEXT_9 + 1
TEXT_11 EQU TEXT_10 + 1

POKEDEX_TEXT EQU TEXT_11 + 1
MOVE_NAMES   EQU POKEDEX_TEXT + 1
POKEDEX_TEXT2 EQU MOVE_NAMES + 1 ; new addition

Following the pattern that the bank definitions go by, I start off by defining a new bank for my additional file containing more pokedex entries that I place right under the MOVE_NAMES bank.

The code below contains lines 3205 to 3215 in "text.asm"

SECTION "Pokedex Text", ROMX, BANK[POKEDEX_TEXT]

INCLUDE "text/pokedex.asm"

SECTION "Move Names", ROMX, BANK[MOVE_NAMES]

INCLUDE "text/move_names.asm"

SECTION "Pokedex Text2", ROMX, BANK[POKEDEX_TEXT2] ; new addition

INCLUDE "text/pokedex2.asm" ; new addition

Also, "pokedex2.asm" simply contains 11 lines of the following:

_ClawitzerDexEntry::
    text "In the distant"
    next "past, it was"
    next "somewhat stronger"

    page "than the horribly"
    next "weak descendants"
    next "that exist today"
    dex

However, that same error continues to show whenever I try to assemble the ROM. I get the feeling that I'm probably going about this the wrong way. Any ideas on how to work around this?

Last edited by TotesTim (2016-03-26 19:07:34)

Offline

Board footer

Powered by FluxBB