Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As per the title, this adds a Lua API & REPL using my library, luagenny.
This adds three new dependencies, sol2, lua 5.4, and luagenny.
The top level luagenny API can be accessed through the
sdkgenny
global table.ReGenny's implementation overrides luagenny's global
sdkgenny_reader
andsdkgenny_string_reader
functions to read external memory instead.In addition to the luagenny bindings, I've added bindings for some of the core regenny objects:
ReGenny
class can be accessed by the Lua globalregenny
:Process
class: (read funcs only take (addr), write funcs are (addr, value))read_uint8
read_uint16
read_uint32
read_uint64
read_int8
read_int16
read_int32
read_int64
read_float
read_double
write_uint8
write_uint1
write_uint3
write_uint6
write_int8
write_int16
write_int32
write_int64
write_float
write_double
read_string
WindowsProcess
class (on Windows only):get_typename(obj_addr)
- Returns the RTTI name of the objectExample script to set the scale of a game object given the corret structure definitions:
Then just run
set_scale(1, 2, 3)
inside the REPL window.Example script to dump component names for a given entity in that new game about the Arachnid Male (given the correct ReGenny structure definitions)