-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fails to parse TAG_LIST since 1.7 (didn't test with any snapshots) #73
Comments
Thanks for your report. Either Mojang added another type to the NBT files, or your file somehow got corrupted. If it is not too much trouble, could you email the scoreboard.dat file to me? My email address is on my Github page (http://github.com/macfreek) |
File certainly isn't corrupted as both minecraft and my own tool https://github.com/schoentoon/nbtcurses are able to read it. Will email you the scoreboard.dat in a bit. |
Indeed, a bug in the NBT library is a rather likely cause too. :). File received also gives the same error here. I'll have a look, hopefully tonight. |
I found the cause.Your file contains a rather odd TAG_List. The syntax of a TAG_List is as follows:
The type of the TAG_List in your file was 0x00 -- a TAG_End, and the length was also 0x00000000 -- zero length. The TAG_End is surprising, and why the NBT library raised the Exception. Normally, a List contains actual objects. So far, I've only seen TAG_Ends used to indicate the end of a TAG_Compound, never elsewhere. I'll commit a change shortly that should add support for TAG_Lists with TAG_End objects.
[Edit: fix formatting of list] |
Wonderful, will I be able to install this fix through easy_install or will I have to do an install from source? |
Fixed in 0f3ccff |
@macfreek It's probably time to do a new pypy release, yes? |
You will have to install from source -- that said, we should release 1.4 of NBT. For good measure, I won't do it right after a code change, but tomorrow might be a good time. Ideally, I should write a test for this behaviour. However, if you are willing to download the source, and test if it works fine for you, that would be good enough for me. The automated testing gives no problems either. |
@twoolie yes master, it is Time. (Sorry, couldn't resist saying that :) ) |
@schoentoon you can install it super easily like this:
|
@twoolie Oh thanks that's very useful. I'll install it later though, have to explore all the new biomes first ;) Edit: Confirmed that it fixed my issue. |
I upgraded our server from 1.6.4 to 1.7.2 yesterday and suddenly one of my scripts to print the death counters stopped working. After looking into it it turns out it suddenly fails to parse the TAG_LIST.
Example of what I did to reproduce below. Please note that the scoreboard in minecraft is in fact filled with some objectives.
[edit code formatting -- MacFreek]
The text was updated successfully, but these errors were encountered: