• 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!
  • It's time to vote for your favorite Pokémon Battle Revolution protagonist in our new weekly protagonist poll! Click here to cast your vote and let us know which PBR protagonist you like most.
  • 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
    6
    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:
    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.
     
    EDIT: Nvm xD I can even fail when i follow a guide :D It worked tyvm. hero of the week :)
     
    Last edited:
    Back
    Top