HlslDecompiler
HlslDecompiler copied to clipboard
Error traceback when decompiling Guitar Hero: World Tour PC .fxc Shaders
So I've recently went back to decompile some of the .fxc shader files from Guitar Hero: World Tour PC. But it gives me a traceback when trying to decompile it, only gets .asm extracted.
Writing HairShader_0_ps0.asm Writing HairShader_0_ps0.fx Process terminated. Assertion failed. at HlslDecompiler.Hlsl.InstructionParser.ReadConstantDeclaration(BinaryReader ctabReader) in G:\Documents\ghwt-de-volatile-master\HlslDecompiler\Hlsl\InstructionParser.cs:line 201 at HlslDecompiler.Hlsl.InstructionParser.ParseConstantTableComment(D3D9Instruction instruction) in G:\Documents\ghwt-de-volatile-master\HlslDecompiler\Hlsl\InstructionParser.cs:line 183 at HlslDecompiler.Hlsl.InstructionParser.ParseInstruction(D3D9Instruction instruction) in G:\Documents\ghwt-de-volatile-master\HlslDecompiler\Hlsl\InstructionParser.cs:line 72 at HlslDecompiler.Hlsl.InstructionParser.ParseToAst(ShaderModel shader) in G:\Documents\ghwt-de-volatile-master\HlslDecompiler\Hlsl\InstructionParser.cs:line 42 at HlslDecompiler.Hlsl.InstructionParser.Parse(ShaderModel shader) in G:\Documents\ghwt-de-volatile-master\HlslDecompiler\Hlsl\InstructionParser.cs:line 21 at HlslDecompiler.HlslWriter.Write(String hlslFilename) in G:\Documents\ghwt-de-volatile-master\HlslDecompiler\Hlsl\HlslWriter.cs:line 104 at HlslDecompiler.Program.ReadShaderModel(String baseFilename, FileStream inputStream, Boolean doAstAnalysis) in G:\Documents\ghwt-de-volatile-master\HlslDecompiler\Program.cs:line 56 at HlslDecompiler.Program.Main(String[] args) in G:\Documents\ghwt-de-volatile-master\HlslDecompiler\Program.cs:line 28