• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist poll!
  • PokéCommunity supports the Stop Killing Games movement. If you're a resident of the UK or EU, consider signing one of the petitions to stop publishers from destroying games. Click here for more information!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

I can´t modify the encounters.txt

  • 24
    Posts
    15
    Years
    When I modify the encounters.txt and then I try to test the game throws me an error on this data HELP!

    This is the error


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

    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:4068:in `pbCompileAllData'

    Compiler:4174
     
    When I modify the encounters.txt and then I try to test the game throws me an error on this data HELP!

    This is the error


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

    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:4068:in `pbCompileAllData'

    Compiler:4174

    It looks to me like you forgot to include the encounter type. Check out this article on the wiki, you should find out how to define each maps encounters on this.
     
    But, I didn't forget to include the encounter type, I only changed the name of one Pokemon in the .txt file that was formed by the editor
     
    But, I didn't forget to include the encounter type, I only changed the name of one Pokemon in the .txt file that was formed by the editor

    If you read the error message, it says you didn't properly define the encounter type. If my solution didn't work, would you mind posting the bit of text, or send me the text file so I can look at it?
     
    This is my encounters.txt file:

    ######################
    002 # El Vigía
    25,10,10
    ######################
    004 # Labvigia
    25,10,10
    ######################
    005 # Ruta 1
    25,25,10
    ######################
    006 # Cueva Prado
    25,25,10
    Cave
    ZUBAT,2,4
    ARON,2,4
    ABRA,2,4
    ARON,2,4
    ZUBAT,2,4
    ZUBAT,2,4
    ZUBAT,2,4
    ZUBAT,2,4
    ARON,2,4
    ZUBAT,2,4
    ZUBAT,2,4
    ZUBAT,2,4
     
    For ares with no encounters... Don't put them into encounters.txt
     
    Back
    Top