'/' must follow a numeric type in unpack | r7552

This place is for Closed bug reports only. NOT for asking help!

Moderators: Moderators, Developers

Message
Author
midnytblu
Developers
Developers
Posts: 90
Joined: 14 Apr 2008, 09:37
Noob?: No
Location: prt_fild08 134 362

'/' must follow a numeric type in unpack | r7552

#1 Post by midnytblu »

Code: Select all

OpenKore version what-will-become-2.1
@ai_seq = attack route
Network state = 5
Network handler = Network::DirectConnection
SVN revision: 7552
Loaded plugins:
  plugins/macro.pl (macro)
  plugins/tele-search v2.pl (Tele-Search v2)

Error message:
'/' must follow a numeric type in unpack at src/Network/Receive/ServerType0.pm line 7844.

Stack trace:
'/' must follow a numeric type in unpack at src/Network/Receive/ServerType0.pm line 7844.
 at src/Network/Receive/ServerType0.pm line 7844
	Network::Receive::ServerType0::special_item_obtain('Network::Receive::pRO=HASH(0x570bd44)', 'HASH(0x50d9ce4)') called at src/Network/Receive.pm line 193
	Network::Receive::parse('Network::Receive::pRO=HASH(0x570bd44)', '\x{fd}\x{7}9\x{0}\x{1}i\x{2}\x{18}Saki and Caz\x{0}\x{0}\x{0}00\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{18}Atroce\x{0}3\x{da}\x{0}\x{0}\x{0}\x{fc}\x{c2}\x{97}6\x{6}\x{0}\x{0}\x{0}\x{f}\x{0}\x{0}\x{0}') called at src/functions.pl line 1320
	main::parseIncomingMessage('\x{fd}\x{7}9\x{0}\x{1}i\x{2}\x{18}Saki and Caz\x{0}\x{0}\x{0}00\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{18}Atroce\x{0}3\x{da}\x{0}\x{0}\x{0}\x{fc}\x{c2}\x{97}6\x{6}\x{0}\x{0}\x{0}\x{f}\x{0}\x{0}\x{0}') called at src/functions.pl line 690
	main::mainLoop_initialized() called at src/functions.pl line 69
	main::mainLoop() called at src/Interface.pm line 75
	Interface::mainLoop('Interface::Console::Win32=HASH(0x3baa24)') called at openkore.pl line 97
	main::__start() called at start.pl line 129

Died at this line:
  	} elsif ($args->{type} == TYPE_MONSTER_ITEM) {
* 		@{$args}{qw(monster_name)} = unpack 'C/Z', $args->{etc};
  		


EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: '/' must follow a numeric type in unpack | r7552

#2 Post by EternalHarvest »

Changed in r7554.

Why that works then?

Code: Select all

perl -Mstrict -e '$a = pack "C/Z", "test"; print unpack "C/Z", $a'

rwnath
The Way Of Human
The Way Of Human
Posts: 194
Joined: 03 Nov 2010, 05:50
Noob?: No
Location: The Philippines
Contact:

Re: '/' must follow a numeric type in unpack | r7552

#3 Post by rwnath »

Thank you for the fix.
Image

rwnath
The Way Of Human
The Way Of Human
Posts: 194
Joined: 03 Nov 2010, 05:50
Noob?: No
Location: The Philippines
Contact:

r7554 | 'x' outside of string in unpack

#4 Post by rwnath »

OpenKore version what-will-become-2.1
Network state = 5
Network handler = Network::DirectConnection
SVN revision: 7517
Loaded plugins:
plugins/macro/macro.pl (macro)

Error message:
'x' outside of string in unpack at src/Network/Receive/ServerType0.pm line 7846.

Stack trace:
'x' outside of string in unpack at src/Network/Receive/ServerType0.pm line 7846.
at src/Network/Receive/ServerType0.pm line 7846
Network::Receive::ServerType0::special_item_obtain('Network::Receive::pRO=HASH(0x5186914)', 'HASH(0x574dacc)') called at src/Network/Receive.pm line 193
Network::Receive::parse('Network::Receive::pRO=HASH(0x5186914)', '\x{fd}\x{7}9\x{0}\x{1}i\x{2}\x{18}James Toney\x{0}2 Beta\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{18}Atroce\x{0}S1us\x{0}*\x{fa}\x{9c}\x{0}\x{6}\x{0}\x{0}\x{0}\x{f}\x{0}\x{0}\x{0}') called at src/functions.pl line 1320
main::parseIncomingMessage('\x{fd}\x{7}9\x{0}\x{1}i\x{2}\x{18}James Toney\x{0}2 Beta\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{18}Atroce\x{0}S1us\x{0}*\x{fa}\x{9c}\x{0}\x{6}\x{0}\x{0}\x{0}\x{f}\x{0}\x{0}\x{0}') called at src/functions.pl line 690
main::mainLoop_initialized() called at src/functions.pl line 69
main::mainLoop() called at src/Interface.pm line 75
Interface::mainLoop('Interface::Console::Win32=HASH(0x27b9c44)') called at openkore.pl line 97
main::__start() called at start.pl line 129

Died at this line:
my $len = unpack 'C', $args->{etc};
* @{$args}{qw(monster_name)} = unpack "x Z$len", $args->{etc};
Image

chocolatier
Noob
Noob
Posts: 7
Joined: 04 Nov 2010, 14:07
Noob?: Yes

Re: '/' must follow a numeric type in unpack | r7552

#5 Post by chocolatier »

Where will I put the code below? Thank you

Code: Select all

perl -Mstrict -e '$a = pack "C/Z", "test"; print unpack "C/Z", $a'

rwnath
The Way Of Human
The Way Of Human
Posts: 194
Joined: 03 Nov 2010, 05:50
Noob?: No
Location: The Philippines
Contact:

Re: '/' must follow a numeric type in unpack | r7552

#6 Post by rwnath »

You don't have to, just download the latest update

http://openkore.svn.sourceforge.net/vie ... /?view=tar

extract it,then replace the Receive folder on your src/Network folder.
Image

chocolatier
Noob
Noob
Posts: 7
Joined: 04 Nov 2010, 14:07
Noob?: Yes

Re: '/' must follow a numeric type in unpack | r7552

#7 Post by chocolatier »

rwnath wrote:You don't have to, just download the latest update

http://openkore.svn.sourceforge.net/vie ... /?view=tar

extract it,then replace the Receive folder on your src/Network folder.
It works. Thanks man!

Post Reply