• 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!
  • 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] Need help with a "nil cannot be coerced into Fixnum" error

  • 1
    Posts
    4
    Years
    • Seen May 7, 2021
    Here's the error log:

    [Tue Mar 02 20:29:15 Eastern Standard Time 2021]
    [Pokémon Essentials version 18.1]
    Exception: TypeError
    Message: nil can't be coerced into Fixnum

    Backtrace:
    Move_Usage_Calculations:95:in `*'
    Move_Usage_Calculations:95:in `pbCalcTypeMod'
    Move_Usage_Calculations:95:in `each'
    Move_Usage_Calculations:95:in `pbCalcTypeMod'
    Battler_UseMove_SuccessChecks:299:in `pbSuccessCheckAgainstTarget'
    Battler_UseMove:395:in `pbUseMove'
    Battler_UseMove:392:in `each'
    Battler_UseMove:392:in `pbUseMove'
    Battler_UseMove:59:in `pbProcessTurn'
    Battler_UseMove:58:in `logonerr'

    Essentially, the problem is that whenever I try to use a move, I receive this error, regardless of what more it is. I have no idea how to find what's causing this error. Any ideas?
     
    Essentially, the problem is that whenever I try to use a move, I receive this error, regardless of what more it is. I have no idea how to find what's causing this error. Any ideas?

    Can you post the whole code of the function pbCalcTypeMod please?
    I think I see what the error is but I don't have the same lines as you.
     
    Back
    Top