The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Creative Discussions > Game Development > Scripts & Tutorials
Sign Up Rules/FAQ Live Battle Blogs Mark Forums Read

Notices

Scripts & Tutorials This forum is for scripts and code, as well as all kinds of tutorials, software, tools and so forth. Remember to give credit!
The thread revival limit does not apply here.


Reply
Click here to go to the first staff post in this thread.  
Thread Tools
  #1    
Old July 21st, 2010, 08:19 PM
KitsuneKouta's Avatar
KitsuneKouta
狐 康太
 
Join Date: Mar 2010
Age: 23
Gender: Male
- 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.
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


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'


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'


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'


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'


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'
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:

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'


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 by KitsuneKouta; November 6th, 2010 at 07:38 PM.
Reply With Quote
  #2    
Old July 21st, 2010, 10:01 PM
lx_theo's Avatar
lx_theo
Game Developer
 
Join Date: Jun 2009
Gender: Male
Nature: Careful
You don't figure this would be better suited to the tutorial area? As it is structured in that same sense.
__________________

Reply With Quote
  #3    
Old July 22nd, 2010, 12:56 AM
Yuoaman's Avatar
Yuoaman
Legen- wait for it...
 
Join Date: Jul 2005
Location: Ontario, Canada
Age: 21
Gender: Male
Nature: Relaxed
Moved to the Tutorials and Guides section because it may fit better there.
__________________

Suit Up!
Awesome REGULAR MEMBER THAT OCCASIONALLY FREQUENTS FORUMS.

"pps new screenie" - No, really shut up yuoaman.

Haaave you read my LP?
Pokémon Quartz - The only one really worth reading.

What about my [Un]Abridged series?
Aquaman the Unabridged Parody Series - Language warning.

The Playbook: My Anime List | Raptr | BackLoggery | Twitter


83% of this signature is empty space.

-dary!
Reply With Quote
  #4    
Old July 22nd, 2010, 12:34 PM
KitsuneKouta's Avatar
KitsuneKouta
狐 康太
 
Join Date: Mar 2010
Age: 23
Gender: Male
Quote:
Originally Posted by Yuoaman View Post
Moved to the Tutorials and Guides section because it may fit better there.
Thanks for moving it, I wasn't really sure where it would fit.
Reply With Quote
  #5    
Old July 23rd, 2010, 04:20 AM
CAmerenc's Avatar
CAmerenc
Prof. Fire/Psychic Trainer
 
Join Date: May 2009
Location: Florida
Age: 19
Gender: Male
Nature: Naughty
Send a message via Windows Live Messenger to CAmerenc
I have the newest version of Essentials, yet i still get the
Spoiler:
---------------------------
Pokemon Essentials
---------------------------
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'

This exception was logged in ./errorlog.txt.
Press Ctrl+C to copy this message to the clipboard.
---------------------------
OK
---------------------------

error message when i go to a map that i have made "outdoor = true" in Metadata.. PLEASE help...

Last edited by CAmerenc; July 23rd, 2010 at 05:24 AM. Reason: fixed a typo
Reply With Quote
  #6    
Old July 23rd, 2010, 06:02 AM
KitsuneKouta's Avatar
KitsuneKouta
狐 康太
 
Join Date: Mar 2010
Age: 23
Gender: Male
Quote:
Originally Posted by CAmerenc View Post
I have the newest version of Essentials, yet i still get the
Spoiler:
---------------------------
Pokemon Essentials
---------------------------
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'

This exception was logged in ./errorlog.txt.
Press Ctrl+C to copy this message to the clipboard.
---------------------------
OK
---------------------------

error message when i go to a map that i have made "outdoor = true" in Metadata.. PLEASE help...
The only fix I've heard about so far is upgrading to a later version. If the newest doesn't work, you may want to try an older one. If nothing else, PM me and I'll send you mine.
__________________
Creator of the Harvest Moon Tool Kit (HMTK).

Anime/Manga fans can find me on MyAnimeList.net, as KitsuneKouta.
Reply With Quote
  #7    
Old August 2nd, 2010, 06:56 AM
victorspvl's Avatar
victorspvl
Beginning Trainer
 
Join Date: Aug 2007
Gender:
This is not an "error", but in the latest version of Pokémon Essentials the double battles don't work!( the opponent does not atack!) how I fix this?
__________________
Pokémon Silver Chronicles.

"Feel like a Pokémon Trainer."

wait...
Reply With Quote
  #8    
Old August 2nd, 2010, 09:01 AM
Maruno's Avatar
Maruno
Lead Dev of Pokémon Essentials
 
Join Date: Jan 2008
Location: England
Quote:
Originally Posted by victorspvl View Post
This is not an "error", but in the latest version of Pokémon Essentials the double battles don't work!( the opponent does not atack!) how I fix this?
If it's not an "error", why did you post it in here? Go look at the Essentials thread.
__________________
Reply With Quote
  #9    
Old August 3rd, 2010, 06:44 AM
victorspvl's Avatar
victorspvl
Beginning Trainer
 
Join Date: Aug 2007
Gender:
I post in the Essentials thread before but nobody helps me...
__________________
Pokémon Silver Chronicles.

"Feel like a Pokémon Trainer."

wait...
Reply With Quote
  #10    
Old August 3rd, 2010, 09:19 AM
Maruno's Avatar
Maruno
Lead Dev of Pokémon Essentials
 
Join Date: Jan 2008
Location: England
The only fix at the moment is to get an older version of Essentials. I put a link up for one.

I have a feeling you were told this already...
__________________
Reply With Quote
  #11    
Old September 4th, 2010, 10:30 AM
JakeClowd's Avatar
JakeClowd
the Silent Clowd
 
Join Date: May 2010
Location: AZ, USA
Age: 18
Gender: Male
Send a message via Skype™ to JakeClowd
Can somebody please pm me on an explanation of this one:

---------------------------
Pokemon Essentials
---------------------------
Exception: RuntimeError

Message: Field is not a positive integer

File PBS/pokemon.txt, section 0, key Evolutions





Compiler:175:in `csvPosInt!'

Compiler:2414:in `pbCompilePokemonData'

Compiler:2394:in `each'

Compiler:2394:in `pbCompilePokemonData'

Compiler:2391:in `each'

Compiler:2391:in `pbCompilePokemonData'

Compiler:3521:in `pbCompileAllData'

Compiler:3638



This exception was logged in errorlog.txt.

Press Ctrl+C to copy this message to the clipboard.
---------------------------
OK
---------------------------


I've gotten errors like this before. It means that I used the wrong variable in the evolution method. The problem is the part that says "pokemon.tst, section 0, Key evolutions"

I Don't Have A Section 0!
__________________

Who's in charge here anyway?
Game Freak or Nintendo


Reply With Quote
  #12    
Old September 8th, 2010, 01:05 PM
KitsuneKouta's Avatar
KitsuneKouta
狐 康太
 
Join Date: Mar 2010
Age: 23
Gender: Male
Quote:
Originally Posted by JakeClowd View Post
Can somebody please pm me on an explanation of this one:

Exception: RuntimeError
Message: Field is not a positive integer
File PBS/pokemon.txt, section 0, key Evolutions

Compiler:175:in `csvPosInt!'
Compiler:2414:in `pbCompilePokemonData'
Compiler:2394:in `each'
Compiler:2394:in `pbCompilePokemonData'
Compiler:2391:in `each'
Compiler:2391:in `pbCompilePokemonData'
Compiler:3521:in `pbCompileAllData'
Compiler:3638

I've gotten errors like this before. It means that I used the wrong variable in the evolution method. The problem is the part that says "pokemon.tst, section 0, Key evolutions"

I Don't Have A Section 0!
That's a strange error. What exactly did you change to cause the error? Did you properly set up the Evolutions section of any pokemon you added? Also, were you trying to implement any new evolution methods and using them for any pokemon you added?
__________________
Creator of the Harvest Moon Tool Kit (HMTK).

Anime/Manga fans can find me on MyAnimeList.net, as KitsuneKouta.
Reply With Quote
  #13    
Old September 23rd, 2010, 12:42 AM
Urugamosu's Avatar
Urugamosu
Smiles are free, you know~
 
Join Date: Sep 2008
Location: Perth, Australia
Age: 19
Gender: Male
Nature: Gentle
I need some help with this one ↓


Exception: Errno::EACCES

Message: Permission denied - Data/move2anim.dat

Compiler:3869:in `save_data'

Compiler:3869:in `pbCompileAnimations'

Compiler:3930:in `pbCompileAllData'

Compiler:4027
__________________

Journey's, something a person will need once in a lifetime.
ProfileYouTubeRedditPokeCommunityBlog
Reply With Quote
  #14    
Old September 24th, 2010, 04:02 AM
KitsuneKouta's Avatar
KitsuneKouta
狐 康太
 
Join Date: Mar 2010
Age: 23
Gender: Male
Quote:
Originally Posted by westfieldfishblue View Post
I need some help with this one ↓


Exception: Errno::EACCES

Message: Permission denied - Data/move2anim.dat

Compiler:3869:in `save_data'

Compiler:3869:in `pbCompileAnimations'

Compiler:3930:in `pbCompileAllData'

Compiler:4027
That error's been brought up a few times, but so far no one has been able to answer it. When does the error come up, and did it come up after a recent change that you can think of?
__________________
Creator of the Harvest Moon Tool Kit (HMTK).

Anime/Manga fans can find me on MyAnimeList.net, as KitsuneKouta.
Reply With Quote
  #15    
Old January 22nd, 2011, 01:01 PM
pikachu999
Beginning Trainer
 
Join Date: Jan 2011
---------------------------
Pokemon Silver Chronicles 2.0
---------------------------
Exception: NoMethodError

Message: undefined method `[]' for nil:NilClass

PokemonBag:115:in `refresh'

PokemonBag:106:in `each'

PokemonBag:106:in `refresh'

PokemonBag:41:in `initialize'

PokemonBag:453:in `new'

PokemonBag:453:in `pbStartScene'

PokemonBag:1148:in `pbStartScreen'

PokemonMenu:164:in `pbStartPokemonMenu'

PokemonMenu:163:in `pbFadeOutIn'

PokemonMenu:163:in `pbStartPokemonMenu'



This exception was logged in errorlog.txt.

Press Ctrl+C to copy this message to the clipboard.
---------------------------
OK
---------------------------
Reply With Quote
  #16    
Old January 22nd, 2011, 04:58 PM
Cilerba
the hearts of lonely people
 
Join Date: Feb 2010
Location: Massachusetts
Age: 17
Gender: Male
Nature: Quiet
This isn't the right spot to be posting your error messages, and also, you posted this in a thread that's over two-months. I'm going to have to close this thread.

-locked-
__________________
A MODEST PROPOSAL
http://www.pokecommunity.com/showthread.php?p=7766537
Reply With Quote
Reply
Quick Reply

Sponsored Links


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Minimum Characters Per Post: 25



All times are UTC -8. The time now is 07:52 AM.


Style by Nymphadora, artwork by Sa-Dui.
Like our Facebook Page Follow us on Twitter © 2002 - 2014 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2014 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.