User Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
blast_corps:levels [2016/04/19 20:39]
queueram Formatting and table cleanups
blast_corps:levels [2017/06/23 10:34] (current)
shygoo ↷ Links adapted because of a move operation
Line 6: Line 6:
 The level data begins with a header that contains the offsets in the file for all of the level information (RDUs, buildings, vehicles, etc.). The level data file also contains vertices and other data used by the display list that are loaded into segment 08. The level data begins with a header that contains the offsets in the file for all of the level information (RDUs, buildings, vehicles, etc.). The level data file also contains vertices and other data used by the display list that are loaded into segment 08.
  
-The display list contains mostly raw F3D commands. The exception is 0xFD G_SETTIMG command which contain indexes to a [[bc:​textures#​texture_table|texture table]]. At run-time, after the display list is copied to RAM, the texture indexes in the G_SETTIMG are replaced with texture offsets in segment 0x00.+The display list contains mostly raw F3D commands. The exception is 0xFD G_SETTIMG command which contain indexes to a [[blast_corps:​textures#​texture_table|texture table]]. At run-time, after the display list is copied to RAM, the texture indexes in the G_SETTIMG are replaced with texture offsets in segment 0x00.
  
 ===== List of Levels ===== ===== List of Levels =====
Line 92: Line 92:
 | 0x1C | 4 | unsigned | (1: normal, 0: dip, level18, level20, level34, level43, level9), stored to byte 0x803BE739 | | 0x1C | 4 | unsigned | (1: normal, 0: dip, level18, level20, level34, level43, level9), stored to byte 0x803BE739 |
 | 0x20 | 4 | unsigned | Ammo boxes (Ballista and Sideswipe) | | 0x20 | 4 | unsigned | Ammo boxes (Ballista and Sideswipe) |
-| 0x24 | 4 | unsigned | Collision ​fixes |+| 0x24 | 4 | unsigned | Collision |
 | 0x28 | 4 | unsigned | Communication Point | | 0x28 | 4 | unsigned | Communication Point |
 | 0x2C | 4 | unsigned | Animated textures (water, lava, barricades) | | 0x2C | 4 | unsigned | Animated textures (water, lava, barricades) |
Line 99: Line 99:
 | 0x38 | 4 | unsigned | TNT crates | | 0x38 | 4 | unsigned | TNT crates |
 | 0x3C | 4 | unsigned | Square blocks and holes | | 0x3C | 4 | unsigned | Square blocks and holes |
-| 0x40 | 4 | unsigned | TODO Bounding boxes? | +| 0x40 | 4 | unsigned | Bounding boxes? | 
-| 0x44 | 4 | unsigned | TODO Bounding boxes? |+| 0x44 | 4 | unsigned | Bounding boxes? |
 | 0x48 | 4 | unsigned | TODO | | 0x48 | 4 | unsigned | TODO |
-| 0x4C | 4 | unsigned | TODO Level bounds? |+| 0x4C | 4 | unsigned | Level bounds? |
 | 0x50 | 4 | unsigned | Vehicles | | 0x50 | 4 | unsigned | Vehicles |
 | 0x54 | 4 | unsigned | Missile carrier settings | | 0x54 | 4 | unsigned | Missile carrier settings |
-| 0x58 | 4 | unsigned | TODO |+| 0x58 | 4 | unsigned | Unused? (only in lagp and level26) ​|
 | 0x5C | 4 | unsigned | Buildings | | 0x5C | 4 | unsigned | Buildings |
 | 0x60 | 4 | unsigned | Unused (only in chimp and lagp) | | 0x60 | 4 | unsigned | Unused (only in chimp and lagp) |
Line 148: Line 148:
   0AA6 002C 1379 0000   0AA6 002C 1379 0000
  
-==== 0x24: Collision ====+==== 0x24: Collision ====
 These are additional collision triangles set up to prevent J-Bomb from clipping through structures from above. In levels that contain the J-Bomb, triangles are drawn around the semi, tunnels, and other things it probably shouldn'​t mess with from above. Also, the large gray area surrounding the crane in Ironstone Mine is defined with these. These are additional collision triangles set up to prevent J-Bomb from clipping through structures from above. In levels that contain the J-Bomb, triangles are drawn around the semi, tunnels, and other things it probably shouldn'​t mess with from above. Also, the large gray area surrounding the crane in Ironstone Mine is defined with these.
  
Line 287: Line 287:
   ...   ...
  
-==== 0x38: CNT crates ====+==== 0x38: TNT crates ====
  
   [XX XX] [YY YY] [ZZ ZZ] [EE] [TT] [H8 H8] [PP PP]   [XX XX] [YY YY] [ZZ ZZ] [EE] [TT] [H8 H8] [PP PP]
Line 357: Line 357:
     07 FD 00 00     07 FD 00 00
  
-==== 0x40: TODO ====+==== 0x40: Bounding Boxes ====
 some bounding boxes some bounding boxes
  
Line 432: Line 432:
   0AFA 041A 0C8A 0C4E 012F   0AFA 041A 0C8A 0C4E 012F
  
-==== 0x44: TODO ====+==== 0x44: Bounding Boxes ====
 some bounding boxes some bounding boxes
  
Line 519: Line 519:
   1C 07BC 07E2 0000 0BB8 00   1C 07BC 07E2 0000 0BB8 00
  
-==== 0x58: TODO ====+==== 0x58: Unused? ​====
 8 bytes of data, only used in two levels, both with same data 8 bytes of data, only used in two levels, both with same data
  
Line 559: Line 559:
   ...   ...
  
-==== 0x60: Unused ====+==== 0x60: Unused====
 Probably unused. Data in chimp shows 5 points under bridge. Data in lagp looks like zig-zag lamp post pattern. Probably unused. Data in chimp shows 5 points under bridge. Data in lagp looks like zig-zag lamp post pattern.
 first byte stored to 0x80364a6e, variable length records after that first byte stored to 0x80364a6e, variable length records after that