Welcome to Data Crystal's new home! Data Crystal is now part of the TCRF family (sort of).
The wiki has recently moved; please report any issues in Discord. Pardon the dust.

Mother 3/RAS block

From Data Crystal
< Mother 3
Revision as of 21:10, 15 July 2013 by JeffMan (talk | contribs) (Created page with "==Overview== RAS is a block that's only used for the battle background data and entry tabl...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Overview

RAS is a block that's only used for the battle background data and entry tables. For consistency with the other named data structures, the format is explained on this page, rather than on the battle data pages.

Format

  • 00-03 (04) = "ras " header
  • 04-05 (02) = Number of layer entries
  • 06-07 (02) = Number of master entries
  • 08-.. (..) = Layer entries
  • ..-.. (..) = Master entries
  • ..-.. (04) = "~ras" footer

Layer entries

The layer entries immediately follow the 8-byte header. In the battle background data table, there are 0x222 layer entries. Each entry uses 144 (0x90) bytes. Each entry contains animation information for its associated battle background layer.

Layer entry format

Table view

       00   01   02   03   04   05   06   07   08   09   0A   0B   0C   0D   0E   0F
    +--------------------------------------------------------------------------------
00  | [   A   ] [   B   ] [                            C                           ->
10  | <-                                     C                                     ->
20  | <-                                     C                                     ->
30  | <-                                     C                                     ->
40  | <-        C       ] [   D   ] [   ?   ] [   E   ] [   F   ] [   G   ] [   ?  ->
50  | <-                                     ?                                     ->
60  | <-                                     ?                                     ->
70  | <-        ?       ] [   H   ] [   I   ] [        ?        ] [   J   ] [   K   ]
80  | [   L   ] [   M   ] [   N   ] [   O   ] [                  ?                  ]