You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Getting an error "Top tag should be a compound". Would be nice if it supported arrays and list too. Other types are probably readable just with hex dump I guess...
The text was updated successfully, but these errors were encountered:
The top tag not being a compound is usually a good early indication that the file is corrupted. Maybe it would make sense to show a prompt asking whether to load the file anyways?
Not really good early indication that the file is corrupted, while client or server usually produces/uses nbt files that have root compound it does not mean that all files are root compound.
I think there are other ways of detecting if file is corrupted (probably parse it completely first and then decide if it junk or not) aside from magic root compound, besides even with root compound magic there is a good possibility that internal tags within compound are broken (I seen a lot of those being produced by go-mc library for example).
I would say a prompt with 4 choices is a good way to go: Close, View xxd dump, Open this file, Open and don't ask again.
Even if file is corrupted, what's the worst that can happen?
Getting an error "Top tag should be a compound". Would be nice if it supported arrays and list too. Other types are probably readable just with hex dump I guess...
The text was updated successfully, but these errors were encountered: