OmegaK2 / PyPoE

Collection of Python Tools for Path of Exile
Other
237 stars 92 forks source link

DDS decompression fails due to GGG having a loose sense of what a texture file is #113

Closed AntonUklein closed 4 years ago

AntonUklein commented 4 years ago

Reproduction steps: Extract and decompress the Art\Textures\Interface\2D\ folder; it will fail after it hits _2DArt_UIImages_InGame_Shop_French2.dds because the DDS file is a reference to an existing graphic instead.

If there's a good way to add a try/catch the process such that it skips over a file if decompression fails, that would make my life a lot easier.

zao commented 4 years ago

Some of the language-specific store images are symbolic links to missing files, I'd guess that they're probably not in use anymore and use the culture-neutral background art.

OmegaK2 commented 4 years ago

I assume you're talking about the ggpk viewer and not the API as I initially thought. With the API you can just do a try ... except FileNotFoundError in that case. I'll fix this for the viewer