Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2018-12-31 17:33:46

Mallos31
New member
Registered: 2018-12-28
Post 3/5

Trouble changing pokemon sprites.

I have done my best to try to make sure my banks are all 0x4000 or fewer bytes (since obviously anything larger gives an error) but now I'm getting the following error:

error: Unable to place 'Battle (BANK B)' (ROMX section) at $7D5F in bank $0B

I've tried everything I know how and I'm just not getting anywhere. I also checked a few of the forum posts here about adding pokemon since it figured it would come up with similar errors, but I haven't found anything. Why does battle bank b NEED to be at $7D5F? Is it a wRam thing?

EDIT: This error arose after I moved around some sprites because of this:

ERROR: main.asm(809):
    Section 'Pics 4' is too big (max size = 0x4000 bytes).

I moved 2 sections, Starmie and Pidgeot out of Pics 4 and moved them to Pics 5 since it was so much smaller. That's what seems to have caused THIS error.

Last edited by Mallos31 (2018-12-31 17:36:33)

Offline

#2 2019-01-01 08:36:08

Mallos31
New member
Registered: 2018-12-28
Post 4/5

Re: Trouble changing pokemon sprites.

Responding instead of quoting just in case someone ends up with the same errors as me. I figured it out. When those errors are present, they are exactly the same as the "too big (max size = 0x4000 bytes)" error. I was able to easily fix it by moving some sprite data down into a new bank I created, Bank 1F. Worked just fine. If this information is incorrect please feel free to update it and correct it.

EDIT: ABSOLUTELY DO NOT DO WHAT I DID. I didn't get any errors, but... something went horribly wrong.

SOME pokemon look good. They look fine. No problem. MOST of the pokemon look awful. They are corrupted and though the game works jut fine, the pokemon themselves look like glitchy blocks. Help?

Last edited by Mallos31 (2019-01-01 08:44:50)

Offline

#3 2019-01-05 21:19:20

Danny-E 33
Administrator
Registered: 2012-06-09
Post 1,121/1,135

Re: Trouble changing pokemon sprites.

Yes, this is a well known problem. The banks that the game will go looking in to find Pokemon front/back pics are hard-coded.
So if you move a pic to a different bank, the game is still hard-coded to look in the original bank.
To fix this, you need to update the culprit routine so it looks up the bank number dynamically and is no longer hard-coded.
Read through this thread for a full explanation:
https://hax.iimarckus.org/topic/6998/

Offline

#4 2019-01-07 07:24:42

Mallos31
New member
Registered: 2018-12-28
Post 5/5

Re: Trouble changing pokemon sprites.

I swear, some of the routines they used were like they were trying to make a romhack. Thanks for the info. I'll read up.

Offline

#5 2019-01-07 17:47:58

Danny-E 33
Administrator
Registered: 2012-06-09
Post 1,123/1,135

Re: Trouble changing pokemon sprites.

Haha yes it does feel that way.

In case you overlooked it, check out my reply in your other thread.

Offline

Board footer

Powered by FluxBB