Snapper_Kins
Meandering Trainer
- 7
- Posts
- 14
- Years
- Seen Jul 23, 2023
Hello all, I could really use some help.
I'm experiencing a problem with the bag, and in order to solve the second problem (that I'll cover below) I need to figure out what's wrong with the bag scripts first. I went to go fill my bag in the Debug Menu and I got the error below. I had previously filled my bag, and thought maybe there was some odd reason I couldn't fill my bag when it was previously filled so I emptied it (which worked) and then tried to fill it again and got the same error. I am able to add individual items, just not fill the bag. Can anyone tell me what the error is? (I've looked at the lines of code it references, I haven't adjusted any of them so I assume it's something else I did):
Secondly, I discovered this error when trying to modify Bag pockets (I wanted to add an additional bag Pocket). Instead of adding one, I've decided that I want to change an existing bag Pocket to contain different items. What all would I have to adjust to change the "Mail" Pocket into a "Mega Stone" Pocket (I know I would have to change the pocket numbers in the items.txt PBS and change the name of the pocket in settings, but are there any scripts that need to be modified as well?
Thanks for any help on both questions!
I'm experiencing a problem with the bag, and in order to solve the second problem (that I'll cover below) I need to figure out what's wrong with the bag scripts first. I went to go fill my bag in the Debug Menu and I got the error below. I had previously filled my bag, and thought maybe there was some odd reason I couldn't fill my bag when it was previously filled so I emptied it (which worked) and then tried to fill it again and got the same error. I am able to add individual items, just not fill the bag. Can anyone tell me what the error is? (I've looked at the lines of code it references, I haven't adjusted any of them so I assume it's something else I did):
Code:
---------------------------
Pokemon AlphaOnyx
---------------------------
Exception: NoMethodError
Message: undefined method `length' for nil:NilClass
PokemonBag:462:in `pbStoreItem'
PokemonDebug:383:in `pbDebugMenu'
PokemonDebug:382:in `each'
PokemonDebug:382:in `pbDebugMenu'
PokemonDebug:297:in `loop'
PokemonDebug:823:in `pbDebugMenu'
PokemonPauseMenu:244:in `pbStartPokemonMenu'
PokemonPauseMenu:243:in `pbFadeOutIn'
PokemonPauseMenu:243:in `pbStartPokemonMenu'
PokemonPauseMenu:144:in `loop'
---------------------------
Secondly, I discovered this error when trying to modify Bag pockets (I wanted to add an additional bag Pocket). Instead of adding one, I've decided that I want to change an existing bag Pocket to contain different items. What all would I have to adjust to change the "Mail" Pocket into a "Mega Stone" Pocket (I know I would have to change the pocket numbers in the items.txt PBS and change the name of the pocket in settings, but are there any scripts that need to be modified as well?
Thanks for any help on both questions!