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

[Error] Unable to catch pokemon

  • 10
    Posts
    5
    Years
    • Seen Sep 9, 2020
    I am using essentials 17.2. And i have an uninitialized constant, i have tried to figure it out by myself for a good 90 minutes ++ but i have no clue what to do anymore :( Anyone here that can explain to me what i clearly ain't seeing (understanding).

    ERROR MESSAGE:
    https://gyazo.com/2833b2ecfac6abc62edefdba78a7dcaa

    Where the error message points me to
    https://gyazo.com/9d647de47746698d5a46c710a1e3fa6d

    From Debug_Pokemon
    https://gyazo.com/ea1dcacec7bc28f1ad2ca93037d0ee82

    Multipleforms in Pokemon_forms
    https://gyazo.com/d9b974188c96bb94d78c891625e62dd0

    So one of these is where i myself figured the error could be, however i have 0 scripting knowledge (and i might be dumb on top of it) so i turn myself to you folks in hopes of getting enlightened.
    Any help (or attempt to) is appreciated.
     
    Last edited:
  • 1,682
    Posts
    8
    Years
    • Seen May 29, 2024
    Hey luck for you this is a known issue that now has a fix! Hooray!

    https://essentialsdocs.fandom.com/d/p/3100000000000000033/r/3085673425470174620
    If the link doen't work right, scroll down to Maruno's reply. Or just look here, I've copied it.
    I suggest you undo that change, and instead go into script section "PTrainer_NPCTrainers" and find the two lines which mention "poke[TPFORM]". Make the first line say "pokemon.forcedForm = poke[TPFORM] if " and delete the second line.

    Then go to script section "PokeBattle_Battle" and find the mention of "forcedForm". Make it say "pokemon.forcedForm = nil if " instead.

    The gist of it though is the form property gets set to a boolean value (true/false) instead of an integer. This also happens if you make a trainer battle with a forced form.
     
  • 10
    Posts
    5
    Years
    • Seen Sep 9, 2020
    EDIT: Nvm xD I can even fail when i follow a guide :D It worked tyvm. hero of the week :)
     
    Last edited:
    Back
    Top