Mir 3 WTL

Kaori

LOMCN MiR3 Queen!
VIP
Jun 3, 2004
3,584
38
285
Canada
Korean Mir 3 has a new image library with an extension WTL/WTX.

It's currently in the test patch.

Not sure if this new library will be used in production.

To access test patch, copy the following to the KaoriPathGZ.ini and run KaoriPatchGZ-1.3.jar

This jar is available at:
http://www.lomcn.co.uk/forum/showthread.php?t=59671

KaoriPatchName=KaoriPatch

KaoriPatchBanner=http://www.kaorimir.com/images/KaoriBanner6.png

KaoriPatchListFile=http://mir3-patch.gscdn.com/mir3testpatch2/!plisttest.lst.gz

KaoriPatchServer=http://mir3-patch.gscdn.com/mir3testpatch2/

KaoriPatchDir=./Data/
KaoriPatchDir=./Map/
KaoriPatchDir=./Sound/
KaoriPatchDir=./Data/Forest/
KaoriPatchDir=./Data/Sand/
KaoriPatchDir=./Data/Snow/
KaoriPatchDir=./Data/Wood/

KaoriPatchGameExePath=./Mir3.exe
 
Last edited:

Far

tsniffer
Staff member
Developer
May 19, 2003
20,164
30
2,763
540
are you able to open them at all? if so, anything nice in them? or have they just changed the extension?
 

Kaori

LOMCN MiR3 Queen!
VIP
Jun 3, 2004
3,584
38
285
Canada
Looking for someone who's good at tracing assembly code.

I am currently doing breakpoints everywhere to find where it starts to decode the WTL.
 

Kaori

LOMCN MiR3 Queen!
VIP
Jun 3, 2004
3,584
38
285
Canada
Update: Looks like they have removed "WTX" the index file. Leaving only the WTL.
 

Kaori

LOMCN MiR3 Queen!
VIP
Jun 3, 2004
3,584
38
285
Canada
WTL stays the same. But it's easy to read images without the WTX. Not too worried about that one.

Edit: oh my mistake, yes they stored index in WTL now.
 
Last edited:

MoogleEnix

Dedicated Member
Dedicated Member
Apr 21, 2009
40
2
34
WTL stays the same. But it's easy to read images without the WTX. Not too worried about that one.

Edit: oh my mistake, yes they stored index in WTL now.

Lol Thought So, What Is The Whole Point Of This New Way?

Do They Have Other Files Other Than The Index In There?
 

Kaori

LOMCN MiR3 Queen!
VIP
Jun 3, 2004
3,584
38
285
Canada
WTL has index info and the images, so nothing else.

It's smaller so it should read faster. Possibly less computing. (because of see below)

I am about to go crazy soon. I was hoping this is not true... Looks like the images may be pre-made for direct draw.

Does anyone know what does direct draw raw image data looks like?
 

MoogleEnix

Dedicated Member
Dedicated Member
Apr 21, 2009
40
2
34
Ah Right I See.

Y Was You Hoping This Wasn't True?

And No Sorry Don't Know What DirectDraw Raw Image Data Looks Like.
 

Coly

LOMCN Developer
Developer
Mar 31, 2005
1,399
33
195
Germany
raw DX is normaly 0x00000000 (RGBA or XRGB ....) .


Looks like the images may be pre-made for direct draw.
^^ I have same see, and I believe Transparent is white and not black.
In DX you can say how KeyColor you use.
I think the image is not smaller as the old one, I think it is bigger and it made sense if it pre-made for DX. If you look on the new files then you see the Dey file, I believe we find in this Alpha Image for faster Stage blending.
 

Kaori

LOMCN MiR3 Queen!
VIP
Jun 3, 2004
3,584
38
285
Canada
The reason I said it looks like a direct draw ready is because

the image bytes are read to memory
then copied to another part of memory
then ATIUMDAG is reading it

so I am guessing my ati driver is doing the processing.
 

Coly

LOMCN Developer
Developer
Mar 31, 2005
1,399
33
195
Germany
hmmm, atm I not at home this week to can better look...
have you try out the Image Header and can say how begin and end the Image ?
If yes, can you upload a Image from the wtl with the image data from the header, then
I can look in my Dx Env.
 

Coly

LOMCN Developer
Developer
Mar 31, 2005
1,399
33
195
Germany
File Version ID : 6000 (Mir3 Type 3)
File Header same as the old WIL header...

after the Header the Index list begin...
Image Header :

- height 2 Byte
- width 2 Byte
- Offset X 2 Byte
- Offset Y 2 Byte
- Shadow Offset X 2 Byte
- Shadow Offset Y 2 Byte
- Shadow Type 2 Byte

- the ID 4 can by the File Info for DX, atm no ide and not tested...
 

Kaori

LOMCN MiR3 Queen!
VIP
Jun 3, 2004
3,584
38
285
Canada
File Version ID : 6000 (Mir3 Type 3)
File Header same as the old WIL header...

after the Header the Index list begin...
Image Header :

- height 2 Byte
- width 2 Byte
- Offset X 2 Byte
- Offset Y 2 Byte
- Shadow Offset X 2 Byte
- Shadow Offset Y 2 Byte
- Shadow Type 2 Byte

- the ID 4 can by the File Info for DX, atm no ide and not tested...


It's actually
1 image contains 16-byte header + data
width (2-byte)
height (2-byte)
offsetX (2-byte)
offsetY (2-byte)
shadowOffsetX (2-byte)
shadowOffsetY (2-byte)
shadowType (1-byte)
imageSize (3-byte int) (this is often multiple of 64)
imageData (imageSize * 2)
 

Coly

LOMCN Developer
Developer
Mar 31, 2005
1,399
33
195
Germany
arrgg yes you are rigth with the Image Size and width/height, I have forgoten (is like the Type 2 Format) :-/
Have only look a bit with Hex Editor ^^... If I have time and I back in hotel I have a look over the image format.
 

Coly

LOMCN Developer
Developer
Mar 31, 2005
1,399
33
195
Germany
Hmmm if I look over the size and calc the size it looks like Wemade use now Pow2 Images but use Orginal Size to cut it before blit (Normal D3DSprit Technic). I believe
it is Plain DX Format. I can't test it here in the hotel on the Notebook :-/ ...