Pixelmon Mod - Bug tracker

5.0.1 Battle crash fix completed for upcoming version

Ticket description:
Hey guys,

I found out about this battle crash glitch by accident.
First, you have to create an NPC. I gave that NPC a Mew, holding a Colbur Berry.
Then, I gave myself a Weavile with the Move Knock Off and some random other moves.

I battled the trainer, and when I try to use any of the moves I have, the battle just crashes.
I found out, that this only works, if:
1) The Pokemon you send out has a move that works with the type-weakening berry of the opponent. (in this case, Knock Off + Colbur Berry - It also works with any other move though. I tried Giga Drain against a Rindo Berry aswell.)
2) The Pokemon holding the berry has to be weak to that move. (example: Magikarp holding a Rindo berry to weaken grass moves will trigger this glitch. Magikarp holding a Passho berry, which weakens Water moves won't trigger this glitch.)

If you successfully trigger this glitch, after clicking a move, it will send you back to the battle select menu and when trying to use a move again, it will kick you out of the battle, displaying this message:
https://i.gyazo.com/717a197154ed3c955b1 ... 5fc119.png


I hope you can fix this glitch soon, as I'm not sure, if this glitch also happens on actual people on a server.

Comments

#15589 Posted by Some Body » 12 Feb 2017 15:06

I attempted this without success. Can you post the console error that occurs?

#15599 Posted by Shadowkirby » 12 Feb 2017 17:21

How do I see the console?

#15600 Posted by Some Body » 12 Feb 2017 17:23

In your profile, you need to select the option to keep the launcher visible after the game starts. Then you can see the console log in the launcher.

#15601 Posted by Shadowkirby » 12 Feb 2017 17:33

https://i.gyazo.com/f236a20ddd6cf68a00e ... 1729a5.png

I did that, but nothing happens, and that output window doesn't say anything at all.

#15604 Posted by Shadowkirby » 12 Feb 2017 17:40

Nevermind.. i forgot there's logs in the .minecraft folder. For some reason I couldn't find them <.<

[23:32:34] [Client thread/INFO]: [CHAT] You sent out Weavile!
[23:32:39] [Server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 4561ms behind, skipping 91 tick(s)
[23:32:39] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:234]: Caught error in battle. Continuing...
[23:32:39] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: java.lang.ArrayIndexOutOfBoundsException: -1
[23:32:39] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at com.pixelmonmod.pixelmon.items.ItemHeld.eatBerry(ItemHeld.java:287)
[23:32:39] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at com.pixelmonmod.pixelmon.items.heldItems.ItemBerryTypeReducing.preProcessAttackTarget(ItemBerryTypeReducing.java:35)
[23:32:39] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at com.pixelmonmod.pixelmon.battles.attacks.Attack.doDamageCalc(Attack.java:675)
[23:32:39] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at com.pixelmonmod.pixelmon.battles.attacks.Attack.executeAttackEffects(Attack.java:559)
[23:32:39] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at com.pixelmonmod.pixelmon.battles.attacks.Attack.use(Attack.java:499)
[23:32:39] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at com.pixelmonmod.pixelmon.battles.controller.ai.BattleAIBase.weightOffensiveMove(BattleAIBase.java:208)
[23:32:39] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at com.pixelmonmod.pixelmon.battles.controller.ai.BattleAIBase.getWeightedOffensiveChoices(BattleAIBase.java:269)
[23:32:39] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at com.pixelmonmod.pixelmon.battles.controller.ai.TacticalAI.getWeightedAttackChoices(TacticalAI.java:66)
[23:32:39] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at com.pixelmonmod.pixelmon.battles.controller.ai.AdvancedAI.getNextMove(AdvancedAI.java:28)
[23:32:39] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at com.pixelmonmod.pixelmon.battles.controller.participants.TrainerParticipant.getMove(TrainerParticipant.java:199)
[23:32:39] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.chooseMove(PixelmonWrapper.java:197)
[23:32:39] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.selectAIAction(PixelmonWrapper.java:189)
[23:32:39] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at com.pixelmonmod.pixelmon.battles.controller.participants.BattleParticipant.selectAction(BattleParticipant.java:241)
[23:32:39] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:263)
[23:32:39] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138)
[23:32:39] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12)
[23:32:39] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_52_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic)
[23:32:39] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:72)
[23:32:39] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:168)
[23:32:39] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at net.minecraftforge.fml.common.FMLCommonHandler.onPreWorldTick(FMLCommonHandler.java:282)
[23:32:39] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:694)
[23:32:39] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613)
[23:32:39] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:240)
[23:32:39] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471)
[23:32:39] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at java.lang.Thread.run(Thread.java:745)
[23:32:40] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:234]: Caught error in battle. Continuing...
[23:32:40] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: java.lang.ArrayIndexOutOfBoundsException: -1
[23:32:40] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at com.pixelmonmod.pixelmon.items.ItemHeld.eatBerry(ItemHeld.java:287)
[23:32:40] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at com.pixelmonmod.pixelmon.items.heldItems.ItemBerryTypeReducing.preProcessAttackTarget(ItemBerryTypeReducing.java:35)
[23:32:40] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at com.pixelmonmod.pixelmon.battles.attacks.Attack.doDamageCalc(Attack.java:675)
[23:32:40] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at com.pixelmonmod.pixelmon.battles.attacks.Attack.executeAttackEffects(Attack.java:559)
[23:32:40] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at com.pixelmonmod.pixelmon.battles.attacks.Attack.use(Attack.java:499)
[23:32:40] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at com.pixelmonmod.pixelmon.battles.controller.ai.BattleAIBase.weightOffensiveMove(BattleAIBase.java:208)
[23:32:40] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at com.pixelmonmod.pixelmon.battles.controller.ai.BattleAIBase.getWeightedOffensiveChoices(BattleAIBase.java:269)
[23:32:40] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at com.pixelmonmod.pixelmon.battles.controller.ai.TacticalAI.getWeightedAttackChoices(TacticalAI.java:66)
[23:32:40] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at com.pixelmonmod.pixelmon.battles.controller.ai.AdvancedAI.getNextMove(AdvancedAI.java:28)
[23:32:40] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at com.pixelmonmod.pixelmon.battles.controller.participants.TrainerParticipant.getMove(TrainerParticipant.java:199)
[23:32:40] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.chooseMove(PixelmonWrapper.java:197)
[23:32:40] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.selectAIAction(PixelmonWrapper.java:189)
[23:32:40] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at com.pixelmonmod.pixelmon.battles.controller.participants.BattleParticipant.selectAction(BattleParticipant.java:241)
[23:32:40] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:263)
[23:32:40] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138)
[23:32:40] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12)
[23:32:40] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_52_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic)
[23:32:40] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:72)
[23:32:40] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:168)
[23:32:40] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at net.minecraftforge.fml.common.FMLCommonHandler.onPreWorldTick(FMLCommonHandler.java:282)
[23:32:40] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:694)
[23:32:40] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613)
[23:32:40] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:240)
[23:32:40] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471)
[23:32:40] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at java.lang.Thread.run(Thread.java:745)
[23:32:42] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:234]: Caught error in battle. Continuing...
[23:32:42] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: java.lang.ArrayIndexOutOfBoundsException: -1
[23:32:42] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at com.pixelmonmod.pixelmon.items.ItemHeld.eatBerry(ItemHeld.java:287)
[23:32:42] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at com.pixelmonmod.pixelmon.items.heldItems.ItemBerryTypeReducing.preProcessAttackTarget(ItemBerryTypeReducing.java:35)
[23:32:42] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at com.pixelmonmod.pixelmon.battles.attacks.Attack.doDamageCalc(Attack.java:675)
[23:32:42] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at com.pixelmonmod.pixelmon.battles.attacks.Attack.executeAttackEffects(Attack.java:559)
[23:32:42] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at com.pixelmonmod.pixelmon.battles.attacks.Attack.use(Attack.java:499)
[23:32:42] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at com.pixelmonmod.pixelmon.battles.controller.ai.BattleAIBase.weightOffensiveMove(BattleAIBase.java:208)
[23:32:42] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at com.pixelmonmod.pixelmon.battles.controller.ai.BattleAIBase.getWeightedOffensiveChoices(BattleAIBase.java:269)
[23:32:42] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at com.pixelmonmod.pixelmon.battles.controller.ai.TacticalAI.getWeightedAttackChoices(TacticalAI.java:66)
[23:32:42] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at com.pixelmonmod.pixelmon.battles.controller.ai.AdvancedAI.getNextMove(AdvancedAI.java:28)
[23:32:42] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at com.pixelmonmod.pixelmon.battles.controller.participants.TrainerParticipant.getMove(TrainerParticipant.java:199)
[23:32:42] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.chooseMove(PixelmonWrapper.java:197)
[23:32:42] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper.selectAIAction(PixelmonWrapper.java:189)
[23:32:42] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at com.pixelmonmod.pixelmon.battles.controller.participants.BattleParticipant.selectAction(BattleParticipant.java:241)
[23:32:42] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at com.pixelmonmod.pixelmon.battles.controller.BattleControllerBase.update(BattleControllerBase.java:263)
[23:32:42] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at com.pixelmonmod.pixelmon.battles.BattleRegistry.updateBattles(BattleRegistry.java:138)
[23:32:42] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at com.pixelmonmod.pixelmon.battles.BattleTickHandler.tickStart(BattleTickHandler.java:12)
[23:32:42] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_52_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic)
[23:32:42] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:72)
[23:32:42] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:168)
[23:32:42] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at net.minecraftforge.fml.common.FMLCommonHandler.onPreWorldTick(FMLCommonHandler.java:282)
[23:32:42] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:694)
[23:32:42] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613)
[23:32:42] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:240)
[23:32:42] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471)
[23:32:42] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at java.lang.Thread.run(Thread.java:745)
[23:32:42] [Server thread/INFO]: [com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:240]: ===Too many errors detected in battle, force-ending===
[23:32:42] [Client thread/INFO]: [CHAT] A battle error has occurred! Check the console for details and report this bug to the Pixelmon developers.

Ticket details

  • Ticket ID: 11513
  • Project: Pixelmon Mod
  • Status: Fix completed for upcoming version
  • Component: Error
  • Project version: 5.x.x
  • Priority: Normal
  • Severity: Normal
  • Forge/Sponge: (unknown)
  • What else would be useful to know?: (unknown)
  • Assigned to: Some Body
  • Reported by: Shadowkirby (Send PM)
  • Reporter's tickets: (List all tickets)
  • Reported on: 12 Feb 2017 08:21
  • Ticket last visited by: Some Body on 12 Feb 2017 17:58
JOIN THE TEAM