Map Viewer Has Some Problem

dida

Banned
Banned
Dedicated Member
Feb 17, 2013
31
0
32
USA
i'm trying to make a make viewer for mir3, but in mir3 some wil files are type 1(17) some are type 2(5000);
while i load image from type 2 it works fine, but while i load image form type 1 it result in:
QQ??20131020161208.jpg

now i know how to read map and wil in type 2,
it seems each tile is missing 1 piex.
can somebody help?
 

Attachments

  • ???.jpg
    ???.jpg
    207.3 KB · Views: 109

dida

Banned
Banned
Dedicated Member
Feb 17, 2013
31
0
32
USA
In fact I'm not sure how to decode mir3 wil type 1, i was using code from Mir Evo to decode wil mir3 type 2; could you do me some help with wil type 1?
 

Coly

LOMCN Developer
Developer
Mar 31, 2005
1,399
33
195
Germany
Type 1 and 2 are both the same, only the header is diff. (last field has in Type 2 the size of the image data)
 

dida

Banned
Banned
Dedicated Member
Feb 17, 2013
31
0
32
USA
you mean type 1 doesn't have the size of the image data ? so how could i read image data from type 1?