valence icon indicating copy to clipboard operation
valence copied to clipboard

Anvil file format support

Open rj00a opened this issue 2 years ago • 2 comments

In a separate valence_anvil crate at the root of the repo, support for anvil should be implemented (Both serialization and deserialization).

I've implemented a partial anvil deserializer before, but... I can't find it. Here are some things I would expect the library to have:

  • Parallelization through rayon. In my deserializer I parallelized over each region.
  • Support for both encoding and decoding.
  • Chunk data saved to UnloadedChunk.
  • Lazy loading so we don't have to load the whole world into memory at once.

Supporting saves made with older version of the game is probably out of scope. No need to reimplement data fixer upper.

rj00a avatar Sep 03 '22 00:09 rj00a

https://github.com/owengage/fastnbt has fastanvil for anvil files. Maybe that could help.

XBagon avatar Sep 06 '22 00:09 XBagon

I would like to help with this 😃

TerminatorNL avatar Oct 08 '22 06:10 TerminatorNL

The approach described here has deviated significantly from what is now planned in #288.

rj00a avatar Apr 22 '23 00:04 rj00a