• 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.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist poll!
  • PokéCommunity supports the Stop Killing Games movement. If you're a resident of the UK or EU, consider signing one of the petitions to stop publishers from destroying games. Click here for more information!
  • 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.

5th Gen Pokémon Error

nuzamaki90

Knight of The Volt
  • 93
    Posts
    17
    Years
    I updated my game from Essentials 9 to 11 and whenever I try to battle any 5th Gen Pokemon, I get this error....

    Exception: RuntimeError
    Message: Script error within event 5, map 8 (Route 1 (New)):
    Exception: ArgumentError
    Message: Section065:649:in `__mf_initialize'The species number (no. 501 of 493) is invalid.
    ***Full script:
    pbTrainerBattle(17,"Kaito","Dang, you're good.",false,0,false)
    Interpreter:243:in `pbExecuteScript'
    PokemonMultipleForms:83:in `initialize'
    PokemonTrainers:24:in `new'
    PokemonTrainers:24:in `pbLoadTrainer'
    PokemonTrainers:21:in `each'
    PokemonTrainers:21:in `pbLoadTrainer'
    PokemonTrainers:7:in `each'
    PokemonTrainers:7:in `pbLoadTrainer'
    PokemonTrainers:316:in `pbTrainerBattle'
    (eval):1:in `pbExecuteScript'

    Interpreter:276:in `pbExecuteScript'
    Interpreter:788:in `command_111'
    Interpreter:320:in `execute_command'
    Interpreter:193:in `update'
    Interpreter:106:in `loop'
    Interpreter:198:in `update'
    Scene_Map:103:in `update'
    Scene_Map:101:in `loop'
    Scene_Map:114:in `update'
    Scene_Map:68:in `main'
     
    I could do without the sarcasm, thanks.

    Even when I did compile my game, it still came up, so I had to end up changing a few things in my PBS folder.

    And, once I did, it started to work, but another problem came up:

    ---------------------------
    Pokemon Essentials
    ---------------------------
    Exception: RuntimeError

    Message: Script error within event 5, map 8 (Route 1 (New)):

    Exception: NameError

    Message: Section082:669:in `pbBattleAnimation'undefined local variable or method `trainerid' for #<Interpreter:0x7d6a0f8>

    ***Full script:

    pbTrainerBattle(17,"Kaito","Dang, you're good.",false,0,false)

    Interpreter:243:in `pbExecuteScript'

    PokemonTrainers:406:in `pbTrainerBattle'

    (eval):1:in `pbExecuteScript'

    Interpreter:788:in `eval'

    Interpreter:243:in `pbExecuteScript'

    Interpreter:788:in `command_111'

    Interpreter:320:in `execute_command'

    Interpreter:193:in `update'

    Interpreter:106:in `loop'

    Interpreter:198:in `update'



    Interpreter:276:in `pbExecuteScript'

    Interpreter:788:in `command_111'

    Interpreter:320:in `execute_command'

    Interpreter:193:in `update'

    Interpreter:106:in `loop'

    Interpreter:198:in `update'

    Scene_Map:103:in `update'

    Scene_Map:101:in `loop'

    Scene_Map:114:in `update'

    Scene_Map:68:in `main'



    This exception was logged in

    C:\Users\Nuzamaki90\Saved Games/Pokemon Essentials/errorlog.txt.

    Press Ctrl+C to copy this message to the clipboard.
    ---------------------------
    OK
    ---------------------------
     
    There are huge unknown factors here, which make it hard for me to give you the answers you want. You've edited Essentials (you're making a game), and you've "upgraded" it - odds are you've tried to patch up your game rather than transfer your changes into the latest version as recommended.

    The answers I provide work for Essentials. Any problems are caused by what you've been doing to it. You've most likely missed some of the code changes I've made since v9, which your error message does suggest.

    In PokemonTrainers, line 406 should read:

    Code:
    pbBattleAnimation(trainerbgm,trainer[0].trainertype,trainer[0].name) {
     
    Back
    Top