• 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!
  • 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.

Encounters Compilation Error

D. Lawride

Audi Famam Illius, Scriptor!
  • 577
    Posts
    15
    Years
    I should first mention this pertains to version 7 of Essentials.

    Okay, so I consistently get a compilation error whenever I do it after modifying the encounters.txt file. This error:

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

    Appears whenever I try to compile the game after modifying the encounters.txt file, manually or otherwise.

    This is the beginning of the file:
    Spoiler:


    The format remains unchanged in the data for the subsequent maps. The script that compiles it has not been changed.

    Curious point, it works perfectly fine with a previous I had of encounters.txt, and is the only way to get it to compile.

    encounters.txt Full file
     
    Last edited:
    I don't get an error with those lines... Maybe you should attach your entire txt file
     
    I don't get an error with those lines... Maybe you should attach your entire txt file

    I don't think it's entirely necessary, since it's the exact same structure as the beginning of the file, but I've added it to the end of the first post regardless.

    But... you do get an error? Sorry, your statement's kinda misleading to me xD
     
    I downloaded it and first thing I found was it's in the wrong format...

    Re-Save As ANSI... Then correct spelling mistakes and you should be fine
     
    I downloaded it and first thing I found was it's in the wrong format...

    Re-Save As ANSI... Then correct spelling mistakes and you should be fine

    Huh, indeed it did. Thanks a lot! xD

    Still strange, tho; is the editor saving it incorrectly then?
     
    If you're using the editor possibly, I don't use the editor, although, it's probably a default in your txt files extension, to save to UTF-8, mine saves as ANSI, so who knows, make sure when editing these files you check if they are saved to the right format ;)
     
    If you're using the editor possibly, I don't use the editor, although, it's probably a default in your txt files extension, to save to UTF-8, mine saves as ANSI, so who knows, make sure when editing these files you check if they are saved to the right format ;)

    Seems I'll have to then; thanks again! Now to get this closed. =P
     
    Back
    Top