Skip to content
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

Support new Int_Array tag; change Byte_Array tag to use byte arrays #2

Closed
wants to merge 4 commits into from

Conversation

BartMassey
Copy link
Contributor

The first commit adds support for the new Int_Array tag introduced with Anvil. The payload is represented in Haskell as a UArray Int32 Int32 .

The second commit changes the Haskell payload representation of Byte_Array to be UArray Int32 Int8 . This latter representation seems better to me for several reasons: Minecraft bytes are supposed to be signed, indexing efficiency should be better, parallels Int_Array.

I am currently working on a Haskell round-tripping translator from Minecraft level files to XML. So far, the translator can properly decode region files in Anvil .mca format, but hasn't yet done anything with that. Thanks huge for Data.NBT, which is a big help on this project!

@acfoltzer
Copy link
Owner

Should I wait to merge this until you make the further developments discussed in email?

@BartMassey
Copy link
Contributor Author

Sorry--somehow missed your comment here earlier. Yes, please go ahead and pull what I have now, and I'll close out my fork for the moment. I want to finish up with the actual MC stuff before I go back to the NBT.

@ghost
Copy link

ghost commented Mar 13, 2013

I think this has been fixed by the merging of #5.

@acfoltzer
Copy link
Owner

Yes, the commits from this pull request were in #5.

@acfoltzer acfoltzer closed this Mar 13, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants