1.0.0-beta.17 • Published 4 years ago

@evasuo/uo-packets v1.0.0-beta.17

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
4 years ago

@evasuo/packets

coverage report pipeline status

Ultima Online packet reader/writer

A tool for building and reading Ultima Online packets.

Supports

  • ✅ NodeJS
  • ✅ Browser Javascript

Example Usage

/**
 * Create a packet to tell the client which server to connect to.
 */
import x8CPacket from "@evasuo/uo-packets/packets/x8C";

x8CPacket =  new x8CPacket({gameServerIP: '127.0.0.1', gameServerPort: 2593, key: 1234});
x8CPacket.toBuffer();
/**
 * Parse a packet that was sent by the server or the client
 */
import Packets from "@evasuo/uo-packets";

/** @var {Buffer} someUOPacket */
const someUOPacket = dataRecieved;
/** The first byte sent by the client or the server is the command */ 
const uoPacketData = Packets.fromBuffer(someUOPacket)

console.log(uoPacketData.toObject()) // ex: {gameServerIP: '127.0.0.1', gameServerPort: 2593, key: 1234}

Contributing Guidelines

  1. Use yarn commit
  2. After committing, yarn release-beta, yarn release-alpha, or yarn release
  3. Publishing (limited access) yarn publish
1.0.0-beta.17

4 years ago

1.0.0-beta.15

4 years ago

1.0.0-beta.16

4 years ago

1.0.0-beta.14

4 years ago

1.0.0-beta.11

4 years ago

1.0.0-beta.12

4 years ago

1.0.0-beta.10

4 years ago

1.0.0-beta.13

4 years ago

1.0.0-beta.9

4 years ago

1.0.0-beta.8

4 years ago

1.0.0-beta.7

4 years ago

1.0.0-beta.6

4 years ago

1.0.0-beta.5

4 years ago

1.0.0-beta.4

4 years ago

1.0.0-beta.3

4 years ago

1.0.0-beta.2

4 years ago