xforce / eve-echoes-tools

Collection of tools helping in reverse engineering Eve Echoes
MIT License
71 stars 19 forks source link

GUI files #12

Open SgtMerrell opened 3 years ago

SgtMerrell commented 3 years ago

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...

xforce commented 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.

SilkyPants commented 3 years ago

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/

SgtMerrell commented 3 years ago

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?

SilkyPants commented 3 years ago

@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)

sergiyz57918 commented 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/

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

  1. Download the latest PVRTexToolSetup-2020_R2.run-x64 binary
  2. Install it. ./PVRTexToolSetup-2020_R2.run-x64
  3. Accept EULA, and note the installation directory at the end /home/{user}/Imagination Technologies/PowerVR_Graphics
  4. cd ~/Imagination Technologies/PowerVR_Graphics/PowerVR_Tools/PVRTexTool/CLI/Linux_x86_64
  5. copy PVRTexToolCLI to the location of .ktx files, they should be in ktx directory by that point
  6. I would not recommend using PVRTexToolCLI binary from the git repository
  7. Make the output directory
  8. run convertktx.sh .ktx -> .pvr -> .png
  9. Enjoy your extracted PNGs in output folder
SilkyPants commented 3 years ago

@sergiyz57918 - Did the images come out whiteish for you? I haven't had much luck with the PVRTextTool and accurate images

sergiyz57918 commented 3 years ago

@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.