PDA

View Full Version : [Question] Error....!!!!


DuBDraK
April 11th, 2012, 11:07 AM
Show i made my own trainer or it would be blank so i set the image in the database try to play it and i got this error: Exception: NameError
Message: undefined local variable or method `value' for nil:NilClass
Compiler:1016:in `pbCheckByte'
Compiler:1126:in `pbCompileMoves'
Compiler:1074:in `pbCompilerEachPreppedLine'
Compiler:569:in `each_line'
Compiler:569:in `pbCompilerEachPreppedLine'
Compiler:566:in `open'
Compiler:566:in `pbCompilerEachPreppedLine'
Compiler:1074:in `pbCompileMoves'
Compiler:3760:in `pbCompileAllData'
Compiler:3885

so i deleted it from the database but i still GET THIS F****** error

Nickalooose
April 11th, 2012, 01:26 PM
What are you trying to create?

An NPC trainer or your main character.

DuBDraK
April 12th, 2012, 07:44 AM
Npc trainer. I put it in the map called Carachters as trainer083_

Nickalooose
April 12th, 2012, 11:14 PM
I'm not fully understading this...

So you created an NPC character on your map... Then, in trainers.txt, you put something like this:


#-------------------
HIKER
Jim
2
BULBASAUR,10,10,,TACKLE,GROWL,,,false,false
CHARMANDER,10,10,,SCRATCH,GROWL,,,false,false
#-------------------
Right?

Then, within that NPC event, you gave him the conditional branch:


Script: pbTrainerBattle(PBTrainers::HIKER,"Jim",_I("I enjoyed it."),false,0,false)
Right?

Then, you removed:


#-------------------
HIKER
Jim
2
BULBASAUR,10,10,,TACKLE,GROWL,,,false,false
CHARMANDER,10,10,,SCRATCH,GROWL,,,false,false
#-------------------
This, from trainers.txt...? I think what you done, is you only removed part of the trainer or haven't given the NPC a name, like this:


#-------------------
HIKER

2
BULBASAUR,10,10,,TACKLE,GROWL,,,false,false
CHARMANDER,10,10,,SCRATCH,GROWL,,,false,false
#-------------------

Script: pbTrainerBattle(PBTrainers::HIKER,"",_I("I enjoyed it."),false,0,false)
Notice under HIKER, the name is missing or within the event itself, again, the name is missing... As far as I can read, the game cannot find the value, called, Name...

That's my only answer, without more information... Unless anybody else can help you out, this could possibly be your problem!