PrismarineJS / PrismarineJS/node-minecraft-protocol
Deserialize without client or server
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.4k
- Forks
- 290
- Avg merge
- 4d 8h
- Merged PRs (30d)
- 7
Description
I have a very simple tcp proxy setup similar to https://gist.github.com/kfox/2313683
It listens on ip address and forwards the packets to the minecraft server listening on localhost.
I don't care about most of the packets I just want to parse the handshake packet as well as ping packets. Is there a way to do this with the library without creating an entire client or server.
I have tried with the code below but I get errors on ping packet or connection as listed below. The variable data below is the raw buffer from the remote connection.
Thanks
const parse = mc.createDeserializer({ state: 'handshaking', isServer: false, version: '1.13.1' })
console.log('parse: ', parse.parsePacketBuffer(data))
Error: Read error for name : 20 is not in the mappings value
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the createDeserializer and parsePacketBuffer entry points shown in the issue, using the raw buffer from the TCP proxy and the 1.13.1 handshaking configuration. Compare parsing of handshake and ping packets, then verify that standalone deserialization works without creating a client or server and no longer produces the reported mappings error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- networking
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100