benilla-re systems structs docs

CGPlayer_C::ReadTrainerList

function · objectlayer · primitive

Address
0x5dca60 · 760 bytes, up to 0x5dcd57
Meaning
Reads a trainer's spells into stack arrays sized from its count and opens the trainer it was asked
Confidence
verified, proof one
Finding
objectlayer/inventory#trainers

Finding: Trainers in objectlayer: inventory

0x1b1 (0x5dca60) reads the trainer, a type and a u32 count, and sizes twelve stack arrays, ten of four times the count and two of the count, 42 bytes a spell, all through the probe 0x40a280. The image reserves 0x100000 bytes of stack, so a count above about 25,000 faults in the probe, long before four times the count wraps at 2^30. With the greeting it opens the trainer when the GUID is the one asked (0xc4d788) or 0xbc3f58. 0x1b4 prints one of three console lines for results 0 to 2.

The derivation is in the doc.

Callers 1

Callees 11

Calls and jumps by a bare address, from tables/calls.tsv.