Undefined subroutine dumpData

Wrote new code? Fixed a bug? Want to discuss technical stuff? Feel free to post it here.

Moderator: Moderators

uPantcho
Human
Human
Posts: 42
Joined: 05 Nov 2009, 05:25
Noob?: Yes

Undefined subroutine dumpData

#1 Post by uPantcho »

i was revising the summon patch (http://forums.openkore.com/viewtopic.php?p=60741#p60741) and when testing i got this error when packet_include_dumpMethod 3:

Error message:
Undefined subroutine &Network::PacketParser::dumpData called at src/Network/PacketParser.pm line 456.

i reverted back to svn default and the error was there

my solution was this:

Code: Select all

Index: src/Network/PacketParser.pm
===================================================================
--- src/Network/PacketParser.pm	(revision 7993)
+++ src/Network/PacketParser.pm	(working copy)
@@ -453,7 +453,7 @@
 		} elsif ($config{debugPacket_include_dumpMethod} == 2) {
 			visualDump($msg, sprintf('%-24s %-4s%s', $title, $switch, $label));
 		} elsif ($config{debugPacket_include_dumpMethod} == 3) {
-			dumpData($msg, 1);
+			Misc::dumpData($msg, 1);
 		} elsif ($config{debugPacket_include_dumpMethod} == 4) {
 			open my $dump, '>>', 'DUMP_lines.txt';
 			print $dump unpack('H*', $msg) . "\n";
dont know why i needed to do that... the Misc reference is ok at the beginning of the packetparser
EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: Undefined subroutine dumpData

#2 Post by EternalHarvest »

Strange.