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

SETUPVAL addition? #32

Open karl-police opened 8 months ago

karl-police commented 8 months ago

Before we start. You need to know that I have no clue about this Registers or Instructions stuff. I am literally learning but I barely have any good resources to understand nor comprehend easily on what is going on and need a little bit of help or time.

Bytecode input file used: https://github.com/MaximumADHD/Roblox-Client-Tracker/blob/79d958e1c5e9acff1f1a053873852d7c3a682b16/BuiltInPlugins/AnimationClipEditor/Src/Util/TrackSelectionUtils.luac

It's old unlua'd version: https://github.com/MaximumADHD/Roblox-Client-Tracker/blob/79d958e1c5e9acff1f1a053873852d7c3a682b16/BuiltInPlugins/AnimationClipEditor/Src/Util/TrackSelectionUtils.unluau.lua

The differences.

https://www.diffchecker.com/6FkhJrok/

 

Input 2: https://github.com/MaximumADHD/Roblox-Client-Tracker/blob/79d958e1c5e9acff1f1a053873852d7c3a682b16/BuiltInPlugins/AnimationClipEditor/Bin/main.luac (note this one will error if you don't comment out the error)

hence, get rid of this, if you want to understand how I used this Bytecode input as a demonstration. image

https://www.diffchecker.com/NuhFmZdx/

 

This is how the differences look like with both of my "patches" applied.

https://www.diffchecker.com/oEnOdmc1/