Convert Minecraft server world files into MCserver world files.
#41
The NBT stuff is a tree, and therefore recursive, so it might be easiest to create functions for each label type in the NBT data (like I did in my parser).

I think you can use my parser just fine, I'm not sure though.
The constructor of the cNBTData class takes a pointer to the beginning of the COMPRESSED NBT data, and the length of the data. After you created an instance of cNBTData you call Decompress() on it and then ParseData(), if you want to see if the data has been parsed correctly you can call PrintData(), and it will recursively print all the data to the console.

My parser misses the Byte array tag though, since that didn't exist when I wrote it, so you'd have to add itTongue

On a side note, I designed my parser in a strange way lol, I never created a parser for anything before and this was my first attempt. It works, but it's unconventional
Reply
Thanks given by:


Messages In This Thread
RE: Convert Minecraft server world files into MCserver world files. - by FakeTruth - 10-30-2011, 11:00 AM



Users browsing this thread: 2 Guest(s)