Open cff29546 opened 2 years ago
Pack format was updated it seems. Theres an extra header at start for some of the .pack file now and might have other internal structural changes, I haven't looked further. The tool will need an update.
Game version 41.66 introduced a new version of the texture pack file. The latest version has different behavior for serializing png files. I wrote a tool in python to convert map data into Deep zoom that can correctly parse it. Here is the part related to texture version parsing: https://github.com/cff29546/pzmap2dzi/blob/main/pzmap2dzi/texture.py#L47
@cff29546 Hey, that looks pretty cool! Mind if I take a poke at it?
@blind-coder No problem, serve yourself.
@cff29546 I think with a bit of work I could use that to generate the official map instead. Needs some documentation, and a tiny change to make layer 0 jpg instead of png. I'll look into it.
@blind-coder I think I can add a config to set the image file extension.
@blind-coder just added an option to use jpg for layer0, https://github.com/cff29546/pzmap2dzi/commit/4b58a094f827f65f18194eb0f74685f397e32287
I'm running with mono, this command used to work with game version 41.65
but when updated
E:\MapMap\TexturePacks\
andE:\MapMap\Mapname_lotpack
with files from 41.66, program ended with Unhandled Exception