klensy / wt-tools

War Thunder resource extraction tools
128 stars 39 forks source link

Cannot extract unit icon *.ddsx despite using oo2core_6_win64.dll #49

Closed JareelSkaj closed 4 years ago

JareelSkaj commented 4 years ago

Hi, I have a new version of the wt-tools v0.2.2.2-dev and cannot extract any of the *.ddsx files in the WarThunder\ui\atlases.vromfs.bin_u\units, eg a_4b.ddsx. Tool just blinks open, and nothing happens. I have installed Warframe and coped over oo2core_6_win64.dll into the directory with the ddsx_unpack.exe as suggested here (from), but that did not help either. Though I should note that my file is from the latest version of the Warframe and has an MD5 of 9a118e80ae34d02bbadf0af6b12082f6 (byte size 1 074 176, via CertUtil -hashfile oo2core_6_win64.dll md5), different that the one specified in the release. If needed I can provide the dll, though I have no idea where can I find the it with the MD5 indicated in the release to check if that's the source of the issue ¯_(ツ)_/¯.

Windows 10 x64, Intel i7-8700K

klensy commented 4 years ago
  1. Try to run tool in powershell (open directory with *.exe files, shift+right click on empty space, powershell: https://www.youtube.com/watch?v=bgSSJQolR0E), then enter here ddsx_unpack.exe atlases.vromfs.bin_u. If any errors, it should be printed. Current version can't unpack BC7 texture format. Noted by you a_4b.ddsx unpacks to image without errors.
  2. oo2core_6_win64.dll should be near ddsx_unpack.exe and other *.exe files, and i don't really think, that slightly different build of dll change anything.
klensy commented 4 years ago

@JareelSkaj Any progress?

JareelSkaj commented 4 years ago

Sorry, I was out. Yes, it did work! Wow... I did not see this coming. Really appreciate fast response.

Sample command: .\ddsx_unpack.exe "$Env:USERPROFILE\AppData\Local\WarThunder\ui\atlases.vromfs.bin_u\units\a_4b.ddsx"

Unpack all *.ddsx files in a directory:

Get-ChildItem "$Env:USERPROFILE\AppData\Local\WarThunder\ui\atlases.vromfs.bin_u\units\" -Filter *.ddsx | 
Foreach-Object {
    $content = $_.FullName
    echo $content
    .\ddsx_unpack.exe $content
}

Plugin for previewing DDS in Windows and plugin for opening/exporting DDS in Photoshop