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

Script error with battles (Essentials v18.1)

  • 19
    Posts
    4
    Years
    • Seen Oct 2, 2021
    Hello, everyone.

    Sorry to be a bother, I hope this specific thread was not brought up already.
    I'm kind of a total newbie when it comes to script editing and I'm having a really hard time with an issue for my game.

    I recently upgraded to Pokémon Essentials v18.1, and so far so good. Nothing out of the ordinary happens to events or game mechanics.

    The problem arises during battles against specific Pokémon, them being either wild or belonging to any trainer.
    When facing a Pokémon, specifically any Pokémon from generation VI to VIII (the game data of gen VI and VII were already in the PBS files, I manually added those of gen VIII), an error screen appears when the Pokémon is defeated.
    It reads like this:
    ---------------------------
    Pokemon Essentials
    ---------------------------
    [Pokémon Essentials version 18.1]

    Exception: TypeError

    Message: nil can't be coerced into Fixnum



    Backtrace:

    Audio_Utilities:1167:in `*'

    Audio_Utilities:1167:in `getPlayTime2'

    Audio_Utilities:1111:in `open'

    Audio_Utilities:1111:in `getPlayTime2'

    Audio_Utilities:1090:in `getPlayTime'

    PSystem_FileUtilities:445:in `pbCryFrameLength'

    PokeBattle_SceneAnimations:674:in `createProcesses'

    PokeBattle_Animation:9:in `initialize'

    PokeBattle_SceneAnimations:652:in `initialize'

    Scene_Animations:291:in `new'



    This exception was logged in

    C:\Users\USERNAME\Saved Games\Pokemon Essentials\errorlog.txt.

    Press Ctrl+C to copy this message to the clipboard.
    ---------------------------


    When it happens, the battle ends in case the Pokémon is a wild one. Experience points are not given and the game continues treating it as a win.
    When the same thing happens during a trainer battle, then the active ally Pokémon is forced to repeat the same move it used to K.O. the enemy, but with no target whatsoever. The enemy, with 0 HP, does not leave the battlefield until the enemy trainer replaces it.
    If it was the last Pokémon, then the battle ends and it is treated ad a win, the trainer appears and says their line, but the enemy Pokémon is still there.
    Experience points are not given, either.

    I really can't get myself to understand what the problem is, I don't think I am competent enough to fix this on my own.
    Does anyone have a solution? Did something like this happen to anyone else?
     
    Hey! Moved your post here since you posted in the wrong section!
     
    You are perfectly right, I apologize for the inconvenience.
    I opened up the same thread in the right section, hopefully I won't mess up again!
     
    Back
    Top