This is not a tool per se, but a conjunction of 3rd party tools with a script i wrote to convert mod assets to a optimised format for GLES/ANDROID.
The problem is that, on mobile BGRA is not used and there is no S3TC or BC7 support either. Some drivers may have it, but it is rare. And for example, on my phone, the Mali G57 MC1 reports as having the BGRA extension, but it dosent work, its broken.
So for this, KTX/ETC2 is used. No much can be done about BGRA, runtime conversion to RGBA is done.
So i started using some tools and i come up with a script that will do the job, and the only thing i need to do is to extract the files to a folder and then replace them in the vp.
Currently what the script does:
-Converts DDS to PNG with texconv, then it converts it to .ktx with either ETC2-RGBA1(similar to DXT1) or ETC2-RGBA (similar to DXT5). Right now, only normal maps and reflect is being converted to RGBA as those do not work in any other format. ANd even still normal maps are a little "broken".
-patches .eff files to change type to ktx
-converts .pcx to ktx/etc2 RGBA1
-Also converts png and apngs to R8G8B8A8_UNORM, i noticed how slow was to load mainhalls and missions with several apngs, and i trought the problem was the pixel conversion done when the code uploads the images to the gpu, so i went ahead and i coded an antire script to convert them before testing it. This did not work, either there is another cause for the slow loading (like png decompression) or my process is flawed. So do not try to convert png/apng.
https://drive.google.com/file/d/1Bt65VQIfmxZmuPA4ExDMb4O_M6Bbvjnm/view?usp=sharing