• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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.

Game error

Venomous_Zero86

Pokemon Chosen Ones (Coming Soon)
120
Posts
8
Years
    • Seen Feb 11, 2022
    hello am working on my game i havent put it up yet but every time i go to attck this messege comes up
    now i can keep going with the battle but it still keeps coming up each time how do i fix this
    ---------------------------
    Pokemon Chosen Ones
    ---------------------------
    Exception: ArgumentError

    Message: comparison of Fixnum with nil failed

    PokeBattle_AI:4112:in `>='

    PokeBattle_AI:4112:in `pbEnemyShouldWithdrawEx?'

    PokeBattle_AI:4101:in `pbEnemyShouldWithdraw?'

    PokeBattle_AI:4312:in `pbDefaultChooseEnemyCommand'

    PokeBattle_Scene:2779:in `pbChooseEnemyCommand'

    PokeBattle_Battle:2641:in `pbCommandPhase'

    PokeBattle_Battle:2636:in `each'

    PokeBattle_Battle:2636:in `pbCommandPhase'

    PokeBattle_Battle:2583:in `pbStartBattleCore'

    PokeBattle_Battle:2582:in `logonerr'



    This exception was logged in

    C:\Users\0646826\Saved Games/Pokemon Chosen Ones/errorlog.txt.

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

    Flowerchild

    fleeting assembly
    8,709
    Posts
    13
    Years
  • uh, it looks like one of the variables you're trying to use in a comparison is undefined. try double checking that you spelled the variable name right, and if that's not the case, check the scope to make sure whatever function you're making can access it.
    in general I'd recommend not playing with the Battle AI script unless you're pretty proficient in Ruby. It's easy to break stuff.
     

    Venomous_Zero86

    Pokemon Chosen Ones (Coming Soon)
    120
    Posts
    8
    Years
    • Seen Feb 11, 2022
    wait what sorry am kinda new to this so i dont understand i mostly know how to add scripts change or inport txt into scripts but confused over all
     
    971
    Posts
    7
    Years
    • Age 21
    • Seen Nov 28, 2022
    wait what sorry am kinda new to this so i dont understand i mostly know how to add scripts change or inport txt into scripts but confused over all

    Have you made any changes to any PokeBattle_... scripts? If so, which ones?
     

    Venomous_Zero86

    Pokemon Chosen Ones (Coming Soon)
    120
    Posts
    8
    Years
    • Seen Feb 11, 2022
    idk if have maybe for the sun and moon pack i got am adding in forms and moves but idk am not home right now so i can check later
     
    163
    Posts
    7
    Years
    • Seen yesterday
    Hi guys...

    I have the same error, but just in the double battles... Just the firs Pokemon can attack, the error comes in over and over, and just the first Pokemon attack, not the second, not the enemies... Just the first :C

    I'm using EBS

    [Pokémon Essentials version 17.2]

    Exception: ArgumentError

    Message: comparison of Fixnum with nil failed

    PokeBattle_AI:4182:in `>='

    PokeBattle_AI:4182:in `pbEnemyShouldWithdrawEx?'

    PokeBattle_AI:4147:in `pbEnemyShouldWithdraw?'

    PokeBattle_AI:4358:in `pbDefaultChooseEnemyCommand'

    PokeBattle_Scene:2786:in `pbChooseEnemyCommand'

    PokeBattle_Battle:2660:in `pbCommandPhase_ebs'

    PokeBattle_Battle:2655:in `each'

    PokeBattle_Battle:2655:in `pbCommandPhase_ebs'

    EliteBattle_0:294:in `pbCommandPhase'

    EliteBattle_0:224:in `pbStartBattleCore'
     
    Back
    Top