Comments (4)
I can confirm that this change also breaks schematic created with Litemapy for Litematica (see the Github mention above). Decompressing the file, adding a trailing null byte and re-compressing it works and allows the file to load both in game with Litematica and in NBTExplorer.
from nbtlib.
Oh right I didn't think about that, I was kind of in a rush sorry. I'm gonna try to go over all this in a few days. In the meantime I think the 2.x releases should be considered experimental and unstable.
from nbtlib.
I'd like to understand why File had this setting in the first place
because mojang write that...
the file is some thing like that iirc:
tagtypeid lenofname name data
and no end tag after "data"
just like a len=1 compound without end. eg:
{"":data
that is why the File class set end_tag = b""
from nbtlib.
I'd like to understand why File had this setting in the first place
because mojang write that... the file is some thing like that iirc:
tagtypeid lenofname name data and no end tag after "data" just like a len=1 compound without end. eg: {"":data
that is why the File class set end_tag = b""
That is not accurate, at least not for recent versions of Minecraft: level.dat
, all map_*.dat
files including idcounts.dat
, and also chunk data, they all have a trailing NUL byte. NBT Explorer does not even show the file if it doesn't have the trailing byte, so likely Mojang does so from a long time.
from nbtlib.
Related Issues (20)
- Add on to a .dat file HOT 1
- servers.dat issues. HOT 1
- Root creates an spurious Compound that is not in actual NBT data HOT 19
- `Path` cannot add or init integers, only strings and other Paths HOT 2
- Preserve type on List.copy() and slicing HOT 5
- Improve `read_numeric()` to vastly increase `parse()` performance for all tags HOT 4
- Array tags are immutable views, not editable ndarrays HOT 9
- `nbtlib 2.0` HOT 16
- Add `Path.from_parts()` or similar to allow tuple constructor like `pathlib.Path` HOT 8
- Investigate schema improvements/autocast HOT 7
- How to add a server in servers.dat? HOT 2
- Iterate NBT HOT 4
- Can't read FTB Quests NBT HOT 2
- How to get JSON info as intuitively as CLI? HOT 1
- if just have one value in list ,i got error HOT 2
- Use modified utf-8 for encoding and decoding strings HOT 2
- nbtlib.Long can not set 64bytes value HOT 1
- a minor issue of index of list.
- How to use/initialize nbtlib.ByteArray? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nbtlib.