#(Work in progress) LuaJIT Bytecode Inspector

1 messages · Page 1 of 1 (latest)

wanton lava
#

You know how mod patches in Java and C# can dynamically inspect and patch the bytecode? This will allow you to do so in Lua as well!

NEWEST RELEASE: #1266751398142414928 message

Bytecode instructions reference: https://github.com/viruscamp/luadec/wiki/LuaJIT-2.0-Bytecode
Bytecode format reference: https://github.com/RedHolms/LuaJIT-BytecodeDumpFormat

Before any formal docs are made, you can look at the field names of the return values of the functions and match them to the bytecode format reference.

frosty lodge
#

SMOD's competitor? balatrojoker

#

or lovely's competitor

wanton lava
#

you can disassemble a game function into bytecodes, patch that, and set it as a new function

#

so that for complex patches you don't have to include the full patched definition which include the game's source code

#

or rely on beforehand executable patching for mods