luac-parser-rs icon indicating copy to clipboard operation
luac-parser-rs copied to clipboard

lua bytecode parser written in Rust using nom, part of metaworm's lua decompiler, support lua51/lua52/lua53/lua54/luajit/luau https://luadec.metaworm.site/

Results 29 luac-parser-rs issues
Sort by recently updated
recently updated
newest added

Getting an error message when trying to load file. These were working before. Just wondering what I can do to get it working? Any help would be greatly appreciated. ![Screenshot...

Here's the decompiled output for a game that uses Lua 5.1: ```Lua -- filename: -- version: lua51 -- line: [0, 0] id: 0 Lua.require("Item.Cake.CommonSetup") g_setupInfo = { path = "Item/Cake/CAKE06/",...

enhancement

用unluac效果不是很好。

Hey, I attached a Log.lua File from a Game I play. Used your Decompiler to modify it + download. However the Game errors out, when I run the decompiled File:...

Consider this simple Lua 5.2 function: ```lua -- test_function.lua function is_function_type(v) return v ~= nil and type(v) == "function" end ``` Compile with LuaC ``` luac test_function.lua ``` The decompilation...

![image](https://github.com/metaworm/luac-parser-rs/assets/49363666/bb897f10-cfd6-4bdd-bc76-2dede98d4e4c) 逆向时提取了一个102KB大小的luac编译块(没有调试信息,基本纯为constant和代码),有200多个函数,解析指令(右下角配置中勾选反汇编,然后打开luac文件)花去数秒,网页中写死的20s超时时间可能不足反编译完成。由于没有其他进度提示(比如显示出在某函数中卡死),无法判断具体情况。

read here: http://lua-users.org/wiki/GotoStatement "goto" function doesn't work in lua51, yet decoded lua51 code with this tool uses it

能不能构建一个exe出来?感谢!

不是很懂,看5.1的例子和5.3有点不一样

When given the following script: ``` for i in ipairs(_table) do end ``` Metaworm's luadec generates the following result: ``` -- error: decompile function#0: generate_block -- -- Caused by: --...