Adobe Director Files: Difference between revisions
Jump to navigation
Jump to search
imported>Dinoguy1000 No edit summary |
imported>PXR No edit summary |
||
| Line 20: | Line 20: | ||
: uint32 {4} - File Length <br> | : uint32 {4} - File Length <br> | ||
: byte {X} - File Data <br> | : byte {X} - File Data <br> | ||
</b></tt> | </b></tt><br> | ||
=== Notes and Comments === | |||
The BMS script given below will extract and replace files. A limitation for this script is that you are only able to replace on file at a time to avoid making the archive corrupted. I.e. load the archive in [[MultiEx Commander|MultiEx Commander]], replace a file (if you'd like) and then re-open the archive to replace another one.<br><br> | |||
=== MultiEx BMS === | === MultiEx BMS === | ||
<pre>ImpType SFileSize ; | |||
<br> | IDString 0 XFIR ; | ||
Get ARCSIZE Long 0 ; | |||
Get TEMP Long 0 ; | |||
Set FNTITLE String File_ ; | |||
Set FNID String 1 ; | |||
Set FNDOT String . ; | |||
Set FNREMOVE String * ; | |||
Do ; | |||
GetDString FNEXT 4 0 ; | |||
SavePos FSIZEX 0 ; | |||
Get FSIZE Long 0 ; | |||
If FSIZE = 0 ; | |||
CleanExit ; | |||
EndIf ; | |||
SavePos FOFFSET 0 ; | |||
Math FNID += 1 ; | |||
Set FNAME String FNTITLE ; | |||
String FNAME += FNID ; | |||
String FNAME += FNDOT ; | |||
String FNAME += FNEXT ; | |||
String FNAME -= FNREMOVE ; | |||
Log FNAME FOFFSET FSIZE 0 FSIZEX ; | |||
Math FOFFSET += FSIZE ; | |||
GoTo FOFFSET 0 ; | |||
While NotEOF <> 0 ; | |||
</pre><br> | |||
=== Supported Programs === | === Supported Programs === | ||
* [[Game Extractor|Game Extractor]]<br> | * [[Game Extractor|Game Extractor]]<br> | ||
* [[MultiEx Commander|MultiEx Commander]]<br><br> | |||
[[Category: | [[Category:BMS]] | ||
Revision as of 13:43, 22 April 2006
Choose archive extension:
CXT
- Format Type : Archive
- Endian Order : Little Endian
Format Specifications
char {4} - Header 1 (XFIR)
uint32 {4} - Archive Length [+8]
char {4} - Header 2 (39VM)
// for each file
- char {4} - File Extension
- uint32 {4} - File Length
- byte {X} - File Data
Notes and Comments
The BMS script given below will extract and replace files. A limitation for this script is that you are only able to replace on file at a time to avoid making the archive corrupted. I.e. load the archive in MultiEx Commander, replace a file (if you'd like) and then re-open the archive to replace another one.
MultiEx BMS
ImpType SFileSize ; IDString 0 XFIR ; Get ARCSIZE Long 0 ; Get TEMP Long 0 ; Set FNTITLE String File_ ; Set FNID String 1 ; Set FNDOT String . ; Set FNREMOVE String * ; Do ; GetDString FNEXT 4 0 ; SavePos FSIZEX 0 ; Get FSIZE Long 0 ; If FSIZE = 0 ; CleanExit ; EndIf ; SavePos FOFFSET 0 ; Math FNID += 1 ; Set FNAME String FNTITLE ; String FNAME += FNID ; String FNAME += FNDOT ; String FNAME += FNEXT ; String FNAME -= FNREMOVE ; Log FNAME FOFFSET FSIZE 0 FSIZEX ; Math FOFFSET += FSIZE ; GoTo FOFFSET 0 ; While NotEOF <> 0 ;