Ticket #293 (closed defect: fixed)

Opened 3 months ago

Last modified 3 months ago

Uncaught exception in utility commands - small bug

Reported by: Maverick Assigned to: milosh
Priority: normal Component: Bots - Multibot
Version: Latest version from repository Severity: minor
Keywords: Cc:

Description

P    MMaverick> !listcmd
P     RoboBot5> ======== Custom Commands ========
P     RoboBot5> | Command: !hunt
P     RoboBot5> |  0) {@name == @botname}!sched LoadHunt 0:0:0:1
P     RoboBot5> |  1) {@name == @botname}!sched Arena1 0:0:1:0
P     RoboBot5> |  2) {@name == @botname}!sched Arena2 0:0:1:45
P     RoboBot5> |  3) {@name == @botname}!sched Arena3 0:0:2:30
P     RoboBot5> |  4) {@name == @botname}!sched Arena4 0:0:2:50
P     RoboBot5> |  5) {@name == @botname}!sched Arena5 0:0:3:0
P     RoboBot5> |  6) {@name == @botname}!sched Lock
P     RoboBot5> |  7) {@name == @botname}!sched SetS 0:0:3:02
P     RoboBot5> |  8) {@name == @botname}!sched SetF 0:0:3:03
P     RoboBot5> |  9) {@name == @botname}!sched Start 0:0:3:04
P     RoboBot5> |  10) {@name == @botname}!sched Go 0:0:3:05
P     RoboBot5> |  11) {@name == @botname}!sched Lock 0:0:3:0
P     RoboBot5> | Command: {@name
P     RoboBot5> |  0) == @botname}!sched LoadHunt 0:0:0:1

C 8:RoboBot5> Uncaught exception in utility; all utilties unloaded.  See log for details.
T    MMaverick> you just caused it to crash
T    MMaverick> what did you do
T     MoD <ER>> I did...
T     MoD <ER>> !help commands
T     MoD <ER>> then !removecmd 6
T     MoD <ER>> said not found
T     MoD <ER>> so I tried !removecmd !hunt 6
T     MoD <ER>> since the command is actually !hunt and the one I wanted to remove was #6.
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
        at java.lang.String.substring(String.java:1768)
        at twcore.bots.multibot.twscript.commands.do_removeCmd(commands.java:164)
        at twcore.bots.multibot.twscript.commands.handleCommand(commands.java:107)
        at twcore.bots.multibot.twscript.commands.handleEvent(commands.java:93)
        at twcore.bots.MultiUtil.handleEvent(MultiUtil.java:90)
        at twcore.bots.multibot.multibot.handleEvent(multibot.java:1066)
        at twcore.bots.multibot.multibot.handleEvent(multibot.java:182)
        at twcore.core.net.GamePacketInterpreter.handleChatMessage(Unknown Source)
        at twcore.core.net.GamePacketInterpreter.translateNormalPacket(Unknown Source)
        at twcore.core.net.GamePacketInterpreter.translateGamePacket(Unknown Source)
        at twcore.core.net.ReliablePacketHandler.handleReliableMessage(Unknown Source)
        at twcore.core.net.GamePacketInterpreter.translateSpecialPacket(Unknown Source)
        at twcore.core.net.GamePacketInterpreter.translateGamePacket(Unknown Source)
        at twcore.core.Session.run(Unknown Source)

Attachments

Change History

08/15/08 13:34:27 changed by milosh

  • status changed from new to assigned.

Wow, he's getting creative with that module!

08/29/08 19:41:04 changed by milosh

  • status changed from assigned to closed.
  • resolution set to fixed.

This was fixed in 2782.


Add/Change #293 (Uncaught exception in utility commands - small bug)




Change Properties
Action