Open tagaziel opened 1 year ago
Can you provide me with more information about what exactly you are trying to export (DAT File name, Path inside the file) so I can test my fix?
Gladly! These are the TGV files inside CommonInterface.ppk (extracted from \steamapps\common\WARNO\Data\PC\82436\84771\ZZ_4.dat), but let's use this one:
PC\Texture\Assets\2D\Interface\Common\UnitsIcons\Allemagne\KdA_CMD_DDR.tgv
In Steel Division 2, the suite would export to a DDS with inverted colors, which would be fixed once converted to .png with ImageMagick (mogrify -format png
with default settings), and then on to the wiki.
In WARNO, you get the above error. I've managed to rip the DDS files using NinjaRipper and dumping them, but these are not given their original filenames, but a hexadecimal name that's been impossible to correlate with the filenames. I've uploaded how the file should look after exporting and conversion to PNG (Ninja rips to DDS with the correct color palette from the start):
Hope this helps, if you need anything, I'll gladly upload whatever's needed. And thank you in advance!
I tried some fix, can you open and verify wether this file is working?
It does! I've compared the DDS ripped from the game and one output by the New and Improved TGV converter and the histogram is nearly identical. There's some minor variation, as expected, but the results are pretty much not visible to the naked eye.
Attaching screenshot below (left is your file, the right is one ripped by me)
I think it works!
Sorry to ping you, but what was the fix? I might learn coding specifically to fork the suite and apply it :)
Trying to extract the TGV files in WARNO's archives throws the following exception:
I'll look through the forks to see if it's been updated, but it's a huge blocker for the wiki :(