• 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!
  • Which Pokémon Masters protagonist do you like most? Let us know by casting a vote in our Masters favorite protagonist poll 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.

I can't battle wild encounters and I don't know why

  • 24
    Posts
    8
    Years
    Hello guys !
    Today I've made some encounters for the first route of my game, but when I try to test a battle, the game crash with an error message... And I don't know anything about scripts so I don't know how to figure this by myself :/
    Here's a gif that show my problem :
    [PokeCommunity.com] I can't battle wild encounters and I don't know why


    And the error message :
    [PokeCommunity.com] I can't battle wild encounters and I don't know why


    Thank for reading !
     
    Last edited:
    Seems like your Command menu has been tampered with or there's something overriding it. Just a guess, are you using some kind of overhaul script?
     
    We need more details to find the exact cause of your issue.
    Which scripts are you using exactly? Could you provide me with links?
     
    In that case start testing which one is at fault by using =begin and =end for each of your non vanilla scripts until your encounters start working. When you find the one, delete it.
     
    Are you sure those are all the extra scripts you're using?
    I've skimmed through all of them and can't find any reference to your problem.
    However in your screenshot I see the pbWildBattle method has been aliased and extended, so you must have another script that does something with either the battle system.

    Could you do a global search in the script editor (CTRL SHIFT F) and search for this: "olddd_pbWildBattle".
    The script containing that code is probably the culprit.
     
    Found olddd_pbWildBattle on the Black White Trainer Card
    Also, does olddd_pbTrainerBattle can causes issues with trainer battle ? (I didn't try it)
     
    Found olddd_pbWildBattle on the Black White Trainer Card
    Also, does olddd_pbTrainerBattle can causes issues with trainer battle ? (I didn't try it)

    I can't tell from here ;)
    I'm wondering why the BW trainer card script is overwriting stuff in wild battles though..
    Can you try commenting that script with =begin and =end like the user above me said and check if wild battles work then?
     
    You put =begin on the first line of the script and =end at the very end of the script.

    Like so:

    =begin
    rest of script...
    =end

    it's very important that there is nothing else on the first and last line except the =begin and =end.
     
    Hmm, it seems the method "ignore_input" is being called from someplace else then.
    Could you do a search (like before) for the following: "ignore_input" and another for: "class Window_CommandPokemon" and please post the responding scripts.
     
    Hmm, the method ignore_input is supposed to be in the class "SpriteWindow_Selectable", and Window_CommandPokemon should inherit it from SpriteWindow_Selectable.

    Could you do a search for SpriteWindow_Selectable, I have a feeling you either have an outdated version or one of the custom scripts is overwriting it.
     
    When I do a search in the SpriteWindow script you pasted in a previous reply, I see the SpriteWindow_Selectable class is there. My guess is you're using an outdated essentials version yes.
     
    Back
    Top