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

[Error] Battle Animation Editor : Defining FreeHand Path

  • 22
    Posts
    4
    Years
    • Seen Apr 29, 2021
    While making animations for gen 8 project I got this error in clean essentials.
    Code:
     =================
    
    [Tue Mar 16 16:10:10 India Standard Time 2021]
    [Pokémon Essentials version 18.1]
    Exception: NameError
    Message: undefined local variable or method `mouse' for #<PokemonPauseMenu:0xc3e59d8>
    
    Backtrace:
    Editor_BattleAnimationEditor:3344:in `pbDefinePath'
    Editor_BattleAnimationEditor:3199:in `loop'
    Editor_BattleAnimationEditor:3391:in `pbDefinePath'
    Editor_BattleAnimationEditor:3621:in `animationEditorMain'
    Editor_BattleAnimationEditor:3521:in `loop'
    Editor_BattleAnimationEditor:3705:in `animationEditorMain'
    Editor_BattleAnimationEditor:3728:in `pbAnimationEditor'
    Debug_Menu:775:in `pbDebugMenuActions'
    Debug_Menu:775:in `pbFadeOutIn'
    Debug_Menu:775:in `pbDebugMenuActions'
    
    =================
    Edit - It's vanilla essentials with custom animation graphics ( No PokemonAnimations.rxdata and move2anim.dat files copied from Pokemon Reborn ( Only animations folder).
     
    While making animations for gen 8 project I got this error in clean essentials.
    <Error>

    I'm glad to see someone willing to contribute to my project :)

    As for the error, in the file Editor_BattleAnimationEditor, in the function:
    Code:
    def pbDefinePath(canvas)
    find the line:
    Code:
            if mouse && !pointpath.isEndPoint?(mousepos[0],mousepos[1])
    and replace it with:
    Code:
            if mousepos && !pointpath.isEndPoint?(mousepos[0],mousepos[1])

    Keep it up :)
     
    Back
    Top