GRAF:AFS AFS

From XentaxWiki
Revision as of 15:03, 11 January 2006 by imported>Mr.Mouse (→‎MultiEx BMS Script)
Jump to navigation Jump to search

AFS


Format Specifications

char {4}     - Header (AFS + null)
uint32 {4}   - Number Of Files

// for each file

uint32 {4}   - Offset
uint32 {4}   - Length


uint32 {4}   - Filename Directory Offset
byte {X}     - File Data

// Filename Directory

// for each file
char {32}    - Filename (null)
uint32 {4}   - File Type ID
uint16 {2}   - Unknown
uint16 {2}   - Unknown
uint16 {2}   - Unknown
uint16 {2}   - Unknown
uint32 {4}   - Junk (matches each value in the directory, including offsets and sizes, in order)


MultiEx BMS Script

IDString 0 AFS ;
ImpType Standard ;
Get D Byte 0 ;
Get FileNum Long 0 ;
For T = 1 To FileNum ;
SavePos FOO 0 ;
Get FO Long 0 ;
SavePos FSO 0 ;
Get FS Long 0 ;
Log "" FO FS FOO FSO ;
Next T ;



Notes and Comments

Each file, and the directory, are padded to multiples of 2048 bytes using null bytes. So, the first file will start at offset 2048, or 4096, etc, and similarly with the next files.

Compatible Programs


Other Games

These games also use this file format

  • 50 Cent: Bulletproof (PS2) *.afs
  • DragonBall Z: Budokai 3 (PS2) *.afs
  • Leisure Suit Larry: Manga Cum Laude *.afs
  • Mortal Kombat Shaolin Monks (PS2) *.afs
  • Phantasy Star Online *.afs
  • Pro Evolution Soccer 5 *.afs
  • Silent Hill 3 *.afs