QUOTE(synd)
[cate,Oct 11 2006, 09:44 PM]By write one hopefully you didn't mean you used someone elses dll. Specifically blizzard's.
storm.dllWell unless you know the ins and outs of
huffman encoding you used someone elses code, simple as that.
It would take quite a bit of work but if you look at the source code for that linux extractor you could use
these php huffman encode/decode functions to do make your own php MPQ extractor which doesn't require a binary to run. However loading a pecl package (huffman.so) probably wouldn't work in safe mode anyways.. if your on a shared php host.
Thats really cool I might actually try and get it working with my php script.
Edit: This what I came up with..
http://local.syndsys.net:81/mpqextract/index.phpAccepted files .scx .scm
[right][snapback]575479[/snapback][/right]
i didn't use storm.dll, but i did use SFmpq.dll, which I guess adds the writing capabilities.
I wasn't insane enough to try and crack this archive and write these "SFileOpenArchive" functions myself.
but with this info you've posted, it looks like this might all be possible after all. the host is a friend of mine, so he can give me all the permissions I need..but I'd still rather avoid using any executables if I can help it. don't want to accidentally bring down his precious server
I've uploaded a .chk I extracted on my computer... here's what I was able to get out of it using php, so far:
http://www.mnbayazit.com/sc/mapdata.phpI'll look into this huffman stuff... see if I can't come up with some MPQ reading functions.
If you do manage to extract scenario.chk w/ php, I'll love you forever and ever.
It looks like you've managed to read the archive..but not pull anything out of it, yet? Still quite impressive.
edit: this link seems to be down
http://pecl.docuverse.de/, could you post a copy of huffman.so, or do you know of another link?
the package at
http://pecl.php.net/package/huffman doesn't seem to contain huffman.so either
QUOTE(synd][cate @ Oct 11 2006, 09:44 PM)
Edit: This what I came up with..
http://local.syndsys.net:81/mpqextract/index.phpAccepted files .scx .scm
[right][snapback]575479[/snapback][/right]
wait a second..you used mpq-tools for that? how'd you manage to install it on the server computer?