SCAN (Metroid Prime): Difference between revisions
Jump to navigation
Jump to search
>MrSinistar (→Entry: Discovered the layout of images and how the floats work.) |
>MrSinistar (→Entry) |
||
Line 87: | Line 87: | ||
| colspan=2 {{unknown|End of entry}} | | colspan=2 {{unknown|End of entry}} | ||
|} | |} | ||
[[File:Scan_positions1.png|thumb|300px|Offsets for the different scan images and their positions]] | |||
[[File:Scan_positions2.png|thumb|300px]] | |||
This pattern repeats, however the next image will be displayed on the right. The third image will be displayed on the right again but for smaller pictures and finally, the fourth image will be displayed on the bottom left corner, again for use for smaller pictures. The float increases with every entry, so the next image will be .50, the third will be .75 and finally the last image will load at 1, when the scan finishes. | This pattern repeats, however the next image will be displayed on the right. The third image will be displayed on the right again but for smaller pictures and finally, the fourth image will be displayed on the bottom left corner, again for use for smaller pictures. The float increases with every entry, so the next image will be .50, the third will be .75 and finally the last image will load at 1, when the scan finishes. |
Revision as of 09:55, 27 January 2015
The .SCAN file format describes scannable objects, and has references to several resources. It is a relatively simple format and has a static size.
This file format needs a lot of research Too many unknowns. |
Header
The header is rather simple, and consists of the following:
Offset | Size | Description |
---|---|---|
0x0 | 4 | Version |
0x4 | 4 | Magic; always 0x0BADBEEF |
0x8 | 4 | FRME ID |
0xC | 4 | STRG ID |
0x10 | 4 | Scan Speed; 0 = Fast Scan, 1 = Slower Scan, usually found in boss fights |
0x14 | 4 | Scan Type; 0 = No message, 1 = Pirate Data, 2 = Chozo Lore, 3 = Creatures, 4 = Research |
0x18 | 1 | Red Scan Symbol Flag; 0 = Orange symbol, 1 = Red symbol |
0x19 | End of header |
Entry
Following the header is an array of 4 structs which follow this format:
Offset | Size | Description |
---|---|---|
0x0 | 4 | TXTR ID |
0x4 | 4 | 0.25 Float; when the scan download is 25% finished, display this image. Another 25% is added on to the next float on the next image entry. |
0x8 | 4 | Unknown (Fade in duration?) - long |
0xC | 4 | Unknown - long |
0x10 | 4 | Unknown - long |
0x14 | 4 | Unknown - long |
0x18 | 4 | Unknown - float |
0x1C | End of entry |
This pattern repeats, however the next image will be displayed on the right. The third image will be displayed on the right again but for smaller pictures and finally, the fourth image will be displayed on the bottom left corner, again for use for smaller pictures. The float increases with every entry, so the next image will be .50, the third will be .75 and finally the last image will load at 1, when the scan finishes.