repkg icon indicating copy to clipboard operation
repkg copied to clipboard

Repkg cannot decomplie new version of pkg files' texture file (.tex) and output "Failed to read texture" error.

Open 265785 opened this issue 1 year ago • 2 comments

Repkg cannot decomplie new version of pkg files' texture files (.tex) and output "Failed to read texture" error.

D:\0>repkg extract -t -s D:\0
* Reading: D:\0\20241115121609.tex
Failed to read texture
RePKG.Application.Exceptions.EnumNotValidException`1[RePKG.Core.Texture.TexFormat]: Invalid value '5' for enum 'RePKG.Core.Texture.TexFormat'
   在 RePKG.Application.Texture.TexHeaderReader.ReadFrom(BinaryReader reader)
   在 RePKG.Application.Texture.TexReader.ReadFrom(BinaryReader reader)
   在 RePKG.Command.Extract.LoadTex(Byte[] bytes, String name)
Done

This following texture file is extracted from a pkg file which is in new version,and the texture file (.tex) is successfully extracted. However, It cannot decomplie and popup an error, and any other tex files of the pkg file popup the same error.

Here is the example of the texture file: 20241115121609_tex.zip

265785 avatar Dec 02 '24 14:12 265785

Can you upload the whole .pkg and a screenshot/link to the wallpaper so I know how it's supposed to look like

notscuffed avatar Dec 02 '24 15:12 notscuffed

shishangliuying.zip

265785 avatar Dec 02 '24 15:12 265785