KitsuneKouta
狐 康太
- 442
- Posts
- 15
- Years
- Seen Nov 20, 2017
- 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.
- Please, do not 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 here. The last three posts are what you're looking for.
If you see either of these errors, upgrade to the latest version of essentials.
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.
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.
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).
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.
This not only happens with trainer events, but also adding pokemon or items. For example, if you use:
Kernel.pbReceiveItem(PBItems::POTION)
or even something like:
Kernel.pbAddPokemon(PBSpecies::BULBASAUR),
it usually won't fit on one line. When it's too long, do this instead:
Kernel.pbAddPokemon(
PBSpecies::BULBASAUR)
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:
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:
To fix this error, go to PokemonPokedex and find this line: pbRefreshDexList($PokemonGlobal.pokedexIndex) and change it to this: pbRefreshDexList($PokemonGlobal.pokedexIndex=0)
OTHER ERRORS:
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 'end' 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, go to C:\Program Files\Enterbrain\RPGXP, and right click the RPGXP.exe file (the orange icon with a dragon silhouette) and click 'Properties.' Select the 'Compatibility' tab and check "Run this program in compatabilty mode for:," selecting the Windows XP (Service Pack 2) option from the drop down list. Then under priveledge level check "Run as Administrator."
- Please, do not 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 here. The last three posts are what you're looking for.
Spoiler:
Exception: RuntimeError
Message: Bad line syntax (expected syntax like XXX=YYY)
File PBS/pokemon.txt, section 493, key WildItemRare
Compiler:1586:in `pbEachFileSectionEx'
Compiler:1569:in `each_line'
Compiler:1569:in `pbEachFileSectionEx'
Compiler:1607:in `pbEachFileSection'
Compiler:2165:in `pbCompilePokemonData'
Compiler:2163:in `open'
Compiler:2163:in `pbCompilePokemonData'
Compiler:3908:in `pbCompileAllData'
Compiler:4034
Message: Bad line syntax (expected syntax like XXX=YYY)
File PBS/pokemon.txt, section 493, key WildItemRare
Compiler:1586:in `pbEachFileSectionEx'
Compiler:1569:in `each_line'
Compiler:1569:in `pbEachFileSectionEx'
Compiler:1607:in `pbEachFileSection'
Compiler:2165:in `pbCompilePokemonData'
Compiler:2163:in `open'
Compiler:2163:in `pbCompilePokemonData'
Compiler:3908:in `pbCompileAllData'
Compiler:4034
If you see either of these errors, upgrade to the latest version of essentials.
Spoiler:
Exception: NoMethodError
Message: undefined method `+' for nil:NilClass
PokemonUtilities:289:in `getRoughLatLon'
PokemonUtilities:386:in `getLatLong'
PokemonUtilities:586:in `getToneInternal'
PokemonUtilities:584:in `each'
PokemonUtilities:584:in `getToneInternal'
PokemonUtilities:353:in `getTone'
PokemonUtilities:2095:in `pbDayNightTint'
Sprite_Character:124:in `update_or'
PerspectiveTilemap:408:in `shadow_update'
Shadow:179:in `update'
---------------------------------------------------------
Exception: NoMethodError
Message: undefined method `true' for false:FalseClass
PokeBattle_Battle:523:in `pbSetSeen'
PokeBattle_Battle:638:in `pbStartBattleCore'
PokeBattle_Battle:549:in `pbStartBattle'
PokemonField:753:in `pbWildBattle'
PokemonField:752:in `pbSceneStandby'
PokemonField:754:in `pbWildBattle'
PokemonField:751:in `pbBattleAnimation'
PokemonField:751:in `pbWildBattle'
PokemonField:1069:in `pbBattleOnStepTaken'
PokemonField:1092:in `pbOnStepTaken'
Message: undefined method `+' for nil:NilClass
PokemonUtilities:289:in `getRoughLatLon'
PokemonUtilities:386:in `getLatLong'
PokemonUtilities:586:in `getToneInternal'
PokemonUtilities:584:in `each'
PokemonUtilities:584:in `getToneInternal'
PokemonUtilities:353:in `getTone'
PokemonUtilities:2095:in `pbDayNightTint'
Sprite_Character:124:in `update_or'
PerspectiveTilemap:408:in `shadow_update'
Shadow:179:in `update'
---------------------------------------------------------
Exception: NoMethodError
Message: undefined method `true' for false:FalseClass
PokeBattle_Battle:523:in `pbSetSeen'
PokeBattle_Battle:638:in `pbStartBattleCore'
PokeBattle_Battle:549:in `pbStartBattle'
PokemonField:753:in `pbWildBattle'
PokemonField:752:in `pbSceneStandby'
PokemonField:754:in `pbWildBattle'
PokemonField:751:in `pbBattleAnimation'
PokemonField:751:in `pbWildBattle'
PokemonField:1069:in `pbBattleOnStepTaken'
PokemonField:1092:in `pbOnStepTaken'
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.
Spoiler:
Exception: Errno::ENOENT
Message: File Data/MapXXX.rxdata not found.
Game_Map:52:in `load_data'
Game_Map:52:in `setup'
PokemonMap:710:in `getMap'
PokemonMap:837:in `setMapsInRange'
PokemonMap:831:in `each'
PokemonMap:831:in `setMapsInRange'
Resolution:17:in `display_x='
Resolution:9:in `center'
Game_Player:410:in `moveto'
Scene_Map:216:in `transfer_player'
Message: File Data/MapXXX.rxdata not found.
Game_Map:52:in `load_data'
Game_Map:52:in `setup'
PokemonMap:710:in `getMap'
PokemonMap:837:in `setMapsInRange'
PokemonMap:831:in `each'
PokemonMap:831:in `setMapsInRange'
Resolution:17:in `display_x='
Resolution:9:in `center'
Game_Player:410:in `moveto'
Scene_Map:216:in `transfer_player'
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.
Spoiler:
Exception: RuntimeError
Message: Script error within event X, map X (Map X):
Exception: NameError
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
more information.
***Full script:
pbTrainerBattle(PBTrainers::PkMnTRAINER_X,"X",_I("..."),false,0,true)
Interpreter:239:in `pbExecuteScript'
Interpreter:785:in `eval'
Interpreter:239:in `pbExecuteScript'
Interpreter:785:in `command_111'
Interpreter:318:in `execute_command'
Interpreter:191:in `update'
Interpreter:104:in `loop'
Interpreter:196:in `update'
Scene_Map:96:in `update'
Scene_Map:94:in `loop'
Interpreter:274:in `pbExecuteScript'
Interpreter:785:in `command_111'
Interpreter:318:in `execute_command'
Interpreter:191:in `update'
Interpreter:104:in `loop'
Interpreter:196:in `update'
Scene_Map:96:in `update'
Scene_Map:94:in `loop'
Scene_Map:107:in `update'
Scene_Map:63:in `main'
Message: Script error within event X, map X (Map X):
Exception: NameError
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
more information.
***Full script:
pbTrainerBattle(PBTrainers::PkMnTRAINER_X,"X",_I("..."),false,0,true)
Interpreter:239:in `pbExecuteScript'
Interpreter:785:in `eval'
Interpreter:239:in `pbExecuteScript'
Interpreter:785:in `command_111'
Interpreter:318:in `execute_command'
Interpreter:191:in `update'
Interpreter:104:in `loop'
Interpreter:196:in `update'
Scene_Map:96:in `update'
Scene_Map:94:in `loop'
Interpreter:274:in `pbExecuteScript'
Interpreter:785:in `command_111'
Interpreter:318:in `execute_command'
Interpreter:191:in `update'
Interpreter:104:in `loop'
Interpreter:196:in `update'
Scene_Map:96:in `update'
Scene_Map:94:in `loop'
Scene_Map:107:in `update'
Scene_Map:63:in `main'
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).
Spoiler:
Exception: RuntimeError
Message: Script error within event X, map X (Map X):
Exception: NoMethodError
Message: Section147:24:in `pbSampleMethod'undefined method `pbMessages' for Kernel:Module
***Full script:
pbSampeScript
Interpreter:239:in `pbExecuteScript'
Sample Scripts:43:in `pbSampleScript'
Sample Scripts:27:in `pbSampleMethod'
Sample Scripts:43:in `pbSampleScript'
Sample Scripts:27:in `pbSampleMethod'
Sample Scripts:43:in `pbSampleScript'
Sample Scripts:27:in `pbSampleMethod'
Sample Scripts:43:in `pbSampleScript'
Sample Scripts:27:in `pbSampleMethod'
Sample Scripts:43:in `pbSampleScript'
Interpreter:274:in `pbExecuteScript'
Interpreter:1583:in `command_355'
Interpreter:492:in `execute_command'
Interpreter:191:in `update'
Interpreter:104:in `loop'
Interpreter:196:in `update'
Scene_Map:96:in `update'
Scene_Map:94:in `loop'
Scene_Map:107:in `update'
Scene_Map:63:in `main'
Message: Script error within event X, map X (Map X):
Exception: NoMethodError
Message: Section147:24:in `pbSampleMethod'undefined method `pbMessages' for Kernel:Module
***Full script:
pbSampeScript
Interpreter:239:in `pbExecuteScript'
Sample Scripts:43:in `pbSampleScript'
Sample Scripts:27:in `pbSampleMethod'
Sample Scripts:43:in `pbSampleScript'
Sample Scripts:27:in `pbSampleMethod'
Sample Scripts:43:in `pbSampleScript'
Sample Scripts:27:in `pbSampleMethod'
Sample Scripts:43:in `pbSampleScript'
Sample Scripts:27:in `pbSampleMethod'
Sample Scripts:43:in `pbSampleScript'
Interpreter:274:in `pbExecuteScript'
Interpreter:1583:in `command_355'
Interpreter:492:in `execute_command'
Interpreter:191:in `update'
Interpreter:104:in `loop'
Interpreter:196:in `update'
Scene_Map:96:in `update'
Scene_Map:94:in `loop'
Scene_Map:107:in `update'
Scene_Map:63:in `main'
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.
Spoiler:
Exception: RuntimeError
Message: Script Error within event 9, map 38 (Lab):
Exception: SyntaxError
Message: (eval):2:in 'pbExecuteScript' complie error
(eval):2: syntax error
(PBSpecies::SPEAROW,20,3)
^
***Line '(PBSpecies::SPEAROW,20,3)' shouldnt begin with '(', try putting '(' at
the end of the last line
***Full script:
pbWildBattle
(PBSpecies::SPEAROW,20,3)
Interpreter:247:in 'pbExecuteScript'
Interpreter:1583:in 'command_355'
Interpreter:492:in 'execute_command'
Interpreter:191:in 'update'
Interpreter:104:in 'loop'
Interpreter:196:in 'update'
Scene_map:96:in 'update'
Scene_map:94:in 'loop'
Scene_map:107:in 'update'
Scene_map:63:in 'main'
Message: Script Error within event 9, map 38 (Lab):
Exception: SyntaxError
Message: (eval):2:in 'pbExecuteScript' complie error
(eval):2: syntax error
(PBSpecies::SPEAROW,20,3)
^
***Line '(PBSpecies::SPEAROW,20,3)' shouldnt begin with '(', try putting '(' at
the end of the last line
***Full script:
pbWildBattle
(PBSpecies::SPEAROW,20,3)
Interpreter:247:in 'pbExecuteScript'
Interpreter:1583:in 'command_355'
Interpreter:492:in 'execute_command'
Interpreter:191:in 'update'
Interpreter:104:in 'loop'
Interpreter:196:in 'update'
Scene_map:96:in 'update'
Scene_map:94:in 'loop'
Scene_map:107:in 'update'
Scene_map:63:in 'main'
Kernel.pbReceiveItem(PBItems::POTION)
or even something like:
Kernel.pbAddPokemon(PBSpecies::BULBASAUR),
it usually won't fit on one line. When it's too long, do this instead:
Kernel.pbAddPokemon(
PBSpecies::BULBASAUR)
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:
Spoiler:
Exception: NoMethodError
Message: undefined method `x=' for nil:NilClass
PokemonRegionMap:195:in `pbMapScene'
PokemonRegionMap:282:in `pbStartScreen'
Pokegear:139:in `update_command'
Pokegear:136:in `pbFadeOutIn'
Pokegear:136:in `update_command'
Pokegear:117:in `update'
Pokegear:65:in `main'
Pokegear:62:in `loop'
Pokegear:69:in `main'
PokemonUtilities:1936:in `pbLoadRpgxpScene'
Message: undefined method `x=' for nil:NilClass
PokemonRegionMap:195:in `pbMapScene'
PokemonRegionMap:282:in `pbStartScreen'
Pokegear:139:in `update_command'
Pokegear:136:in `pbFadeOutIn'
Pokegear:136:in `update_command'
Pokegear:117:in `update'
Pokegear:65:in `main'
Pokegear:62:in `loop'
Pokegear:69:in `main'
PokemonUtilities:1936:in `pbLoadRpgxpScene'
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:
Spoiler:
"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: pbRefreshDexList($PokemonGlobal.pokedexIndex) and change it to this: pbRefreshDexList($PokemonGlobal.pokedexIndex=0)
OTHER ERRORS:
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 'end' 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, go to C:\Program Files\Enterbrain\RPGXP, and right click the RPGXP.exe file (the orange icon with a dragon silhouette) and click 'Properties.' Select the 'Compatibility' tab and check "Run this program in compatabilty mode for:," selecting the Windows XP (Service Pack 2) option from the drop down list. Then under priveledge level check "Run as Administrator."
Last edited: