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

[Error] Error on Pokemon Compile

  • 16
    Posts
    7
    Years
    • Seen Jun 30, 2024
    I am trying to update one of my older works I haven't touched in years with newer mons, and it's late, and I am at my wits end on what to do about it.

    This is the error I am getting.


    Code:
    Exception: RuntimeError
    Message: Field  is not a positive integer
    File PBS/pokemon.txt, section 651, key Compatibility
    5
    
    Compiler:219:in `csvPosInt!'
    Compiler:2319:in `pbCompilePokemonData'
    Compiler:2298:in `each'
    Compiler:2298:in `pbCompilePokemonData'
    Compiler:2296:in `loop'
    Compiler:2376:in `pbCompilePokemonData'
    Compiler:2280:in `each'
    Compiler:2280:in `pbCompilePokemonData'
    Compiler:2279:in `each'
    Compiler:2279:in `pbCompilePokemonData'


    The section in question is:

    Code:
    [651]
    Name=Quilladin
    InternalName=QUILLADIN
    Type1=GRASS
    BaseStats=61,78,95,57,56,58
    GenderRate=FemaleOneEighth
    GrowthRate=Parabolic
    BaseEXP=142
    EffortPoints=0,0,2,0,0,0
    Rareness=45
    Happiness=70
    Abilities=OVERGROW
    HiddenAbility=BULLETPROOF
    Moves=0,NEEDLEARM,1,NEEDLEARM,1,GROWL,1,VINEWHIP,5,VINEWHIP,8,ROLLOUT,11,BITE,15,LEECHSEED,19,PINMISSILE,29,TAKEDOWN,35,SEEDBOMB,39,MUDSHOT,44,BULKUP,48,BODYSLAM,52,PAINSPLIT,56,WOODHAMMER
    Compatibility=5
    StepsToHatch=5120
    Height=0.7
    Weight=29.0
    Color=Green
    Shape=6
    Kind=Spiky Armor
    Pokedex=They strengthen their lower bodies by running into one another. They are very kind and won't start fights.
    BattlerPlayerY=24
    BattlerEnemyY=28
    BattlerAltitude=0
    Evolutions=CHESNAUGHT,Level,36
     
    The error message already tells you where the issue is - you have defined the Compatibility incorrectly. Compatibility is not supposed to be a number, but is instead defined by an egg group, such as "Monster", "Bug1", "Field", etc. I'm looking at my own PBS file and I see that the line for Quilladin should actually look like this this:

    Compatibility = Field

    Honestly, if you remember exactly what changes to which species you've made in the past, I would suggest just downloading the pokemon.txt file from a clean copy of Essentials v18.1 and making your changes on that. If you've made too many changes, though, then you'll have to manually update each entry to the correct format. You can find how each section should be defined here: https://essentialsdocs.fandom.com/wiki/Defining_a_species.
     
    Back
    Top