• 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.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Trading Card Game 2 protagonist in the poll by clicking here.
  • 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
    14
    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