Hack64 Wiki
Other Titles
Hack64 Wiki
Other Titles
This is an old revision of the document!
These scripts load display lists within the model file, with certain aspects, properties, and checks applied. They are found at the end of a model file. Commands 0x00 through 0x10 are identical to those in Banjo-Kazooie, so we list only new commands. Note that level and skybox models can only use the old commands, and will not respect bone indices.
Loads a display list from the DL segment and attaches it to the current group of bones with ID. Usage:
Value/Syntax | Description |
---|---|
[00 00 00 02] | Bone Command ID |
[00 00 aa aa] | Load DL - DL Segment Address/8 (Example: 0x1C = 0xE0) |
[bb cc dd dd] | bb=Continue*, cc=Bone ID, dddd=?? |
[00 00 00 00] | If bb=10, these four bytes are written before the next command. |
*Continue: If 00, GeoLayout stops after command. If 0x10, GeoLayout continues.
Loads a display list from offset of F3DEX2 segment Usage:
Value/Syntax | Description |
---|---|
[00 00 00 03] | Load DL Command ID |
[00 00 00 aa] | 00 to end GeoLayout after command, 0x10 to continue |
[bb bb cc cc] | bbbb=Offset in DL Segment/0x08, cccc=Tri Count |
[00 00 00 00] | If aa=10, these four bytes are written before the next command. |
*Continue: If 00, GeoLayout stops after command. If 0x10, GeoLayout continues.
Example: 00 00 00 03 00 00 00 00 00 2D 00 10
Addr= 0x2D*0x08 offset from F3DEX2 Segment Start, 0x168 0x10= 16 triangles in DL
Usage currently unknown.
Usage currently unknown.
Usage currently unknown.
Applies draw distance to descending geometry Usage:
Value/Syntax | Description |
---|---|
[00 00 00 0D] | Command |
[00 00 00 aa] | 00 for final instance, 28 otherwise |
[XX XX YY YY ZZ ZZ] | Draw distance: Negative Coords |
[XX XX YY YY ZZ ZZ] | Draw distance: Positive Coords |
[bb bb cc cc] | bbbb= ?? Usually 0018, cccc= ????? |
Usage currently unknown.
Usage currently unknown.