Reading Error Messages (targetted at Pokemon Essentials users)
View Single Post
July 21st, 2010 (08:19 PM). Edited November 6th, 2010 by KitsuneKouta.
Join Date: Mar 2010
- If there are any particularly important errors you feel should be placed here, please send me the error and I'll put it here. If you have the solution for it, that would be great too, but I'll try to find it otherwise.
post errors that you are looking for solutions to here, those belong in the essentials thread (but it would be preferred if you could look here and try to solve it yourself first, instead of cluttering the essentials thread with repeated errors).
- If there is anything you would like to point out, or think should be clarified, be sure to tell me.
- If the solution is not here, then please be sure to format you error as I have done with the errors below before posting it in the Essentials thread. It makes it easier to read and keeps simple posts from taking up excessive space. In other words: it's courteous.
This is a common error when trying to add new Pokemon. The exact cause and solution are unknown, but you may be able to figure something out
The last three posts are what you're looking for.
Message: Bad line syntax (expected syntax like XXX=YYY)
File PBS/pokemon.txt, section 493, key WildItemRare
If you see either of these errors, upgrade to the latest version of essentials.
Message: undefined method `+' for nil:NilClass
Message: undefined method `true' for false:FalseClass
This error means that a map in connections.txt no longer exists (it was erased after setting up the connection, or was simply done wrong in the first place). The part in green is the map ID of the map you erased.
Message: File Data/
This error means you improperly set up a trainer, or are calling it wrong. The blue is the event ID, map ID, and map name respectively. The orange is the script you used to call the trainer.
Message: Script error within
Message: (eval):1:in `pbExecuteScript'The trainer 'PkMnTRAINER_X' is not valid. Please add the trainer
to the list of trainer types in the Editor. See the notes for
This error means you called a non-existent method in one of your scripts, usually by misspelling it. The event ID, map ID, and map name (respectively) are in blue. The script section (Main, PokemonUtilities, PokeBattle_ActualScene, etc.,) is in green (both the number and name), and the line you'll find the error on is in orange. The actual item that caused the error in this case is in yellow (I put pbMessages, instead of pbMessage to generate this error on a certain script).
Message: Script error within event
:in `pbSampleMethod'undefined method `
' for Kernel:Module
This error occurs from a syntax error in a script command used in an event. The colored line is an exact description given by the error itself of what to do.
Message: Script Error within event 9, map 38 (Lab):
Message: (eval):2:in 'pbExecuteScript' complie error
(eval):2: syntax error
shouldnt begin with
the end of the last line
This not only happens with trainer events, but also adding pokemon or items. For example, if you use:
or even something like:
it usually won't fit on one line. When it's too long, do this instead:
Notice that the first '
' is on the first line, and the rest is on the second line. It's as simple as that.
This error occurs from improperly configuring townmap.txt (often from using townmapgen.html improperly, since it confusing until you're used to it). You'll find the error when trying to access the location of a pokemon in the pokedex, looking at the townmap, or the pokegear map function:
Message: undefined method `x=' for nil:NilClass
SevenDragons was kind enough to give me a tip on this one. This is a problem that occurs when using regional dexes. This is his description of the cause of the error:
"In Pokemon Essentials when you are browsing through your Pokedex and looking at Pokemon, you will notice a peculiar function that has been scripted into the game. When you exit the menu and then come back to your Pokedex later you will notice that your cursor has remembered the last Pokemon you were looking at and will refresh your Pokedex to appear precisely on the most previous Pokemon you looked at. The error occurs when you have multiple regions in your game. If you are in one region (or using the National Pokedex) and you look at a Pokemon that has a higher number than the maximum number of another region, and then goto the region that has a lower number of Pokemon and open up your Pokedex the game will crash. This is because the window is trying to refresh the cursor to appear on a specie line that doesn't exist anymore."
To fix this error, go to PokemonPokedex and find this line:
and change it to this:
Sometimes you'll get a pop-up message telling you there's a syntax error. If the line it refers to is the last line of the script section, it is likely that an '
' clause or a closing bracket (such as this '
' or this '
') was forgotten, otherwise just check the line it tells you and you'll find the error (often as simple as misspelling something).
With Vista users, and error like this occurs: Failed to obtain a trial serial number from the nTiles server. To remedy this,
right click the
file (the orange icon with a dragon silhouette) and
Select the 'Compatibility' tab
check "Run this program in compatabilty mode for:," selecting
Windows XP (Service Pack 2)
option from the
drop down list
under priveledge level check "Run as Administrator."
Joined Mar 2010
View Public Profile
Send a private message to KitsuneKouta
Find all posts by KitsuneKouta
Find threads started by KitsuneKouta
Ignore Posts by KitsuneKouta