benilla-re systems structs docs

s_usageSetScriptMemory

global · glue

Address
0x837e7c · 27 bytes, up to 0x837e96
Type
char[27]
Meaning
Holds SetScriptMemory's usage error text, which names the unit MB
Confidence
verified, proof one
Finding
glue/script#script-memory

Finding: Script memory in glue: the script functions

GetScriptMemory (0x46da10) returns the scriptMemory CVar's integer, in KB, divided by 1024 with truncation toward zero, as a number: the default 49152 gives 48. SetScriptMemory (0x46da50) takes a number of MB, else its usage error, and sets the CVar to the decimal text of the low 32 bits of its __ftol, shifted left by 10 with wrap-around. It returns nothing.

The derivation is in the doc.