unluau: Unknown capture type 1 when decoding specific Alan Wake 2 *.binlua files (1.0.8 alpha)
When decoding .binlua files (quite literally luau renamed to binlua, thanks Remedy) simple scripts will work and output something right, but on a good chunk the decompiler will produce this error;
[20:01:12 FTL] Decompilation error Unluau.DecompilerException: Unknown capture type 1 at Unluau.Lifter.LiftBlock(Function function, Registers registers, Int32 pcStart, Int32 pcStop) in C:\Users\infur\Documents\unluau-1.0.8-alpha\src\Unluau\Lifter\Lifter.cs:line 528 at Unluau.Lifter.LiftProgram() in C:\Users\infur\Documents\unluau-1.0.8-alpha\src\Unluau\Lifter\Lifter.cs:line 36 at Unluau.Decompiler.Decompile() in C:\Users\infur\Documents\unluau-1.0.8-alpha\src\Unluau\Decompiler.cs:line 48 at Unluau.CLI.Program.RunOptions(Options options) in C:\Users\infur\Documents\unluau-1.0.8-alpha\src\Unluau.CLI\Program.cs:line 119
Is this an issue regarding support of for loops?
About this issue
- Original URL
- State: open
- Created 3 years ago
- Comments: 15 (7 by maintainers)
Just wanted to check in quickly. I have been rewriting Unluau for the past weeks and am adding an IL to facilitate control flow analysis. Hopefully this set up will resolve most issues the alpha version faces.
Just pushed a new change that should fix a few scripts. Not all.
Take at look at the most recent version, I added a few more things.
@riverence Thank you for all of the bugs, I will get to them as soon as possible.