Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XOREOSTEX2TGA: Failure to convert many TPC files #42

Closed
DrMcCoy opened this issue May 26, 2019 · 1 comment
Closed

XOREOSTEX2TGA: Failure to convert many TPC files #42

DrMcCoy opened this issue May 26, 2019 · 1 comment

Comments

@DrMcCoy
Copy link
Member

DrMcCoy commented May 26, 2019

(This was introduced with @Nostritius's ecfb314)

xoreostex2tga now fails to convert many KotOR TPCs, with a "Invalid UTF-8" error thrown. C_Wraid02.tpc is one example.

That example file has no attached TXI data, and I guess it tries to read other binary data as TXI, thus throwing. I.e. the offset after reading the mipmap data, before reading the TXI data, is not at the end of the file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant