Skeetendo

’Cause all games were better on the GBC

You are not logged in.

  • Index
  • → Help/Question
  • → Bank overflow with evos_attacks. I want to increase movepools..

#1 2016-09-25 19:50:11

henkiebobo
Member
Registered: 2016-07-14
Post 7/13

Bank overflow with evos_attacks. I want to increase movepools..

Hello!

Okay, so I am editing pokecrystal very lightly. I'm adding sprites and movesets of my own drawn pokemon to the game. The movesets, however, have more moves than regular pokemon and I have now come to a halt where adding more moves will cause it to fail to load into the bank (bank $10 to be exact).

I know that the pokedex entries are divided into 4 different banks, I was wondering if I could do that with the moves aswell? Or if I have to, I could delete the entries for the pokedex entirely if thats what it takes, I prefer bigger movepools.

If there are other things I can delete without screwing everthing up, Im all for it. We eventually want around 200 pokemon, so is there a way to delete the 50 that will remain aswell? That might also free up some space?

Offline

#2 2016-09-25 20:33:09

Crystal_
Member
From: Spain
Registered: 2012-09-16
Post 400/430
Website

Re: Bank overflow with evos_attacks. I want to increase movepools..

Pretty sure you can just move "engine/pokedex.asm" to another bank

Offline

#3 2016-09-29 00:07:10

henkiebobo
Member
Registered: 2016-07-14
Post 8/13

Re: Bank overflow with evos_attacks. I want to increase movepools..

Ah.. I thought it worked becuase it didn't error but now my moves on the pokemon themselves are gone.. I just moved the pokedex.asm and evolve.asm to a bank at the bottom, leaving just the battle/moves/moves.asm in there and the EVOS_ATTACKS EQU $10 is also still intact...

So I guess messing with the banks is kind of dangerous?

Offline

#4 2016-09-29 03:48:08

comet
Member
Registered: 2012-04-09
Post 664/679

Re: Bank overflow with evos_attacks. I want to increase movepools..

Not really. Are you sure you left evos_attacks.asm in the same place?

Offline

#5 2016-09-29 10:10:23

henkiebobo
Member
Registered: 2016-07-14
Post 9/13

Re: Bank overflow with evos_attacks. I want to increase movepools..

Yea.. Like I said, I only moved the pokedex.asm and evolve.asm. evos_attacks.asm is still in the data folder, and EVOS_ATTACK EQU $10 in contents.asm is still there. I also noticed that changing EQU $10 to EQU $25 or something doesn't seem to work.

EDIT: I found out that when I just removed the BANK[$10] from main.asm it would still work, the moves would be ingame. But then when I add the moves in that caused the overflow, the moves dissapear again... I don't get this :/

EDIT 2: It seems to work now. Instead of just removing BANK[$10] I also placed it inbetween BANK[24] and BANK[28] in main.asm. For some reason this worked... But adding BANK[$25] or BANK[$26] to it makes it not work again.

Last edited by henkiebobo (2016-09-29 15:09:38)

Offline

#6 2016-09-29 18:00:09

comet
Member
Registered: 2012-04-09
Post 665/679

Re: Bank overflow with evos_attacks. I want to increase movepools..

Just leave the BANK part out if you don't care where it goes. rgblink will find free space for you.

SECTION "whatever you want", ROMX

INCLUDE "engine/pokedex.asm"

Notably bank 0x25 contains a lot of map stuff. Randomly using a bank that is probably taken is not a good idea, since it will be almost full. But it shouldn't lead to bugs, unless pokedex.asm is codependent with some other file in the old bank (it doesn't look that way since it eventually worked in some other bank, but this will bite you at some point if you are rearranging existing data).

edit: You could instead do the same thing to the EVOS_ATTACKS section. The banks are only statically defined so that it matches the original rom.

Last edited by comet (2016-09-29 18:06:13)

Offline

#7 2016-09-29 21:30:53

henkiebobo
Member
Registered: 2016-07-14
Post 10/13

Re: Bank overflow with evos_attacks. I want to increase movepools..

Oh yea, I guess it does work now, I also tested the pokedex and it still works ingame.

One more question, is it possible to either split up the evos attacks into multiple ASM files, or use a single ones moves multiple times? I have evolutions use the exact same moveset when leveling up, but I can't just put both names above it since the previous evolution ofourse has the evolution tag alongside it. But if I could do that, I wouldn't have to worry about space ever.

EDIT: yea, it stopped working with the moves again when I continued adding more excessive movesets.. The .asm has about 3800 lines right now (I didnt take out the older movesets just yet, but they are in total probably less than what I eventually want to enter).
So if there is an option to split the file up or use movesets over, I'd love to hear it :)

EDIT 2: I just tested, and removing BANK[$10] from main.asm does exactly the same as removing BANK[EVOS_ATTACKS] from evos_attacks.asm. So I guess I just maxed out the bank?

Last edited by henkiebobo (2016-09-30 16:18:25)

Offline

  • Index
  • → Help/Question
  • → Bank overflow with evos_attacks. I want to increase movepools..

Board footer

Powered by FluxBB