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

Unknow file format #10

Open
jebbyk opened this issue Nov 7, 2023 · 1 comment
Open

Unknow file format #10

jebbyk opened this issue Nov 7, 2023 · 1 comment

Comments

@jebbyk
Copy link

jebbyk commented Nov 7, 2023

I'm trying to decompile some Richard Burns Rally shaders but no success. Could you please tell me what is wrong with this file? I know it is a some kind of pixel shader, but decompiler says it is unknown format

(actual file extension is a .pso)
CarColor.zip

@maaxxaam
Copy link

maaxxaam commented Jan 30, 2024

Hey @jebbyk! Sorry to hear you couldn't use the decompiler. I've taken a look at your file and at some repo's code, and, although I'm not the project's maintainer, I believe the file you've provided contains Shader Model 4.0 shaders that are not fully supported by the decompiler yet (there appears to be some code dedicated to it but it seems incomplete). Hope that helps in some capacity.

Edit: to be more specific, the first 8 bytes of the file look like so: 01 01 FF FF FE FF 40 00. The code responsible for figuring out the file format tries to look for one of the sequences:

  1. 52 47 58 41 in first four bytes ("RGXA" in ASCII)
  2. FF FE 03 00 or FF FF 03 00 in the next four bytes.

Your file has none of those, hence the "Unknown file format" error.

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

No branches or pull requests

2 participants