• 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!
  • Our weekly protagonist poll is now up! Vote for your favorite Trading Card Game 2 protagonist in the poll by clicking here.
  • 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] Need help with this

  • 9
    Posts
    4
    Years
    • He/Him
    • Seen Sep 24, 2023
    Hi Yall, This message keeps popping up when i start the game/debug mode, i checked where it says the problem is and i cant see anything wrong. I even downloaded v19.1 again and reinstalled the mods i have. (The mods i have downloaded are: Elite Battle DX, Luka's Scripting Utilities, Modular Title Screen and v19.1 Hotfixes)
     

    Attachments

    • [PokeCommunity.com] Need help with this
      unknown.png
      6.9 KB · Views: 11
    Hi,
    I've had many issues with this script "PokeBattle_Clauses" (I'm on v18.1 but from what I'm seeing v19 and v18.1 almost have the same script).
    I don't know why this happens though. I suspect this is a bug within Ruby itself.

    While I'm reading the script PokeBattle_Clauses, I think I see a hint of solution:
    Code:
      unless @__clauses__aliased
        alias __clauses__pbMoveFailed? pbMoveFailed?
        @__clauses__aliased = true
      end
    My hint is: in the script PokeBattle_Clauses, whenever you see a single line:
    Code:
      alias __clauses__someFunctionName someFunctionName
    replace it with:
    Code:
      unless @__clauses__aliased
        alias __clauses__someFunctionName someFunctionName
        @__clauses__aliased = true
      end

    Another hint I have; in the script PokeBattle_Clauses sometimes classes are defined:
    Code:
    class PokeBattle_Move_XXX
    while this move is defined by:
    Code:
    class PokeBattle_Move_022 < PokeBattle_StatUpMove   # Double Team
    So for :
    Code:
    class PokeBattle_Move_067   # Skill Swap
    replace this line with:
    Code:
    class PokeBattle_Move_067 < PokeBattleMove # Skill Swap
    Your error says that the function pbFailsAgainstTarget? is not found, while it is in the base kit of the base class of moves (PokeBattle_Move).
    Maybe this is because PokeBattle_Move_067 is "rewritten" as not being a subclass of PokeBattle_Move.
    This fix probably needs some backup from someone who actually knows how Ruby works "inside" (interpreter level).


    *My* bugfix was to simply comment the erroneous code. Clauses are likely deprecated in Essentials.
     
    Last edited:
    Hi,
    I've had many issues with this script "PokeBattle_Clauses" (I'm on v18.1 but from what I'm seeing v19 and v18.1 almost have the same script).
    I don't know why this happens though. I suspect this is a bug within Ruby itself.

    While I'm reading the script PokeBattle_Clauses, I think I see a hint of solution:
    Code:
      unless @__clauses__aliased
        alias __clauses__pbMoveFailed? pbMoveFailed?
        @__clauses__aliased = true
      end
    My hint is: in the script PokeBattle_Clauses, whenever you see a single line:
    Code:
      alias __clauses__someFunctionName someFunctionName
    replace it with:
    Code:
      unless @__clauses__aliased
        alias __clauses__someFunctionName someFunctionName
        @__clauses__aliased = true
      end

    Another hint I have; in the script PokeBattle_Clauses sometimes classes are defined:
    Code:
    class PokeBattle_Move_XXX
    while this move is defined by:
    Code:
    class PokeBattle_Move_022 < PokeBattle_StatUpMove   # Double Team
    So for :
    Code:
    class PokeBattle_Move_067   # Skill Swap
    replace this line with:
    Code:
    class PokeBattle_Move_067 < PokeBattleMove # Skill Swap
    Your error says that the function pbFailsAgainstTarget? is not found, while it is in the base kit of the base class of moves (PokeBattle_Move).
    Maybe this is because PokeBattle_Move_067 is "rewritten" as not being a subclass of PokeBattle_Move.
    This fix probably needs some backup from someone who actually knows how Ruby works "inside" (interpreter level).


    *My* bugfix was to simply comment the erroneous code. Clauses are likely deprecated in Essentials.

    I tried this and it didnt work the same message still came up thanks anyway.
     
    I tried this and it didnt work the same message still came up thanks anyway.

    Just comment the code then. Clauses are deprecated anyway.
    If you do want clauses, just add the "clause" code to their normal functions.
     
    Back
    Top