HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

SFMPQ source code

07-06-2008, 10:24 PM#1
biosphere
After a very long time, thanks to shadowflare's generosity, I present you with the SFMPQ DLL source code!

http://7hq.org/wc3/SFMPQ_07_03_2008.rar
http://www.7hq.org/wc3/scomp_07_03_2008.zip

All credit to shadowflare for this. Maybe someone can fix it up it to read large MPQ files
07-07-2008, 04:24 PM#2
Ion
That would be rather easy I believe. Just change it to utilize 64-bit integers for larger file-tables.
07-07-2008, 10:17 PM#3
BlacKDicK
It lacks SComp.cpp (and a few others). Errors and memory stuff.
Not hard to emulate, but I wonder if there is a special reason for that or maybe u guys just forgot to drop in the missing files.
07-08-2008, 06:30 AM#4
d07.RiV
Oh I was looking for it about a month ago ><

And - wtf its lacking a huge bunch of files from SComp folder (the ones that have to do with compression). I've seen huffman compression source in projects like bhcore but they were clearly crudely translated from asm codes, I was wondering if there was a cleaner implementation.
07-08-2008, 12:47 PM#5
biosphere
I added it to the OP
07-08-2008, 04:13 PM#6
Strilanc
Quote:
Originally Posted by d07.RiV
Oh I was looking for it about a month ago ><

And - wtf its lacking a huge bunch of files from SComp folder (the ones that have to do with compression). I've seen huffman compression source in projects like bhcore but they were clearly crudely translated from asm codes, I was wondering if there was a cleaner implementation.

Yeah I've read that huffman code as well. My impression was that it was optimized a lot; there were tables and other things to make it go faster. I figured it would be easier to just copy the preset trees data and implement the algorithm on your own.

Of course then I realized huffman isn't used on the files I needed, and stopped working on it.
07-09-2008, 02:25 AM#7
Ion
Take a look at this mpqtool. It's a C# mpqlibrary that can open large files I believe. Should be rather easy to port..
SVN @ http://mpqtool.googlecode.com/svn/trunk/
07-17-2008, 12:42 AM#8
ShadowFlare
For the source that biosphere probably downloaded it from, take a look at http://sfsrealm.hopto.org/projects/

I also have a repository viewer at http://sfsrealm.hopto.org/projects/gitweb.cgi
I had no history to put with it for the mpq library, though, since that was before I used any kind of source code management program. It will contain the history of any future modifications, however.

I have some info on my main page, and there's some other info I've posted on a couple forums, so I suppose I'll make a new topic for it and post it on this forum, too.

btw, I found this post from Google. :D

-EDIT-

Info posted here, pretty much copied from my other postings of it: http://www.wc3campaigns.net/showthread.php?t=101537