filename=nil error

Kaleidophoenix

Novice
Member
Joined
Jul 14, 2017
Posts
17
So I just recently downloaded RPGMaker and Pokemon Essentials, and started making a game. I'm not familiar with much of the scripts at all. I managed to make the surge abilities that the tapus have, and I've done a little work in custom tilesets. I just installed the Defining Trainer's EVs script, and I did some other tiling work, then got this error:

---------------------------
Exception: NameError
Message: uninitialized constant PokemonLoadScene::TrainerWalkingCharSprite
PScreen_Load:164:in `pbSetParty'
PScreen_Load:323:in `pbStartLoadScreen'
Main:6:in `main'
Main:49:in `mainFunctionDebug'
Main:27:in `mainFunction'
Main:27:in `pbCriticalCode'
Main:27:in `mainFunction'
Main:59
Main:58:in `loop'
Main:67
---------------------------

Help?
 

Vendily

Cooltrainer
Member
Joined
May 16, 2017
Posts
130
You didn't accidentally remove all of section NPC_Trainers when you installed the Trainer EV's script, did you?
Because When I comment out class TrainerWalkingCharSprite, near the bottom of that section in a clean v16.2, I got the exact same error.
Make sure you follow the instructions carefully, because you haven't done that here.
 

Kaleidophoenix

Novice
Member
Joined
Jul 14, 2017
Posts
17
That might be it. I might have mixed up where the bottoms of the scripts ended. Unfortunately I don't have access to my computer over the weekend, but I'll see how that goes on Monday. Thanks for the response.
 

Kaleidophoenix

Novice
Member
Joined
Jul 14, 2017
Posts
17
I did manage to work out that other error. But after I finished inputting some custom items I got this error:

Exception: RuntimeError
Message: filename is nil
SpriteWindow:218:in `initialize'
Pokemon_Sprites:188:in `new'
Pokemon_Sprites:188:in `pokemon='
Pokemon_Sprites:174:in `initialize'
PScreen_Load:172:in `new'
PScreen_Load:172:in `pbSetParty'
PScreen_Load:171:in `each'
PScreen_Load:171:in `pbSetParty'
PScreen_Load:323:in `pbStartLoadScreen'
Main:6:in `main'

I commented out the items I'd worked on, and the error still showed up. I think it has something to do with an icon error, but I'm not entirely sure. Looking at where the error is occurring hasn't gotten my any farther than that. Based on that, where's a good place to start debugging this?
 

Vendily

Cooltrainer
Member
Joined
May 16, 2017
Posts
130
Well, the error is occurring on the Load Screen, specifically on a pokemon's icon sprite.
My guess is you removed a pokemon, but still had a save file that has the now removed pokemon.
Delete your save file, so you can continue and make a new game. Then, just to make sure, Use the Debug menu to fill the boxes, and then take a look at all of them, just incase you've accidentally deleted an icon, and it's not just an error with an old save.
 
Top