atrexus / unluau

A decompiler for Luau (Roblox's Lua based programming language: https://luau-lang.org/).
Apache License 2.0
88 stars 21 forks source link

Bytecode version mismatch #21

Closed Stefanuk12 closed 1 year ago

Stefanuk12 commented 1 year ago

I'm trying to use this with some bytecode directly from Roblox. However, it does not seem to be compatible. I am using alpha-0.6. Is this intentional? Please find example bytecode attached, it's the bytecode for the Animate script.

Note: I grabbed the bytecode by using an exploit (Fluxus) function getscriptbytecode then using writefile:

local s = game:FindFirstChildWhichIsA("LocalScript", true)
local a = getscriptbytecode(s)
print(s)
writefile("test.luau", a)

Zipped as GitHub does not accept .luau files. test.zip

atrexus commented 1 year ago

You are right @Stefanuk12, this is intentional. Unluau does not "officially" support Luau's new bytecode format (version 4) as I have not gotten around to supporting it yet. Were you able to successfully decompile something?

Stefanuk12 commented 1 year ago

I was unable to decompile anything unfortunately. Best of look if you decide to support the new bytecode version

atrexus commented 1 year ago

I was unable to decompile anything unfortunately. Best of look if you decide to support the new bytecode version

Support for the latest version has just been added in v0.0.7-alpha.

stan2474 commented 1 year ago

Moved this comment to https://github.com/valencefun/unluau/issues/26