Skip to content

Releases: ethanmoffat/eolib-go

v2.0.1

01 May 01:55
5d021aa
Compare
Choose a tag to compare

Fixed:

  • Use Offset property for length fields that specify it. Fixes bug where map signs had incorrect Title length data during serialize/deserialize.

Pull requests:

  • #16 - Use Offset from protocol spec when generating code

v2.0.0

11 Apr 23:48
a011b87
Compare
Choose a tag to compare

Added:

  • Top-level package docs are now available
  • Server pub files are now generated

Updated:

  • Code generation now uses a proper codegen library (github.com/dave/jennifer)

Fixed:

  • NPC_AGREE server packet - npc count is now the correct type (char)
  • Arena packets have correct chunking delimiters
  • Added comments to various struct members
  • JUKEBOX_MSG - remove chunking
  • GUILD_BUY - fix typo
  • GUILD_TAKE - add missing guild tag
  • AVATAR_ADMIN - fix field order
  • EFFECT_AGREE/EFFECT_PLAYER - update packet data to be arrays
  • CharacterStatsInfoLookup - secondary stats field type fixed

Pull requests:

  • #11 - Add top-level package docs
  • #12 - Update protocol to latest (2023-12-30)
  • #13 - Modify struct code generation
  • #14 - Use codegen library Jennifer
  • #15 - Update protocol to latest (2024-04-11)

v1.1.2

07 Nov 18:15
51d19a0
Compare
Choose a tag to compare

Added:

  • None

Updated:

  • Added session ID to bank packets (protocol update)

Fixed:

  • None

Pull requests:

  • #10 - Update eo-protocol to latest version (adds session ID to bank packets)

v1.1.1

09 Aug 04:49
1659fe3
Compare
Choose a tag to compare

Added:

  • None

Updated:

  • None

Fixed:

  • Add support for optional attribute in protocol XML (was previously ignored). Optional values will no longer be serialized/deserialized if they are not present in data.
  • Fix deserialize bug for slices of primitive types. Data was incorrectly deserialized directly to the current index of the slice without first appending a new element to the slice, which would cause a panic.

Pull requests:

  • #9 - Add support for optional values from protocol XML (and other codegen bug fixes)

v1.1.0

05 Aug 03:21
dfedccf
Compare
Choose a tag to compare

Added:

  • EoReader methods: Slice, SliceFromIndex, and SliceFromCurrent.

Updated:

  • eo-protocol bumped to version Cirras/eo-protocol@7032f45.
  • breaking change Serialize/Deserialize now take a pointer to an EoWriter/EoReader.
  • breaking change GenerateXXX methods for sequences now take a pointer to a rand.

Fixed:

  • EoReader Remaining method could sometimes return a negative value in chunked reading mode.
  • Sequence generation in InitSequence used the incorrect formula.

Pull requests:

  • #7 - Add Slice method for EoReader.
  • #8 - Fix init sequence generation and change method signature for Serialize/Deserialize.

v1.0.0

25 Jul 17:10
e463a81
Compare
Choose a tag to compare

Initial release. Contains generated code for the EO v0.0.28 protocol, as well as functions for:

  • Encoding/decoding numbers and strings
  • Reading/writing EO data
  • Managing sequence numbers
  • Verifying server hash

Helper functions also exist for:

  • Converting a packet ID to a strongly-typed implementation of the net.Packet interface