benilla-re systems structs docs

s_pageTextMaterialMaxId

global · dbc

Address
0xc0da20 · 4 bytes, up to 0xc0da23
Type
int32_t
Meaning
Holds the highest PageTextMaterial.dbc id, -1 before loading
Confidence
verified, proof one
Finding
ui/questmaterial#page-material-table

Finding: Page material table in ui: quest page material and the reward error

PageTextMaterial.dbc is loaded at startup. The loader accepts only the signature WDBC, 2 fields and 8 bytes a record, and indexes the rows by id: the highest id is tracked and index[row.id] holds the row. A row is the id (+0) and the name (+4), a pointer into the string block. The store keeps the records, their count, the index and the highest id, -1 until loaded. The names are the file's; no material name occurs in the executable.

The derivation is in the doc.