openkore icon indicating copy to clipboard operation
openkore copied to clipboard

'X' outside of string in unpack at src/Network/Receive.pm line 2041.

Open Glikadin opened this issue 9 years ago • 4 comments

OpenKore version what-will-become-2.1 @ai_seq = macro Network state = 5 Network handler = Network::DirectConnection Revision: ctime:2017_02_28 Loaded plugins: plugins/alertsound.pl (alertsound; description: plays sounds on certain events) plugins/breakTime.pl (breakTime; description: Automatically disconnect and reconnect at certain times of the day) plugins/macro/macro.pl (macro; description: allows usage of macros)

Error message: 'X' outside of string in unpack at src/Network/Receive.pm line 2041.

Stack trace: 'X' outside of string in unpack at src/Network/Receive.pm line 2041. at src/Interface/Wx.pm line 163 Interface::Wx::mainLoop('Interface::Wx=HASH(0x469594c)') called at openkore.pl line 97 main::__start() called at start.pl line 136

Died at this line: $msg = substr($spellInfo, $i, 19);

  •   ($ID, $sourceID, $x, $y, $type, $range, $fail) = unpack('a4 a4 v3 X3 C2', $msg);
    

Glikadin avatar Feb 28 '17 20:02 Glikadin

I received this too, wasn't around to see the particulars.

The line in question is part of

#09CA sub area_spell_multiple3 {

This was last changed in 8ca404f4e73909f2dd2ab91fa33b62ed9c2935cf on November 13, 2015.

Did we have a packet change on official servers that effects this?

ChrstphrR avatar Mar 01 '17 13:03 ChrstphrR

This problem arose after I completely updated Openkore for Doram Ubdate on iRo. Look this screenshot: http://i.piccy.info/i9/a859ca283dbb910e93b5451c51d39c94/1488390397/132993/1124185/bug.jpg Fix it pls.

Glikadin avatar Mar 01 '17 17:03 Glikadin

The only change was 👍 in /Receive/ServerType0.pm. @ChrstphrR Do you think reversing it will work ?

ghost avatar Jul 27 '17 20:07 ghost

maybe the size of 09CA is wrong in recvpackets

someone is getting this error yet?

alisonrag avatar Nov 12 '17 13:11 alisonrag