WolvenKit / WolvenKit-7

WolvenKit for Witcher 3
GNU General Public License v3.0
76 stars 10 forks source link

*.png gwent icon files/images exported from texture.cache seem to be broken #30

Open exploiteddna opened 1 year ago

exploiteddna commented 1 year ago

Issue

Exporting images from texture.cache, specifically png "icon" files, the images/textures that are used for in-game Gwent cards. Resulting files are missing color data, corrupt, etc. ... not entirely sure what's wrong but something isn't right. Sometimes it will only extract a png image that is a single pixel with a color value of (255,0,255) Check screenshot here: screenshot or see attached files (both examples attached)... have tested this on multiple texture.cache to ensure it was reproducible on other texture.cache files containing gwent card textures/images -- these assets are found at ...\gameplay\gui_new\icons\gwint*.png or the analogous paths for a few DLCs

"Missing color" example neu_dandelion Single pixel example neu_avallach_dlc

Steps to reproduce

Open WKit, Create new mod project, Open "Lexar" mode asset explorer, select Texture Cache, navigate to texture.cache from a mod, Mark the files you want to export, select the 'export' and 'unbundle' checkboxes at the bottom of the dialogue box, select 'Add to mod', wait for the assets to be extracted from texture.cache and added into project files (/files/Mod/Uncooked/*)

Actual Result

Files were extracted and added to mod, but the images (png format) are broken, perhaps missing a color channel. See linked image here (same as above): https://i.imgur.com/n84vVczl.png

Expected result

I expect to have the images with proper color data so they can be used to tweak mod, make fixes, etc.

0matyesz0 commented 1 year ago

I could not reproduce this issue with the current version of WolvenKit-7. Can it be the case that you trying to fiddle with the png files of a specific mod that was made by a much older version?