Openkore: Error on Unknown charBlockSize: at src/Network/Receive.pm line 672.

Created on 15 Jul 2019  Â·  39Comments  Â·  Source: OpenKore/openkore

------------------ Openkore Issues Template ------------------





  • Openkore version git:
  • Server:
  • Bug Report / Feature Request:
  • Summary:
Hello I am using the latest updated (updated using TortoiseSVN) and I am receiving this error: 
Unknown charBlockSize:  at src/Network/Receive.pm line 672.
 at src/Network/Receive.pm line 672
    Network::Receive::received_characters_unpackString('Network::Receive::kRO::Sakexe_2008_03_25b=HASH(0x666a344)') called at src/Network/Receive.pm line 709
    Network::Receive::received_characters('Network::Receive::kRO::Sakexe_2008_03_25b=HASH(0x666a344)', 'HASH(0x6abbe6c)') called at src/Network/Receive.pm line 703
    Network::Receive::received_characters_slots_info('Network::Receive::kRO::Sakexe_2008_03_25b=HASH(0x666a344)', 'HASH(0x6abbe6c)') called at src/Network/Receive.pm line 856
    Network::Receive::received_characters_info('Network::Receive::kRO::Sakexe_2008_03_25b=HASH(0x666a344)', 'HASH(0x6abbe6c)') called at src/Network/PacketParser.pm line 276
    Network::PacketParser::parse('Network::Receive::kRO::Sakexe_2008_03_25b=HASH(0x666a344)', 'k\x{0}\x{84}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{f6}K\x{2}\x{0}\x{ac}\x{0}\x{0}\x{0}2\x{2}\x{0}\x{0}\x{82}\x{1}\x{0}\x{0}\x{a}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}...', 'Network::Receive::kRO::Sakexe_2008_03_25b=HASH(0x666a344)') called at src/Network/Receive.pm line 493
    Network::Receive::parse('Network::Receive::kRO::Sakexe_2008_03_25b=HASH(0x666a344)', 'k\x{0}\x{84}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{f6}K\x{2}\x{0}\x{ac}\x{0}\x{0}\x{0}2\x{2}\x{0}\x{0}\x{82}\x{1}\x{0}\x{0}\x{a}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}\x{0}...', 'Network::Receive::kRO::Sakexe_2008_03_25b=HASH(0x666a344)') called at src/Network/PacketParser.pm line 410
    Network::PacketParser::process('Network::Receive::kRO::Sakexe_2008_03_25b=HASH(0x666a344)', 'Network::MessageTokenizer=HASH(0x3a4eb44)', 'Network::Receive::kRO::Sakexe_2008_03_25b=HASH(0x666a344)') called at src/functions.pl line 757
    main::mainLoop_initialized() called at src/functions.pl line 75
    main::mainLoop() called at src/Interface.pm line 75
    Interface::mainLoop('Interface::Console::Win32=HASH(0x327557c)') called at openkore.pl line 97
    main::__start() called at start.pl line 136

Died at this line:
          } else {
*           die "Unknown charBlockSize: $_";
        }

this is the server I am using:

[midgar]
ip 104.248.237.34
port 6900
version 20
master_version 1
serverType kRO_Sakexe_2008_03_25b
addTableFolders 
serverEncoding Western
charblocksize 106
recvpackets recvpackets.txt

I have noted that if I change serverType to 8_1 I dont receive any error, however it never connects to char map, this is the error:

---------------------- Servers ----------------------
#   Name                  Users  IP              Port
0   MidgarKingdom!        35     104.248.237.34  6121
-----------------------------------------------------
Closing connection to Account Server
Disconnecting (104.248.237.34:6900)...disconnected
Connecting to Character Server...
Selected server: MidgarKingdom!
Connecting (104.248.237.34:6121)... connected
Timeout on Character Select Server, reconnecting...
Disconnecting (104.248.237.34:6121)...disconnected

I've tried updating serverType and charblocksize to many different ones, but I never get to connect.

I have extracted recvpackets.txt as well but I dont think that could be the problem.
what could be the issue on this case?
I have around a week trying to make this work and I am getting frustrated now.

Most helpful comment

srcNetworkReceivekROSakexe_0.pm

change from:
'006B' => ['received_characters_info', 'v C3 x20 a*', [qw(len total_slot premium_start_slot premium_end_slot charInfo)]], # last known struct

to:
'006B' => ['received_characters_info', 'v x20 a*', [qw(len charInfo)]], # last known struct

and use
charBlockSize 108

All 39 comments

client 2008 lollll

https://github.com/OpenKore/openkore/issues/2827#issuecomment-511250624

I know right!!! But thats the info I got with PE viewer

@senincito

can u check in game?

are sure client is 2008?

@senincito

can u check in game?

are sure client is 2008?

look at this:
image

Im reopening the case since a solution has not being provided to my request or there is no reason added of why the issue was closed, if there is a reason could you please let me know to understand why this was closed?

image

i think you should ask for yourself the reason

must be charBlockSize not charblocksize.

B and S must be capital letter

OMG I must be crazy, anyhow, issue still open so I am open to your suggestions. I am very frustrated at this point.

servers.txt:

must be charBlockSize not charblocksize.

B and S must be capital letter

servers.txt:

must be charBlockSize not charblocksize.
B and S must be capital letter

I've updated to charBlockSize and issue looks fixed, however I get wrong char information, I've tried all from the list but are not working (list: http://openkore.com/index.php/CharBlockSize).
Any other suggestion?

image

control/config.txt
debugPacket_received 1

before charselection you gonna see 006B or 082D or 099D with length/size in bytes.
to know the right charblocksize
(size - 4) / total chars in account

this is the result:
image

Where do I translate this to the right charBlocksize?
BTW I only have 2 chars

118 ?
image

I have added 118 and this is the result:
image

checking errors.txt this is the information:
Error message:
Unknown charBlockSize: 118 at src/Network/Receive.pm line 672.

Stack trace:
Unknown charBlockSize: 118 at src/Network/Receive.pm line 672.
at src/Network/Receive.pm line 672
Network::Receive::received_characters_unpackString('Network::Receive::kRO::Sakexe_2008_03_25b=HASH(0x6663434)') called at src/Network/Receive.pm line 709
Network::Receive::received_characters('Network::Receive::kRO::Sakexe_2008_03_25b=HASH(0x6663434)', 'HASH(0x6a10dcc)') called at src/Network/Receive.pm line 703
Network::Receive::received_characters_slots_info('Network::Receive::kRO::Sakexe_2008_03_25b=HASH(0x6663434)', 'HASH(0x6a10dcc)') called at src/Network/Receive.pm line 856
Network::Receive::received_characters_info('Network::Receive::kRO::Sakexe_2008_03_25b=HASH(0x6663434)', 'HASH(0x6a10dcc)') called at src/Network/PacketParser.pm line 276
Network::PacketParser::parse('Network::Receive::kRO::Sakexe_2008_03_25b=HASH(0x6663434)', 'kx{0}x{f0}x{0}x{0}x{0}x{0}x{0}x{0}x{0}x{0}x{0}x{0}x{0}x{0}x{0}x{0}x{0}x{0}x{0}x{0}x{0}x{0}x{0}x{98}Lx{2}x{0}x{a7}x{1}x{0}x{0}Hx{3}x{0}x{0}x{c}x{0}x{0}x{0}x{9}x{0}x{0}x{0}x{0}x{0}x{0}x{0}x{0}x{0}x{0}x{0}x{0}x{0}x{0}x{0}x{0}x{0}x{0}x{0}x{0}...', 'Network::Receive::kRO::Sakexe_2008_03_25b=HASH(0x6663434)') called at src/Network/Receive.pm line 493
Network::Receive::parse('Network::Receive::kRO::Sakexe_2008_03_25b=HASH(0x6663434)', 'kx{0}x{f0}x{0}x{0}x{0}x{0}x{0}x{0}x{0}x{0}x{0}x{0}x{0}x{0}x{0}x{0}x{0}x{0}x{0}x{0}x{0}x{0}x{0}x{98}Lx{2}x{0}x{a7}x{1}x{0}x{0}Hx{3}x{0}x{0}x{c}x{0}x{0}x{0}x{9}x{0}x{0}x{0}x{0}x{0}x{0}x{0}x{0}x{0}x{0}x{0}x{0}x{0}x{0}x{0}x{0}x{0}x{0}x{0}x{0}...', 'Network::Receive::kRO::Sakexe_2008_03_25b=HASH(0x6663434)') called at src/Network/PacketParser.pm line 410
Network::PacketParser::process('Network::Receive::kRO::Sakexe_2008_03_25b=HASH(0x6663434)', 'Network::MessageTokenizer=HASH(0x3af6c84)', 'Network::Receive::kRO::Sakexe_2008_03_25b=HASH(0x6663434)') called at src/functions.pl line 757
main::mainLoop_initialized() called at src/functions.pl line 75
main::mainLoop() called at src/Interface.pm line 75
Interface::mainLoop('Interface::Console::Win32=HASH(0x32359c4)') called at openkore.pl line 97
main::__start() called at start.pl line 136

Died at this line:
} else {

  • die "Unknown charBlockSize: $_";
    }

Hello Any feedback on this you can provide?

Just to make sure, you did try any of this, do you?

Just to make sure, you did try any of this, do you?

yes, all of 'em

Any idea what could be causing this issue?

here's easy way to find the correct charblocksize
create 2 chars
sniff the packet , packet you receive the chars name
the spaces between 1st name to 2nd char name, is your charblocksize
let say your first char is "abcde" than 2nd char name is "xyz"
start from "a" and stop before "x" , that's your charblocksize

Old servers use old and maybe unsurpoted char block size

You can create a new char and sub the difference in size
006b is different from.others parse character

i've created another char, then the new result is 524-4/5 = 104... but this is not supported.

I've used openkore on this server like 10 years ago, obviously I dont have the files I've used in the past and it worked perfectly.
I dont think they have changed anything, the owner is very lazy. But I cannot make it work, saddly.

this is the last result using charBlockSize 106 as default.

image

Seems 108, test it and send screenshot

I've tried 108 but names are not correct, it manages to connect... but only works with one char, when I try to change char, char doesnt change.

image
image

that leaves a right amount of guesswork to your charblocksize. understand first what char block size is. you can easily find the right number by a lot of testing though.

that leaves a right amount of guesswork to your charblocksize. understand first what char block size is. you can easily find the right number by a lot of testing though.

i've tried each one from the openkore list

Other sizes not listed will only crash openkore

006b need update

Where I can get that update?

El vie., 19 jul. 2019 8:32 a. m., Alison Serafim notifications@github.com
escribió:

006b need update

—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/OpenKore/openkore/issues/2827?email_source=notifications&email_token=AMTSUEKPQBPE4MRZZ7SCMSDQAHF73A5CNFSM4IDSNSH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2LZV4A#issuecomment-513252080,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AMTSUEN5NDNZVWC5FWXALQTQAHF73ANCNFSM4IDSNSHQ
.

I think wait @alisonrag update it ...

give me server link

Midgarkingdom.tk is the server link.

El vie., 19 jul. 2019 9:03 p. m., Alison Serafim notifications@github.com
escribió:

give me server link

—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/OpenKore/openkore/issues/2827?email_source=notifications&email_token=AMTSUEPHULNT625QQ2EWRK3QAJ56TA5CNFSM4IDSNSH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2NFERY#issuecomment-513430087,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AMTSUEPY2H7JB4XJHNPTJIDQAJ56TANCNFSM4IDSNSHQ
.

srcNetworkReceivekROSakexe_0.pm

change from:
'006B' => ['received_characters_info', 'v C3 x20 a*', [qw(len total_slot premium_start_slot premium_end_slot charInfo)]], # last known struct

to:
'006B' => ['received_characters_info', 'v x20 a*', [qw(len charInfo)]], # last known struct

and use
charBlockSize 108

It is working now at 100%!!!!!!!!
thank you all for your time and helping me to fix this.

@alisonrag pull request please

this server uses to old version of 006B, maybe the only one in earth hahah
it will mess with all other servers that use this 006B updated

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Keeynt picture Keeynt  Â·  4Comments

restartowi picture restartowi  Â·  5Comments

ncplay91 picture ncplay91  Â·  4Comments

kumulo123 picture kumulo123  Â·  5Comments

ramojskie picture ramojskie  Â·  5Comments