• 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!
  • Akari, Red, Kris, May - which Pokémon protagonist is your favorite? Let us know by voting in our semifinal favorite protagonist poll!
  • 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.

[Question] Error code

  • 15
    Posts
    1
    Years
    • Seen May 22, 2025
    [Pokémon Essentials version 21.1]
    [v21.1 Hotfixes 1.0.9]

    Exception: RuntimeError
    Message: Bad line syntax (expected syntax like XXX=YYY)
    File PBS/moves.txt, section FLY
    Effect Chance = 30



    Backtrace:
    Compiler:119:in `block in pbEachFileSectionEx'
    Compiler:100:in `each_line'
    Compiler:100:in `pbEachFileSectionEx'
    Compiler:142:in `pbEachFileSection'
    Compiler_CompilePBS:22:in `block (2 levels) in compile_PBS_file_generic'
    Compiler_CompilePBS:16:in `open'
    Compiler_CompilePBS:16:in `block in compile_PBS_file_generic'
    Compiler_CompilePBS:11:in `each'
    Compiler_CompilePBS:11:in `compile_PBS_file_generic'
    Compiler_CompilePBS:206:in `compile_moves'

    ALSO:
    [Pokémon Essentials version 21.1]
    [v21.1 Hotfixes 1.0.9]

    Exception: RuntimeError
    Message: Unknown exception when compiling.

    Backtrace:
    Compiler:1104:in `rescue in main'
    Compiler:1031:in `main'
    Main:29:in `mainFunctionDebug'
    Main:18:in `block in mainFunction'
    Errors:80:in `pbCriticalCode'
    Main:18:in `mainFunction'
    Main:45:in `block in <main>'
    Main:44:in `loop'
    Main:44:in `<main>'
    -e:in `eval'

    These are the two errors I get.
    I was trying to add the effect of flinching to Fly. Plus I made Splash do random status moves, but to do so had to try to make it so it cannot use other moves:

    [FLY]
    Name = Fly
    Type = FLYING
    Category = Physical
    Power = 90
    Accuracy = 95
    TotalPP = 15
    Target = Other
    FunctionCode = FlinchTargetTwoTurnAttackInvulnerableInSky
    Flags = Contact,CanProtect,CanMirrorMove,CannotSplash
    Effect Chance = 30
    Description = The user soars, then strikes on the second turn. It can also be used for flying to any familiar town.

    [SPLASH]
    Name = Splash
    Type = NORMAL
    Category = Status
    Accuracy = 0
    TotalPP = 40
    Target = User
    FunctionCode = UseRandomMove
    Description = The user just flops around so much it causes a random status effect.
     
    Ah, I figured it out. I took out the space between "Effect" and "Chance". DOH! didn't realize I put it there in the first place... I really need new glasses :P
     
    Back
    Top