Pokémon Essentials All questions and discussion about Pokémon Essentials, the Pokémon game kit for RPG Maker XP, go in here. Also contains links to the latest downloads and the Essentials Wiki.

TrollandToad.com
Reply
 
Thread Tools
  #1    
Old March 11th, 2013 (10:22 AM).
Gusano2314's Avatar
Gusano2314 Gusano2314 is offline
Worm Launcher :U
     
    Join Date: Feb 2013
    Gender: Male
    Posts: 20
    Message: Undefined encounter type , expected one of the following:
    ["Land", "Cave", "Water", "RockSmash", "OldRod", "GoodRod", "SuperRod", "HeadbuttLow", "HeadbuttHigh", "LandMorning", "LandDay", "LandNight", "BugContest"]
    File PBS/encounters.txt, line 1
    

    Compiler:1096:in `pbCompileEncounters'
    Compiler:4064:in `pbCompileAllData'
    Compiler:4170
    i have this problem after editing the encounters file
    i used the editor to make the encounters, and i follow the example encounters.txt
    Spoiler:
    ######################
    002 # Lappet Town
    25,25,10
    Water
    TENTACOOL,14,19
    MANTYKE,15,16
    REMORAID,14,16
    REMORAID,14,16
    REMORAID,14,16
    OldRod
    MAGIKARP,16,19
    MAGIKARP,16,19
    GoodRod
    BARBOACH,17,18
    SHELLDER,16,19
    KRABBY,15,16
    SuperRod
    CHINCHOU,17,19
    QWILFISH,16,19
    CORSOLA,15,18
    STARYU,15,17
    STARYU,15,17
    ######################

    and this is my encounters.txt(yes, am making a touhoumon game with rpg maker :U)
    Spoiler:
    ######################
    008 # Ruta Baka
    25,10,10
    Land
    CNAZRIN,3
    CTOKIKO,3
    CNAZRIN,3
    CTOKIKO,3
    CNAZRIN,3
    CTOKIKO,3
    CNAZRIN,3
    CTOKIKO,3
    CNAZRIN,4
    CTOKIKO,4
    CNAZRIN,4
    CTOKIKO,4
    ######################

    i cannot belive this, before editing some lines in the editor the game didnt throws me that error. help!
    Reply With Quote

    Relevant Advertising!

      #2    
    Old March 11th, 2013 (5:08 PM).
    Yusshin's Avatar
    Yusshin Yusshin is offline
    ♪ Yggdrasil ♪
       
      Join Date: Jul 2009
      Location: Quebec, Canada
      Age: 25
      Nature: Brave
      Posts: 2,424
      I'm now having the same issues. I've used the PBS files to insert new encounters, and it worked for Route 101 without errors; however, when I've added new encounters for the next map, it gives me this error:

      Spoiler:
      ---------------------------
      PKMN
      ---------------------------
      Exception: RuntimeError

      Message: Undefined encounter type MAGIKARP,3,20, expected one of the following:

      ["Land", "Cave", "Water", "RockSmash", "OldRod", "GoodRod", "SuperRod", "HeadbuttLow", "HeadbuttHigh", "LandMorning", "LandDay", "LandNight", "BugContest"]

      File PBS/encounters.txt, line 548

      MAGIKARP,3,20



      Compiler:1096:in `pbCompileEncounters'

      Compiler:3965:in `pbCompileAllData'

      Compiler:4071



      This exception was logged in

      C:\Users\Irene\Saved Games/PKMN/errorlog.txt.

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


      Furthermore, the file is in ANSI format (searched that that may solve the problem; it did not.) and I've added 12 species to every line, even when it wasn't necessary a.k.a. water.

      Text file:

      Spoiler:
      004
      25,25,10
      LandNight
      HOOTHOOT,3,6
      HOOTHOOT,3,6
      HOOTHOOT,3,6
      HOOTHOOT,3,6
      HOOTHOOT,3,6
      HOOTHOOT,3,6
      HOOTHOOT,3,6
      HOOTHOOT,3,6
      VENONAT,2,4
      POOCHYENA,2,4
      CASCOON,4,6
      SPINARAK,2,5
      Water
      MAGIKARP,3,20 #Error occurs here
      MAGIKARP,3,20
      MAGIKARP,3,20
      MAGIKARP,3,20
      MAGIKARP,3,20
      MAGIKARP,3,20
      MAGIKARP,3,20
      MAGIKARP,3,20
      MAGIKARP,3,20
      MAGIKARP,3,20
      MAGIKARP,3,20
      MAGIKARP,3,20
      MAGIKARP,3,20
      MAGIKARP,3,20
      OldRod
      MAGIKARP,3,15
      MAGIKARP,3,20
      MAGIKARP,3,20
      MAGIKARP,3,20
      MAGIKARP,3,20
      MAGIKARP,3,20
      MAGIKARP,3,20
      MAGIKARP,3,20
      MAGIKARP,3,20
      MAGIKARP,3,20
      MAGIKARP,3,20
      REMORAID,2,10
      SuperRod
      MAGIKARP,3,20
      MAGIKARP,3,20
      MAGIKARP,3,20
      WOOPER,4,15
      POLIWAG,3,10
      POLIWAG,4,15
      POLIWHIRL,16,25
      TYMPOLE,2,10
      TYMPOLE,2,10
      BASCULIN,7,20
      MARILL,5,12
      BARBOACH,3,10
      GoodRod
      MAGIKARP,3,20
      MAGIKARP,3,20
      MAGIKARP,3,20
      MAGIKARP,3,20
      MAGIKARP,3,20
      WOOPER,4,15
      WOOPER,4,13
      WOOPER,4,15
      REMORAID,4,15
      POLIWAG,3,10
      POLIWAG,3,11
      POLIWHIRL,16,23


      Noting I only want wild Pokemon to come out at night for the Land, which is why there is not "Land" - only "Land Night."

      Any help would be appreciated :)

      I have not added scripts or changed the code in any way.
      __________________


      Polaret | Fourette | Ecuret | Axew | Zorua | Nanette [Shiny]
      "My scar makes me sassy, child!"
      The Big Bang Theory Fan Club - Click To Join!
      The French Club
      Reply With Quote
        #3    
      Old March 11th, 2013 (5:25 PM).
      joey645 joey645 is offline
         
        Join Date: Mar 2013
        Posts: 11
        Maybe make the density so that it's very rare for a pokemon to be triggered during the day compared to night? Assuming that is you're trying to make a situation like you'll see wild animals more at night compared to the day due to the lack of people around at night?

        Other than that I have yet to encounter that error. I'll try it out later!
        Reply With Quote
          #4    
        Old March 11th, 2013 (5:29 PM). Edited March 11th, 2013 by Yusshin.
        Yusshin's Avatar
        Yusshin Yusshin is offline
        ♪ Yggdrasil ♪
           
          Join Date: Jul 2009
          Location: Quebec, Canada
          Age: 25
          Nature: Brave
          Posts: 2,424
          Yeah, but how do I set a specific just for night-time? Can I chop the map up like that? i.e.

          004
          1,1,1
          Land
          PKMN x12

          and then another
          ####
          004
          25,25,10
          LandNight
          PKMN x12

          ?

          The densities are a general thing for all entries - Land, Water, Cave. Unless it can be separated like this, I don't see how it's possible to increase sightings for LandNight without increasing same sightings for Land.\

          And even if it can be chopped like that, would the second one not still look for "Land" as an entry?

          [Edit]

          I tried adding "Land", but the error still occurs at the Magikarp Line. Same error.

          Spoiler:
          004
          12,25,10
          Land
          STARLY,2,3
          STARLY,2,3
          STARLY,2,5
          STARLY,2,3
          STARLY,2,3
          STARLY,2,3
          STARLY,2,4
          STARLY,2,3
          STARLY,2,5
          WURMPLE,2,5
          PIDGEY,2,3
          CATERPIE,2,3
          LandNight
          HOOTHOOT,3,6
          HOOTHOOT,3,6
          HOOTHOOT,3,6
          HOOTHOOT,3,6
          HOOTHOOT,3,6
          HOOTHOOT,3,6
          HOOTHOOT,3,6
          HOOTHOOT,3,6
          VENONAT,2,4
          POOCHYENA,2,4
          CASCOON,4,6
          SPINARAK,2,5
          Water
          MAGIKARP,3,20 #Error here
          MAGIKARP,3,20
          MAGIKARP,3,20
          MAGIKARP,3,20
          MAGIKARP,3,20
          MAGIKARP,3,20
          MAGIKARP,3,20
          MAGIKARP,3,20
          MAGIKARP,3,20
          MAGIKARP,3,20
          MAGIKARP,3,20
          MAGIKARP,3,20
          MAGIKARP,3,20
          OldRod
          MAGIKARP,3,15
          MAGIKARP,3,20
          MAGIKARP,3,20
          MAGIKARP,3,20
          MAGIKARP,3,20
          MAGIKARP,3,20
          MAGIKARP,3,20
          MAGIKARP,3,20
          MAGIKARP,3,20
          MAGIKARP,3,20
          MAGIKARP,3,20
          REMORAID,2,10
          SuperRod
          MAGIKARP,3,20
          MAGIKARP,3,20
          MAGIKARP,3,20
          WOOPER,4,15
          POLIWAG,3,10
          POLIWAG,4,15
          POLIWHIRL,16,25
          TYMPOLE,2,10
          TYMPOLE,2,10
          BASCULIN,7,20
          MARILL,5,12
          BARBOACH,3,10
          GoodRod
          MAGIKARP,3,20
          MAGIKARP,3,20
          MAGIKARP,3,20
          MAGIKARP,3,20
          MAGIKARP,3,20
          WOOPER,4,15
          WOOPER,4,13
          WOOPER,4,15
          REMORAID,4,15
          POLIWAG,3,10
          POLIWAG,3,11
          POLIWHIRL,16,23
          __________________


          Polaret | Fourette | Ecuret | Axew | Zorua | Nanette [Shiny]
          "My scar makes me sassy, child!"
          The Big Bang Theory Fan Club - Click To Join!
          The French Club
          Reply With Quote
            #5    
          Old March 12th, 2013 (6:21 AM).
          Maruno's Avatar
          Maruno Maruno is offline
          Lead Dev of Pokémon Essentials
             
            Join Date: Jan 2008
            Location: England
            Posts: 5,189
            Yusshin, you really need to start reading the wiki. Each encounter method requires its own number of Pokémon listed under it (e.g. 5 for Water, 2 for OldRod). Your way of only having encounters at night (i.e. only having LandNight) works, so you don't need to worry about that.

            Gusano2314, you said you've changed some scripts and now you get your error. That's probably the problem. You've not said what you've changed, so we can't help you.
            __________________
            Go to the Pokémon Essentials Wiki

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

            Follow me on Twitter: @maruno42


            Reply With Quote
              #6    
            Old March 12th, 2013 (8:01 AM).
            Gusano2314's Avatar
            Gusano2314 Gusano2314 is offline
            Worm Launcher :U
               
              Join Date: Feb 2013
              Gender: Male
              Posts: 20
              i just used the editor to make the encounters thing, then i edited the encounters.txt using notepad
              my english is bad,i tried to say that i user the editor.exe to create the encounters and density.
              ill try editing the encounters using editor.exe instead
              PD: the only thing that i editen in the scripts is to add the VS animation, and works fine
              Reply With Quote
                #7    
              Old March 12th, 2013 (11:21 AM).
              Yusshin's Avatar
              Yusshin Yusshin is offline
              ♪ Yggdrasil ♪
                 
                Join Date: Jul 2009
                Location: Quebec, Canada
                Age: 25
                Nature: Brave
                Posts: 2,424
                Quote:
                Originally Posted by Maruno View Post
                Yusshin, you really need to start reading the wiki. Each encounter method requires its own number of Pokémon listed under it (e.g. 5 for Water, 2 for OldRod). Your way of only having encounters at night (i.e. only having LandNight) works, so you don't need to worry about that.

                Gusano2314, you said you've changed some scripts and now you get your error. That's probably the problem. You've not said what you've changed, so we can't help you.
                What's odd is I do, actually, read the Wiki and use the Search function on the board, but I missed the chart on the Wiki for some reason. I was basing myself a lot on the default game included with the pack, and between that and the Wiki, what I had understood was that there isn't a limit: only a minimum (12). Obviously, like I said, I overlooked the chart.

                Regardless, the 5-only thing worked. It's a bit of a shame that the Rods are limited to so few Pokemon, but I'm not going to complain about that much since it's not a huge issue.
                __________________


                Polaret | Fourette | Ecuret | Axew | Zorua | Nanette [Shiny]
                "My scar makes me sassy, child!"
                The Big Bang Theory Fan Club - Click To Join!
                The French Club
                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 10:16 AM.