Re: Minecraft XBLA Compression Library
nice work as always fairchild
Re: Minecraft XBLA Compression Library
Thank you, I finally got it working. This is truly amazing. But I noticed one thing (which, in practice, doesn't make a difference):
Shouldn't this:
Code:
[DllImport("libminecraft.dll", CallingConvention = CallingConvention.Cdecl)]
public static extern uint decompress([Out] byte[] compressed_buffer, uint compressed_size, [In] byte[] decompressed_buffer, uint decompressed_size);
be this?
Code:
[DllImport("libminecraft.dll", CallingConvention = CallingConvention.Cdecl)]
public static extern uint decompress([In] byte[] compressed_buffer, uint compressed_size, [Out] byte[] decompressed_buffer, uint decompressed_size);
and same for the compress method?
It seems that in the decompress method, the compressed_buffer is what's going IN to the method to be processed, and the decompressed_buffer is what's coming OUT.
Like I said, in practice, there's no difference, but I wanted to help get rid of confusion.
Re: Minecraft XBLA Compression Library
how can use in VB.NET? i will programming a simple tool for me to Compress and DeCompress the file.
Re: Minecraft XBLA Compression Library
Quote:
Originally Posted by
maskedstick
Thank you, I finally got it working. This is truly amazing. But I noticed one thing (which, in practice, doesn't make a difference):
Shouldn't this:
Code:
[DllImport("libminecraft.dll", CallingConvention = CallingConvention.Cdecl)]
public static extern uint decompress([Out] byte[] compressed_buffer, uint compressed_size, [In] byte[] decompressed_buffer, uint decompressed_size);
be this?
Code:
[DllImport("libminecraft.dll", CallingConvention = CallingConvention.Cdecl)]
public static extern uint decompress([In] byte[] compressed_buffer, uint compressed_size, [Out] byte[] decompressed_buffer, uint decompressed_size);
and same for the compress method?
It seems that in the decompress method, the compressed_buffer is what's going IN to the method to be processed, and the decompressed_buffer is what's coming OUT.
Like I said, in practice, there's no difference, but I wanted to help get rid of confusion.
That might be right, i'm no expert in C# and i rarely code things using this language.
Re: Minecraft XBLA Compression Library
i can decompress savegame.dat under 9MB but if the file is big over 9MB, crash the Decompressor, plz fix
Re: Minecraft XBLA Compression Library
Quote:
Originally Posted by
OzelotDEHD
i can decompress savegame.dat under 9MB but if the file is big over 9MB, crash the Decompressor, plz fix
Can you upload your savegame somewhere so that i can take a look?
Re: Minecraft XBLA Compression Library
Has anyone gotten this to work with C#? If so, can you post a code sample? I get an AccessViolationException whenever I try to decompress a save file. Not knowing the slightest thing about C++, I'm not sure what to do.
Re: Minecraft XBLA Compression Library
Quote:
Originally Posted by
fairchild
I implemented this in NBTExplorer, but now i want to know which is the best map editor that is open source so that i can modify that to use xbox360 savegames. :)
MCEdit is open source, its writen in Python not sure if thats a problem