Page Index Toggle Pages: 1
Topic Tools
Normal Topic How to get map picture? (Read 3187 times)
wulfskin
Peon
*
Offline


I love YaBB 1G - SP1!

Posts: 30
Location: Germany
Joined: Jan 4th, 2003
How to get map picture?
Nov 7th, 2004 at 1:35pm
Post Tools
Hello everybody,

yes, it's me again Grin! Does anybody know, if it's possible to get the map picture out of the warcraft 3 files? And if it's possible, how does it work?
Has anybody further informations about the mpq-files?

Thanks,
Hans-Peter
  
Back to top
ICQ  
IP Logged
 
Nagger
Grunt
**
Offline



Posts: 50
Joined: Jun 10th, 2003
Re: How to get map picture?
Reply #1 - Nov 8th, 2004 at 4:00pm
Post Tools
(never did this by myself)

1. extract 'war3mapMap.blp' from map file (using StromLib or Strom.dll - see http://zezula.net/en/mpq/stormlib.html)

2. open this blp-file and filter header (see http://umswe.wc3campaigns.com/specs/insidethew3m.html)

3. decompress jpeg data (using a jpeglib, e.g ijl.dll from warcraft dir)
  
Back to top
 
IP Logged
 
wulfskin
Peon
*
Offline


I love YaBB 1G - SP1!

Posts: 30
Location: Germany
Joined: Jan 4th, 2003
Re: How to get map picture?
Reply #2 - Nov 9th, 2004 at 8:09am
Post Tools
Hello Nagger,

thank you very much: it almost works! Grin There is only one serious problem with function SFileOpenFileEx and dynamic library loading. Loading this function static works properly, but when I load it dynamicly, then I also get ERROR_FILE_NOT_FOUND. But I use the same filename 'war3mapMap.blp'.
Is there anything I need to know about dynamic loading and this function? Everything else works fine!

Thanks,
Hape!
  
Back to top
ICQ  
IP Logged
 
wulfskin
Peon
*
Offline


I love YaBB 1G - SP1!

Posts: 30
Location: Germany
Joined: Jan 4th, 2003
Re: How to get map picture?
Reply #3 - Nov 9th, 2004 at 9:20pm
Post Tools
Hello,

extracting works perfect! Grin I only need to know now how I to use the "ijl15.dll" to decompress the jpeg.
Does anybody know how to use this library?

Thanks,
Hape!
« Last Edit: Nov 9th, 2004 at 10:39pm by wulfskin »  
Back to top
ICQ  
IP Logged
 
wulfskin
Peon
*
Offline


I love YaBB 1G - SP1!

Posts: 30
Location: Germany
Joined: Jan 4th, 2003
Re: How to get map picture?
Reply #4 - Nov 11th, 2004 at 9:32pm
Post Tools
Ok,

after some hard research and studying an old help of intel jpeg library I finally got it. If anybody want to have the source in delphi, you can find it here: http://www.delphi-forum.de/viewtopic.php?p=190562#190562.

Now, I only have one last question. Does anyone know how the get a paletted blp, because I think the description on that page is not correct, because the blp file is somehow longer than it has to be and I always get a wrong picture.

Thanks,
Hape!
  
Back to top
ICQ  
IP Logged
 
Page Index Toggle Pages: 1
Topic Tools