GRAF:AGON SFL: Difference between revisions
Jump to navigation
Jump to search
imported>Dinoguy1000 mNo edit summary |
imported>Ikskoks No edit summary |
||
| (6 intermediate revisions by 2 users not shown) | |||
| Line 2: | Line 2: | ||
== SFL == | == SFL == | ||
{{GRAFPageMisc | {{GRAFPageMisc}} | ||
=== Format Specifications === | === Format Specifications === | ||
{{GRAFPageFormat|1={{ | {{GRAFPageFormat|1={{BlockDescription| // ARCHIVE HEADER }} | ||
: char {5} - Header {{ | : char {5} - Header {{Constant|(SFL10)}} | ||
: uint32 {4} - Folders Directory Offset | : uint32 {4} - Folders Directory Offset | ||
: uint32 {4} - Files Directory Offset | : uint32 {4} - Files Directory Offset | ||
| Line 14: | Line 14: | ||
: uint32 {4} - Filename Directory Length | : uint32 {4} - Filename Directory Length | ||
{{ | {{BlockDescription| // FILE DATA }} | ||
: {{ | : {{BlockDescription| // for each file }} | ||
:: byte {X} - File Data | :: byte {X} - File Data | ||
{{ | {{BlockDescription| // FOLDERS DIRECTORY }} | ||
: {{ | : {{BlockDescription| // for each folder (16 bytes for each entry, 12 bytes for the last entry) }} | ||
:: uint32 {4} - Folder Name Offset {{ | :: uint32 {4} - Folder Name Offset {{InlineComment|(relative to the start of the filename directory)}} | ||
:: uint32 {4} - File ID {{ | :: uint32 {4} - File ID {{InlineComment|(can be all 255's) (incremental from -1)}} | ||
:: uint32 {4} - {{Unknown|Parent Directory ID?}} {{ | :: uint32 {4} - {{Unknown|Parent Directory ID?}} {{InlineComment|(mostly all 255's)}} | ||
:: uint32 {4} - {{Unknown|ID? of the first file in this folder}} {{ | :: uint32 {4} - {{Unknown|ID? of the first file in this folder}} {{InlineComment|(this field does not exist for the last folder entry)}} | ||
{{ | {{BlockDescription| // FILES DIRECTORY }} | ||
: {{ | : {{BlockDescription| // for each file (17 bytes for each entry) }} | ||
:: uint32 {4} - Filename Offset {{ | :: uint32 {4} - Filename Offset {{InlineComment|(relative to the start of the filename directory)}} | ||
:: byte {1} - null | :: byte {1} - null | ||
:: uint32 {4} - File ID {{ | :: uint32 {4} - File ID {{InlineComment|(can be all 255's) (incremental from -1)}} | ||
:: uint32 {4} - File Offset | :: uint32 {4} - File Offset | ||
:: uint32 {4} - File Length | :: uint32 {4} - File Length | ||
{{ | {{BlockDescription| // FILENAME DIRECTORY }} | ||
: {{ | : {{BlockDescription| // for each file }} | ||
:: char {X} - Filename | :: char {X} - Filename | ||
:: byte {1} - null Filename Terminator}} | :: byte {1} - null Filename Terminator}} | ||
| Line 58: | Line 58: | ||
[[Category:Platform PC|AGON SFL]] | [[Category:Platform PC|AGON SFL]] | ||
[[Category:CE None|AGON SFL]] | [[Category:CE None|AGON SFL]] | ||
[[Category:File Format]] | |||
Latest revision as of 01:08, 3 January 2021
Back to index | Edit this page
SFL
- Format type: Archive
- Endianness: Little-endian
Format Specifications
// ARCHIVE HEADER
- char {5} - Header (SFL10)
- uint32 {4} - Folders Directory Offset
- uint32 {4} - Files Directory Offset
- uint32 {4} - Filename Directory Offset
- uint32 {4} - Number Of Folders
- uint32 {4} - Number Of Files
- uint32 {4} - Filename Directory Length
// FILE DATA
- // for each file
- byte {X} - File Data
// FOLDERS DIRECTORY
- // for each folder (16 bytes for each entry, 12 bytes for the last entry)
- uint32 {4} - Folder Name Offset (relative to the start of the filename directory)
- uint32 {4} - File ID (can be all 255's) (incremental from -1)
- uint32 {4} - Parent Directory ID? (mostly all 255's)
- uint32 {4} - ID? of the first file in this folder (this field does not exist for the last folder entry)
// FILES DIRECTORY
- // for each file (17 bytes for each entry)
- uint32 {4} - Filename Offset (relative to the start of the filename directory)
- byte {1} - null
- uint32 {4} - File ID (can be all 255's) (incremental from -1)
- uint32 {4} - File Offset
- uint32 {4} - File Length
// FILENAME DIRECTORY
- // for each file
- char {X} - Filename
- byte {1} - null Filename Terminator
Notes and Comments
None
MultiEx BMS Script
None written yet.
Supported by Programs
Links
None