xbv
11-10-2015, 12:35 PM
This is for education only, zezenia is a great game and K-zod seems nice!
This is probably a few years too late but hopefully someone enjoys tibian/zez art as much as me.
update 5.6
Download all 6768 imgs here. (https://mega.nz/#!0t0xSZiA!aoMJhglO3FrI53ZD56JA8iZ1x0lRWi76uzf5_Nu TJ10)
http://s29.postimg.org/5spjx4tsz/cool.gif
some strange stuff inside:
http://s29.postimg.org/iitsa81r7/wtf.jpg
So the first 4 bytes of the file I don't know but after that you have:
two bytes displaying the amount of images (0x19cb=6603)
another two bytes (0,0) which you can skip.
Then you just loop through all the images.
Looking at the first image:
two bytes width (0x20,0), two bytes height(0x20,0), three bytes are the bytes to read(0x001000) and zero byte at the end.
So its a 32x32 image and it is telling us to read 4096 bytes (32*32*4)=4096 HOWEVER not all the data is here as you will see.
Next you will read the pixel data (0x2c, 0x53, 0x92, 0xff, etc).
The pixels are in BGRA format.
Finally (BUT VERY IMPORTANT!) you need to do a search through each image and look for a 1 in the first byte of each pixel, if there is, you need to add x amount of transparent pixels (BGRA=0,0,0,0 will do nicely).
You get x from the next byte after the 1 in the first byte.
So, you need to remove this 1 byte and x (the next byte) and insert x amount of transparent pixels (4 bytes).
An image to explain everything and where these blue 1 bytes linger:
http://s13.postimg.org/g6mudz193/info_GFX.png
The GFX is full of goods worth looking through!
I haven't check them all, maybe I have made a mistake,
If you need help feel free to msg me or post :)
This is probably a few years too late but hopefully someone enjoys tibian/zez art as much as me.
update 5.6
Download all 6768 imgs here. (https://mega.nz/#!0t0xSZiA!aoMJhglO3FrI53ZD56JA8iZ1x0lRWi76uzf5_Nu TJ10)
http://s29.postimg.org/5spjx4tsz/cool.gif
some strange stuff inside:
http://s29.postimg.org/iitsa81r7/wtf.jpg
So the first 4 bytes of the file I don't know but after that you have:
two bytes displaying the amount of images (0x19cb=6603)
another two bytes (0,0) which you can skip.
Then you just loop through all the images.
Looking at the first image:
two bytes width (0x20,0), two bytes height(0x20,0), three bytes are the bytes to read(0x001000) and zero byte at the end.
So its a 32x32 image and it is telling us to read 4096 bytes (32*32*4)=4096 HOWEVER not all the data is here as you will see.
Next you will read the pixel data (0x2c, 0x53, 0x92, 0xff, etc).
The pixels are in BGRA format.
Finally (BUT VERY IMPORTANT!) you need to do a search through each image and look for a 1 in the first byte of each pixel, if there is, you need to add x amount of transparent pixels (BGRA=0,0,0,0 will do nicely).
You get x from the next byte after the 1 in the first byte.
So, you need to remove this 1 byte and x (the next byte) and insert x amount of transparent pixels (4 bytes).
An image to explain everything and where these blue 1 bytes linger:
http://s13.postimg.org/g6mudz193/info_GFX.png
The GFX is full of goods worth looking through!
I haven't check them all, maybe I have made a mistake,
If you need help feel free to msg me or post :)