INIT2
Script INIT2.BIN of Soukoku no Arterial: id 0x5306, 254 instructions, fingerprint ffe0c8022233.
Builds the game's data: it calls the 29 base table scripts (SCINIT first, MUINIT last), then op 0x143 runs each mounted append's $n$AUTORUN, whose fragments add records and rewrite cells of earlier ones. It also fills the slot arrays that pick a record's script by the append that added it, with the base scripts in slot 0.
Source: docs/arterial-data-tables.md (How the data gets into memory)
Calls
Called by SYSTEM4.
It calls ALINIT, AMINIT, ARINIT, CCINIT, CDINIT, CFINIT, CGINIT, CHINIT, CIINIT, COINIT, COUNTSKILL, CVINIT, DEINIT, DRAWMAP, DRAWOBJ, DUINIT, EUINIT, FAINIT, ILINIT, IMINIT, ITINIT, MUINIT, REINIT, RFINIT, RTINIT, SCINIT, SETMAPANIME, SETMAPDATA, SETMAPTEX, SHINIT, SKINIT, SPINIT, TAINIT, TIINIT, VIINIT.
Globals
The named globals its instructions read, write or index (take as an array’s base), with how many operands do each. Cells no global names yet take 2 reads, 22 writes and 18 indexes more.
Patch points
arterial.boot.data_layered, at0x17farterial.boot.data_ready, at0x3a4