Open SgtMerrell opened 3 years ago
GUI files like the images are .ktx files usually. They are in some of the NPK files. The dump_static_data.py doesn't output them. But it is easy enough to just extract the APK manually and run npktool on them to get a full disk dump of all the files. See (https://github.com/xforce/neox-tools#usage)
They will require conversion to a more regular file format, like png. This can be done rather easily using ImageMagick.
magick convert image.ktx image.png
(obviously change the file names or better write a script to automate this step 🙂 )
Hope that helps. Let me know if there are any other questions.
TIL you can use ImageMagick - I'd only just found you can also use PVRTexTools as well, though there is a bug in the latest version.
https://www.imaginationtech.com/developers/powervr-sdk-tools/pvrtextool/
I used the npktool and wasn't able to recover any .ktx files... almost all of them are .nxs files, which I'm unsure what to do with. Was there any luck from other attempts to find .ktx files I could use to convert the images?
@SgtMerrell - In the location where you extract the obb data, you can run npktool
there
npktool x -d {data-dump-path} {path-to-obb-data}/res*.npk
The ktx files are then under a few different file paths. (like gui/ etc)
GUI files like the images are .ktx files usually. They are in some of the NPK files. The dump_static_data.py doesn't output them. But it is easy enough to just extract the APK manually and run npktool on them to get a full disk dump of all the files. See (https://github.com/xforce/neox-tools#usage)
They will require conversion to a more regular file format, like png. This can be done rather easily using ImageMagick.
magick convert image.ktx image.png
(obviously change the file names or better write a script to automate this step 🙂 )Hope that helps. Let me know if there are any other questions.
TIL you can use ImageMagick - I'd only just found you can also use PVRTexTools as well, though there is a bug in the latest version.
https://www.imaginationtech.com/developers/powervr-sdk-tools/pvrtextool/
ImageMagick didn't work for me neither on Linux nor on Windows machines. However, it did point me in the right direction.
Here is a simple sh script that uses PVRTexToolCLI, but it needs few additional steps: https://github.com/linkabox/KTXConverter Following is for Linux only, as I do not want to deal with Windows at the moment
./PVRTexToolSetup-2020_R2.run-x64
/home/{user}/Imagination Technologies/PowerVR_Graphics
cd ~/Imagination Technologies/PowerVR_Graphics/PowerVR_Tools/PVRTexTool/CLI/Linux_x86_64
convertktx.sh .ktx -> .pvr -> .png
@sergiyz57918 - Did the images come out whiteish for you? I haven't had much luck with the PVRTextTool and accurate images
@sergiyz57918 - Did the images come out whiteish for you? I haven't had much luck with the PVRTextTool and accurate images
@SilkyPantsDan Yah, white balance is off on them. Mostly because they are used as skeans in OpenGL. I will try to correct the white balance in PS.
Absolutely amazing work! I've learned an incredible amount on how the map data is saved and presented because of this. I'm curious though, where are the GUI files? Icons and background images and such...