nice work as always fairchild








nice work as always fairchild
Serious_M
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:
be 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);
and same for the compress method?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);
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.
Last edited by maskedstick; 08-16-2012 at 05:45 PM.

how can use in VB.NET? i will programming a simple tool for me to Compress and DeCompress the file.
If you feel like donating some bit coins, please do so to address "1DNcjKhrVTGnKTyQYbjx8yTRoenTSySeoP", if you are interested in other projects visit www.chipit.se or www.baeckstrom.com, thanks!

i can decompress savegame.dat under 9MB but if the file is big over 9MB, crash the Decompressor, plz fix
If you feel like donating some bit coins, please do so to address "1DNcjKhrVTGnKTyQYbjx8yTRoenTSySeoP", if you are interested in other projects visit www.chipit.se or www.baeckstrom.com, thanks!
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.
