Skip to content

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

@265785

Description

@265785

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions