Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Currently does not work for Movie Battle 2 servers. #1

Open
Crogarox opened this issue Dec 17, 2021 · 2 comments
Open

Currently does not work for Movie Battle 2 servers. #1

Crogarox opened this issue Dec 17, 2021 · 2 comments

Comments

@Crogarox
Copy link

When trying to join with ether the base API for the JKChat project I would get this error showing up.

System.AggregateException: One or more errors occurred. (ParseGamestate: bad command byte) ---> JKClient.JKClientException: ParseGamestate: bad command byte
at JKClient.JKClient.ParseGamestate (JKClient.Message msg) [0x002cd] in :0
at JKClient.JKClient.ParseServerMessage (JKClient.Message msg) [0x000e3] in :0
at JKClient.JKClient.PacketEvent (JKClient.NetAddress address, JKClient.Message msg) [0x000b0] in :0
at JKClient.NetClient.GetPacket () [0x00030] in :0
at JKClient.JKClient.Run () [0x000c7] in :0
--- End of inner exception stack trace ---
---> (Inner Exception #0) JKClient.JKClientException: ParseGamestate: bad command byte
at JKClient.JKClient.ParseGamestate (JKClient.Message msg) [0x002cd] in :0
at JKClient.JKClient.ParseServerMessage (JKClient.Message msg) [0x000e3] in :0
at JKClient.JKClient.PacketEvent (JKClient.NetAddress address, JKClient.Message msg) [0x000b0] in :0
at JKClient.NetClient.GetPacket () [0x00030] in :0
at JKClient.JKClient.Run () [0x000c7] in :0 <---

Rethrown Exception

baseja and OpenJK servers work fine though, great work overall!

@entdark
Copy link
Owner

entdark commented Dec 20, 2021

Hi.
Check this issue with some explanations: entdark/JKChat#1

If you want to make it work then you need to add implementations for entityStateFieldsMBII and playerStateFieldsMBII with modified net fields:

private static readonly NetFieldsArray entityStateFieldsMBII = entityStateFields;

private static readonly NetFieldsArray playerStateFieldsMBII = playerStateFields;

The modified fields could be found in MBII assets.

@TomArrow
Copy link

I added the needed overrides to my fork. Seems to connect now. Copy them if you like.
TomArrow@cd4f387

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants