• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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

  • 11
    Posts
    164
    Days
    • Seen Jun 4, 2024
    [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.
     
  • 11
    Posts
    164
    Days
    • Seen Jun 4, 2024
    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