Trench-Wars / twcore

Trench Wars bot project
5 stars 1 forks source link

GravBomber !skip crashes module #107

Open connermcd opened 8 years ago

connermcd commented 8 years ago

Trac Ticket #1215 new defect

Reported by: Shadowmere Owned by:
Component: Bots - Multibot Priority: normal Severity: minor

Description:

There's two ways that it crashes the module:

1) If game hasn't !started 2) If game has been !stopped and you use !skip

With 1) it just gives a string of:

4:RoboBot> Error in module: GravBomber when handling a twcore.core.events.Message event:null 4:RoboBot> Stack Trace: 4:RoboBot> twcore.bots.multibot.gravbomber.gravbomber.handleCommand(Unknown Source) 4:RoboBot> twcore.bots.multibot.gravbomber.gravbomber.handleEvent(Unknown Source) 4:RoboBot> twcore.bots.MultiModule.handleEvent(Unknown Source) 4:RoboBot> twcore.bots.multibot.multibot.handleEvent(Unknown Source) 4:RoboBot> twcore.bots.multibot.multibot.handleEvent(Unknown Source) 4:RoboBot> twcore.core.net.GamePacketInterpreter.handleChatMessage(Unknown Source) 4:RoboBot> twcore.core.net.GamePacketInterpreter.translateNormalPacket(Unknown Source) 4:RoboBot> twcore.core.net.GamePacketInterpreter.translateGamePacket(Unknown Source) 4:RoboBot> twcore.core.net.ReliablePacketHandler.handleReliableMessage(Unknown Source) 4:RoboBot> twcore.core.net.GamePacketInterpreter.translateSpecialPacket(Unknown Source) 4:RoboBot> twcore.core.net.GamePacketInterpreter.translateGamePacket(Unknown Source) 4:RoboBot> twcore.core.net.GamePacketInterpreter.translateSpecialPacket(Unknown Source) 4:RoboBot> twcore.core.net.GamePacketInterpreter.translateGamePacket(Unknown Source) 4:RoboBot> twcore.core.Session.run(Unknown Source) 4:RoboBot> Event Module unloaded due to exception. See log for details.

With 2) it will say

"YoMama!!!'s turn has ended. Points awarded for damage this turn: 0"

4:RoboBot> Error in module: GravBomber when handling a twcore.core.events.Message event:null 4:RoboBot> Stack Trace: 4:RoboBot> twcore.bots.multibot.gravbomber.gravbomber.endTurn(Unknown Source) 4:RoboBot> twcore.bots.multibot.gravbomber.gravbomber.handleCommand(Unknown Source) 4:RoboBot> twcore.bots.multibot.gravbomber.gravbomber.handleEvent(Unknown Source) 4:RoboBot> twcore.bots.MultiModule.handleEvent(Unknown Source) 4:RoboBot> twcore.bots.multibot.multibot.handleEvent(Unknown Source) 4:RoboBot> twcore.bots.multibot.multibot.handleEvent(Unknown Source) 4:RoboBot> twcore.core.net.GamePacketInterpreter.handleChatMessage(Unknown Source) 4:RoboBot> twcore.core.net.GamePacketInterpreter.translateNormalPacket(Unknown Source) 4:RoboBot> twcore.core.net.GamePacketInterpreter.translateGamePacket(Unknown Source) 4:RoboBot> twcore.core.net.ReliablePacketHandler.handleReliableMessage(Unknown Source) 4:RoboBot> twcore.core.net.GamePacketInterpreter.translateSpecialPacket(Unknown Source) 4:RoboBot> twcore.core.net.GamePacketInterpreter.translateGamePacket(Unknown Source) 4:RoboBot> twcore.core.Session.run(Unknown Source) 4:RoboBot> Event Module unloaded due to exception. See log for details.

If a game is !started and !skip used, it works fine.