Total Modding?
roxio
Member Posts: 9
Okk. let's talk... talk about modding... Two questions;
What is different between BG1 TIS file & BGEE TIS file ?
What is new file format .PVRZ ?
What is different between BG1 TIS file & BGEE TIS file ?
What is new file format .PVRZ ?
0
Comments
pvrz is totally difficult. As Cuv wrote, you can display it (with some errors) but no creation yet.
pvrz itself is gzip compressed pvr. First long is the uncompressed length, then gzip blob.
.tis tile data just references pvrz files in 12 byte entries. first dword is an index, that is followed by a coordinate in the pvr texture.
Ha, I heard something like a "challenge" here!
Today, I wrote a small program to convert those .pvrz files to .bmp. And the other way round.
Don't expect too much - it works for me (proof above), and maybe someone else who has a similar configuration. And of course only for the most basic pvrz files (only DXT1)...
Executable and source code are in the archive and you can modify it as much as you like.
Would it be possible for you to compile a seperate one that packs to PVRZ? Much like the TISPack and TISUnpack. This one you can drag a pvrz onto it, and it will convert to bmp. One for the reverse would be awesome. So a PVRZPack.exe and a PVRZUnpack (which this already does easily).
Better get the attention of @Avenger_teambg to see if this can be incorporated into DLTCEP. If not, its small enough to ship with mods.
It *should* already pack it to .pvrz if the input file is a .bmp. Maybe I missunderstood you?
You could even do something like:
pvrz.exe "AR3300*.bmp" "AR3200*.pvrz"
that would result in a compression of all AR3300 files and a decompression of all AR3200 files
Of course the solution for me would be to convert pvrz to bmp and then load the bmp as if it was a tileset (i already have this on=the-fly conversion). But then, an area is sometimes made up from several pvrz files which would still need to be glued together.
This method is good to modify area graphics, and i will likely add a pvrz->bmp->prvz converter which will basically do this. But that wouldn't help editing area stuff (like wallgroups).
Got any motivation to also generate the tis file for the pvrz?