s_scriptObjectVtable
global · ui
- Address
0x811f4c· 20 bytes, up to0x811f5f- Type
void *[5]- Meaning
- Holds the script object vtable the constructor 0x701ae0 stores
- Confidence
- verified, proof two
- Finding
- ui/script#the-script-object
Finding: The script object in ui: the script layer and events
The script object is 0x24 bytes with the vtable 0x811f4c: a count of holders of its Lua table
(+0x4), the registry reference of that table (+0x8, −2 when there is none), its OnEvent slot
(+0xc), and an array of the event indices it listens to (capacity +0x14, count +0x18, data
+0x1c, grow step +0x20). Its Lua table is made on first use: a table whose element 0 is the
object as light userdata, with the metatable the global __framescript_meta holds. Releasing the
last holder clears element 0, leaves the metatable, and frees the reference.
The derivation is in the doc.