HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

The need of a .net mpq assembly

03-05-2006, 07:55 PM#1
Vexorian
Has anyone succeded in wrapping SFMPQ.dll for .net or is there any (project to have a) .net mpq library.

With vista coming along with the advances on MONO and dotgnu most likelly we will need something for .net. And I'd actually want to make the optimizer in C sharp, long but true history
03-05-2006, 08:16 PM#2
Zoxc
http://www.blackpawn.com/war3/
This one uses .NET, but no source code released.
03-05-2006, 11:50 PM#3
PitzerMike
Nice tool, I didn't know this yet.
Who might have made it?
03-06-2006, 05:54 AM#4
Jacek
http://wc3sear.ch/index.php?p=Tools&ID=58&sid=
Here's link for War3explorer on wc3search (same version)... maybe try contacting the uploader there. He probably isn't the creator but maybe know something. Unless he just didn't found the same site..........
03-11-2006, 09:06 PM#5
ShadowFlare
Haha, maybe I'll undertake such a project. :)

I did basically build SFmpq from the ground up when I made that. I could start with a simple mpq extractor in some .NET language and continue on from there. :) That's how I started SFmpq; it started as a little bit of mpq extraction code I made.

Heh, I also once made an mpq extractor in VB that the only external library it used was for the decompression. That's probably one of the hardest languages to make it in. :)

BTW, it looks like that War3Explorer uses Storm.dll. I see a reference to it in the .exe file.
03-23-2006, 12:13 PM#6
xttocs
It's fairly simple to build a MPQ program using the released MPQ specs. I wrote a simple MPQ writer for the Project Revolution installer.
03-24-2006, 07:46 AM#7
ShadowFlare
The hardest part about it is if the program is not being written for C or C++ and can't use anything that is, which is the case for my .NET MPQ library I've started. The reason being that the compression/decompression code needs to be ported over for it to work. Without that, you can only handle uncompressed files. For programs written in C/C++ or that are allowed to use libraries written in C/C++ all the compression/decompression code is readily available to use for that.

Someone ported zlib and bzip2 to C#, but there are still 3 more compression types, however the code for those 3 is shorter.

The MPQ .NET library I am creating can do the hashing, decryption, and encryption and can open archives and open files from them, but it can't read them yet. Next I will either start working on porting the remaining decompression/compression code or writing the framework of the code for reading files.
08-23-2006, 06:18 PM#8
Ion
Yo ShadowFlare! Any progress on the .NET MPQ lib?
Also while you're at it, make a Blitz3D wrapper as well. :) (hehe, just kiddin')