MantisBT - VCMI
View Issue Details
0001080VCMIOtherpublic2012-09-20 17:422014-05-30 17:41
douggie_m 
Ivan 
normalfeatureN/A
closedfixed 
0.89b 
0.9 
0001080: Add support to load non-compressed maps
This is a request. Original LOKI maps are un-compressed at all. And VCMI cannot deal with them, it requires maps to be compressed.

I'm uploading all for one.h3m from LOKI distribution.
No tags attached.
? all for one.h3m (130,076) 2012-09-20 17:42
https://bugs.vcmi.eu/file_download.php?file_id=1081&type=bug
Issue History
2012-09-20 17:42douggie_mNew Issue
2012-09-20 17:42douggie_mFile Added: all for one.h3m
2012-09-20 18:08douggie_mNote Added: 0003037
2012-09-20 18:22IvanNote Added: 0003038
2012-09-26 11:57IvanAssigned To => Ivan
2012-09-26 11:57IvanStatusnew => assigned
2012-09-26 11:58IvanSeverityminor => feature
2012-09-26 11:58IvanReproducibilityalways => N/A
2012-09-26 13:14IvanNote Added: 0003049
2012-09-26 13:14IvanStatusassigned => resolved
2012-09-26 13:14IvanFixed in Version => 0.9
2012-09-26 13:14IvanResolutionopen => fixed
2014-05-30 17:41beegeeStatusresolved => closed

Notes
(0003037)
douggie_m   
2012-09-20 18:08   
VCMI currently prints:

> Warning: failed to load map MAPS/ALL FOR ONE: Decompression error!

and ignores the un-compressed map.

VCMI accepts only GNU zipped versions:

$ file /usr/share/vcmi/Maps/free\ for\ all.h3m
/usr/share/vcmi/Maps/free for all.h3m: gzip compressed data, was "free for all.h3m", from Unix, last modified: Sat Aug 11 12:25:25 2012
(0003038)
Ivan   
2012-09-20 18:22   
Interesting - I never noticed that LOKI maps are uncompressed.

Should be easy to implement - gzip have magic number in header that can be detected and it is always different from H3M header.
(0003049)
Ivan   
2012-09-26 13:14   
implemented in rev 2924