JKChat icon indicating copy to clipboard operation
JKChat copied to clipboard

Unable to join some servers

Open VapourUK opened this issue 4 years ago • 8 comments

Some servers give this message

`ParseGamestate: bad command byte

at JKClient.JKClient.ParseGamestate (JKClient.Message msg) <0x1029ab6e0 + 0x00538> in <562819ea416f4ec7b28904a828b8da40#292ada85d3b0bbfd350a324c511caba2>:0 at JKClient.JKClient.ParseServerMessage (JKClient.Message msg) <0x1029ab4d0 + 0x0017f> in <562819ea416f4ec7b28904a828b8da40#292ada85d3b0bbfd350a324c511caba2>:0 at JKClient.JKClient.PacketEvent (JKClient.NetAddress address, JKClient.Message msg) <0x1029a7600 + 0x00133> in <562819ea416f4ec7b28904a828b8da40#292ada85d3b0bbfd350a324c511caba2>:0 at JKClient.NetClient.GetPacket () <0x1029bbcd0 + 0x000bf> in <562819ea416f4ec7b28904a828b8da40#292ada85d3b0bbfd350a324c511caba2>:0 at JKClient.JKClient.Run () <0x1029ad050 + 0x00193> in <562819ea416f4ec7b28904a828b8da40#292ada85d3b0bbfd350a324c511caba2>:0 `

tried both on iOS and Android both the same error

VapourUK avatar Jun 24 '21 23:06 VapourUK

Hi.

What exact servers did you try to connect to?

List them or just show a screenshot, please.

entdark avatar Jun 25 '21 13:06 entdark

900BA37D-29E3-40AD-9CDB-DAC426507F31

half of the mb2 servers

VapourUK avatar Jun 25 '21 14:06 VapourUK

Yeah, I know about that issue. The problem is in encoding game entities. And it's different in MBII.

Fixing it is very simple but some of MBII devs asked me to not add that because:

  1. they think it's illegal (which is wrong since encoding data is publicly available);
  2. they fear people will exploit the app to fill servers with bots or do some other bad things.

I respect their request so I did not add that special encoding, but maybe I will add the feature eventually in the future. That is a dilemma for me now.

Sorry for having the negative experience.

Though if you are a programmer I can tell you what you should do to fix it so you could build an app for yourself.

entdark avatar Jun 25 '21 16:06 entdark

Oooh i see now, It's not a problem but why does some of the MB2 work though, for example AOD Honor Duels? is it because its not loading Open mode assets?

I haven't developed in long time for mobile but would like to have a look at it.

VapourUK avatar Jun 25 '21 16:06 VapourUK

You are close. That depends on maps and maps configuration. In the very beginning some special entities are parsed out anyways if they are presented in the map data. That's where it fails. If the map doesn't have those special entities then initial parsing (GameState) passes and everything works.

entdark avatar Jun 25 '21 19:06 entdark

Actually I could try to make some changes yet to please the MBII devs' request. I will try that on this weekend, so don't bother fixing it yourself for now.

entdark avatar Jun 25 '21 19:06 entdark

Ok not a problem let me know how it goes, my plan for this was just to create an app for inner clan members and who ever has admin role on the server they can just go into the app and deal with any problems there, but normal normal members won't have access. as you can perform smod commands in the chat and only see selected servers.

VapourUK avatar Jun 25 '21 22:06 VapourUK

Unfortunately there is no way to make it working without adding support for MBII explicitly. So I won't make it. We discussed everything in PM though, just reporting here.

entdark avatar Jun 28 '21 10:06 entdark