atrexus / unluau

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

Version5 bytecode support #46

Closed iivillian closed 7 months ago

iivillian commented 7 months ago

Implements the changes required to support version 5 (What's currently used on the client).

If my assumption is wrong about Vector3 being the only builtin type utilizing the vector constant optimization, someone inform me and ill fix it.

Below is a test dumped directly from a game. "print(Vector3.new(1.0, 1.0, 1.0), Color3.new(0, 0, 0))"

vector_bytecode.txt

Unluau.CLI.exe vector_bytecode.txt --encoding=1