Skip to content

libd2 v0.6.3 — MPQ, a net C ABI, and bindings that tell the truth

Choose a tag to compare

@jaenster jaenster released this 22 Aug 19:44
· 99 commits to main since this release

The largest release since the monorepo formed: twenty-one commits, most of them about
reading the game's own files and about the bindings telling the truth.

  • MPQ archives, protected ones included — d2-formats reads the game's containers
    directly rather than being handed loose files.
  • A C ABI for d2-net, and a place for it in the combined wasm; every command is now
    the length the engine actually frames it at.
  • d2-world: how a unit really travels between subtiles, and d2-client reads 0x67
    as the move it is instead of remembering a level it has left.
  • A heap worth using on wasm in d2-core, with a way to see what it holds.
  • Both bindings were shipping a lie about the ABI. Go expected a version the embedded
    library did not report; .NET asserted 3 while nuget.yml compiles natives that report 5,
    so the next publish would have failed on first use. Neither had a build or test in any
    workflow to catch it — now Go's natives are built in CI and the tests run on pull requests.
  • npm gets one wasm and an API about the game rather than about the wasm.