ReadLightRecord
function · dbc · primitive
- Address
0x589220· 294 bytes, up to0x589345- Signature
bool __thiscall (void *this, void *file, const char *stringBase)- Meaning
- Reads one LightRec column by column from the file and rebases its string offsets
- Confidence
- verified, proof one
- Finding
- lighting/tables#table-stores
Finding: Table stores in lighting: tables
Each table has a store of five dwords: the records, the record count, an id map, the largest id and
a loaded flag. A record is the file's columns in file order. The id map has largest id + 1 slots,
zeroed, and slot id points at the record whose first column is id, so every reference below is
an id used as an index, and an id with no record reads as null.
| table | store | columns, bytes | record |
|---|---|---|---|
| Light | 0xce9d60 | 12, 48 | id, map, x, y, z, inner radius, outer radius, five LightParams ids |
| LightParams | 0xce9d74 | 9, 36 | id, then eight columns the gather copies |
| LightFloatBand | 0xce9d88 | 34, 136 | id, key count, 16 key times, 16 floats |
| LightIntBand | 0xce9d9c | 34, 136 | id, key count, 16 key times, 16 colours |
| LightSkybox | 0xce9db0 | 2, 8 | id, model path |
The derivation is in the doc.
Callers 1
- LoadLightStore dbc
Callees 2
- ConsoleWrite console
- SFile::Read storm
Calls and jumps by a bare address, from tables/calls.tsv.