Ascendancy: Difference between revisions
Jump to navigation
Jump to search
imported>Mr.Mouse mNo edit summary |
(Added details for subformats) |
||
| Line 62: | Line 62: | ||
* [[MultiEx_Commander|MultiEx Commander]] | * [[MultiEx_Commander|MultiEx Commander]] | ||
* [[Game Extractor|Game Extractor]]<br> | * [[Game Extractor|Game Extractor]]<br> | ||
=== Subformats === | |||
Ascendancy has a number of proprietary formats in the COB file. All of the non-audiovisual stuff is stored as CSV. Some formats are defined below: | |||
==== RAW ==== | |||
Raw, 22050Hz PCM audio. (I'll look up endianness and other details ASAP) | |||
==== VOC ==== | |||
Creative VOiCE files. | |||
==== SHP ==== | |||
Ship visuals. All little-endian | |||
Main file header: | |||
Offset Size Value | |||
0x00 4 bytes Magic number: 0x30312E31 | |||
0x04 4 bytes Number of ship images in file | |||
0x08 4 bytes Offset into file of color palette for ship 1 | |||
0x0C 4 bytes Offset into file of image for ship 1 | |||
0x10 4 bytes Offset into file of color palette for ship 2 | |||
0x14 4 bytes Offset into file of image for ship 2 | |||
<!-- And here I must leave you now, you may access my source at this link: -->From: http://80.126.249.96/users/mark/public/ascendancy/documentation/shp.html | |||
==== FNT ==== | |||
<!-- I don't have time for this now, but: -->From: http://80.126.249.96/users/mark/public/ascendancy/documentation/fnt.html | |||
Revision as of 22:27, 27 June 2005
Choose archive extension:
COB
- Format Type : Archive
- Endian Order : Little Endian
Format Specifications
uint32 {4} - Number Of Files
// for each file
- char {50} - Filename (null)
// for each file
- uint32 {4} - File Offset
byte {X} - File Data
MultiEx BMS Script
Set DUMMYL Long 50 ; Get FILECNTL Long 0 ; Set DUMMYL Long DUMMYL ; Math DUMMYL *= FILECNTL ; SavePos FILESTART 0 ; SavePos TAILSIZEU 0 ; Math TAILSIZEU += DUMMYL ; Math FILECNTL -= 1 ; Do ; GoTo FILESTART 0 ; GetDString FILENAME 50 0 ; SavePos FILESTART 0 ; GoTo TAILSIZEU 0 ; Get FILEOFF Long 0 ; SavePos TAILSIZEU 0 ; Get FILESIZE Long 0 ; Math FILESIZE -= FILEOFF ; Log FILENAME FILEOFF FILESIZE 0 0 ; Math EXTRCNT += 1 ; While EXTRCNT <> FILECNTL ; GoTo FILESTART 0 ; GetDString FILENAME 50 0 ; SavePos FILESTART 0 ; GoTo TAILSIZEU 0 ; Get FILEOFF Long 0 ; GoTo EOF 0 ; SavePos FILESIZE 0 ; Math FILESIZE -= FILEOFF ; Log FILENAME FILEOFF FILESIZE 0 0 ;
Compatible Programs
Subformats
Ascendancy has a number of proprietary formats in the COB file. All of the non-audiovisual stuff is stored as CSV. Some formats are defined below:
RAW
Raw, 22050Hz PCM audio. (I'll look up endianness and other details ASAP)
VOC
Creative VOiCE files.
SHP
Ship visuals. All little-endian Main file header:
Offset Size Value 0x00 4 bytes Magic number: 0x30312E31 0x04 4 bytes Number of ship images in file 0x08 4 bytes Offset into file of color palette for ship 1 0x0C 4 bytes Offset into file of image for ship 1 0x10 4 bytes Offset into file of color palette for ship 2 0x14 4 bytes Offset into file of image for ship 2
From: http://80.126.249.96/users/mark/public/ascendancy/documentation/shp.html
FNT
From: http://80.126.249.96/users/mark/public/ascendancy/documentation/fnt.html