benilla-re systems structs docs

s_registerForSaveBlizzardOnly

global · ui

Address
0x8421cc · 56 bytes, up to 0x842203
Type
char[56]
Meaning
Holds the message RegisterForSave raises for a nonzero context word
Confidence
verified, proof two
Finding
ui/luastate#the-context-word

Finding: The context word in ui: the Lua state, its library and C functions

Each Lua value is 16 bytes: a type tag, a context word at +0x4 (padding in stock Lua 5.0) and the value at +0x8. A new value takes the current context 0xceeac0. Copying a value with a nonzero word makes that word current while the nesting count 0xceeac4 is above 0; copying one with a zero word gives it the current context. The per-frame update zeroes the count. A script slot runs under its word, RunScript under [0x83de24], an add-on's files under its name or 0. Context 0 is the client's own code: RegisterForSave raises otherwise, and the action gate 0x494a50 refuses a nonzero context for some kinds (ui/protected#protected-action-gate), signalling MACRO_ACTION_FORBIDDEN for RunScript's word and ADDON_ACTION_FORBIDDEN with the word's text.

The derivation is in the doc.