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.

TrollandToad.com
Reply
 
Thread Tools
  #1    
Old July 21st, 2010 (8:19 PM). Edited November 6th, 2010 by KitsuneKouta.
KitsuneKouta's Avatar
KitsuneKouta KitsuneKouta is offline
狐 康太
     
    Join Date: Mar 2010
    Age: 26
    Gender: Male
    Posts: 442
    - 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."
    Reply With Quote

    Relevant Advertising!

      #2    
    Old July 21st, 2010 (10:01 PM).
    lx_theo's Avatar
    lx_theo lx_theo is offline
    Game Developer
       
      Join Date: Jun 2009
      Gender: Male
      Nature: Careful
      Posts: 969
      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 Yuoaman is offline
      Legen- wait for it...
      • Silver Tier
       
      Join Date: Jul 2005
      Location: Ontario, Canada
      Age: 25
      Gender: Male
      Nature: Relaxed
      Posts: 4,675
      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 of mine 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 KitsuneKouta is offline
      狐 康太
         
        Join Date: Mar 2010
        Age: 26
        Gender: Male
        Posts: 442
        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 (4:20 AM). Edited July 23rd, 2010 by CAmerenc.
        CAmerenc's Avatar
        CAmerenc CAmerenc is offline
        Prof. Fire/Psychic Trainer
           
          Join Date: May 2009
          Location: Florida
          Age: 23
          Gender: Male
          Nature: Naughty
          Posts: 5
          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...
          Reply With Quote
            #6    
          Old July 23rd, 2010 (6:02 AM).
          KitsuneKouta's Avatar
          KitsuneKouta KitsuneKouta is offline
          狐 康太
             
            Join Date: Mar 2010
            Age: 26
            Gender: Male
            Posts: 442
            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 (6:56 AM).
            victorspvl's Avatar
            victorspvl victorspvl is offline
               
              Join Date: Aug 2007
              Gender:
              Posts: 93
              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 (9:01 AM).
              Maruno's Avatar
              Maruno Maruno is offline
              Lead Dev of Pokémon Essentials
                 
                Join Date: Jan 2008
                Location: England
                Posts: 5,189
                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.
                __________________
                Go to the Pokémon Essentials Wiki

                | Downloads | Tutorials | Fangames |
                | All Animations Project |

                Follow me on Twitter: @maruno42


                Reply With Quote
                  #9    
                Old August 3rd, 2010 (6:44 AM).
                victorspvl's Avatar
                victorspvl victorspvl is offline
                   
                  Join Date: Aug 2007
                  Gender:
                  Posts: 93
                  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 (9:19 AM).
                  Maruno's Avatar
                  Maruno Maruno is offline
                  Lead Dev of Pokémon Essentials
                     
                    Join Date: Jan 2008
                    Location: England
                    Posts: 5,189
                    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...
                    __________________
                    Go to the Pokémon Essentials Wiki

                    | Downloads | Tutorials | Fangames |
                    | All Animations Project |

                    Follow me on Twitter: @maruno42


                    Reply With Quote
                      #11    
                    Old September 4th, 2010 (10:30 AM).
                    JakeClowd's Avatar
                    JakeClowd JakeClowd is offline
                    the Silent Clowd
                       
                      Join Date: May 2010
                      Location: AZ, USA
                      Age: 21
                      Gender: Male
                      Posts: 23
                      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 (1:05 PM).
                      KitsuneKouta's Avatar
                      KitsuneKouta KitsuneKouta is offline
                      狐 康太
                         
                        Join Date: Mar 2010
                        Age: 26
                        Gender: Male
                        Posts: 442
                        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 Urugamosu is offline
                        Happy, and Searching.
                        • Crystal Tier
                         
                        Join Date: Sep 2008
                        Location: Perth, Australia
                        Gender: Male
                        Nature: Gentle
                        Posts: 556
                        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
                        __________________

                        Springtime, the sun is back and the breeze to accompany it..
                        Reply With Quote
                          #14    
                        Old September 24th, 2010 (4:02 AM).
                        KitsuneKouta's Avatar
                        KitsuneKouta KitsuneKouta is offline
                        狐 康太
                           
                          Join Date: Mar 2010
                          Age: 26
                          Gender: Male
                          Posts: 442
                          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 (1:01 PM).
                          pikachu999 pikachu999 is offline
                             
                            Join Date: Jan 2011
                            Posts: 1
                            ---------------------------
                            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 (4:58 PM).
                            Cilerba Cilerba is offline
                            the hearts of lonely people
                            • Silver Tier
                             
                            Join Date: Feb 2010
                            Location: Massachusetts
                            Age: 21
                            Gender: Male
                            Nature: Quiet
                            Posts: 1,171
                            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-
                            __________________
                            Reply With Quote
                            Reply

                            Quick Reply

                            Join the conversation!

                            Create an account to post a reply in this thread, participate in other discussions, and more!

                            Create a PokéCommunity Account

                            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

                            Forum Jump


                            All times are GMT -8. The time now is 1:11 AM.