Showdown -Legends of Wrestling DR: Difference between revisions

From XentaxWiki
Jump to navigation Jump to search
imported>Mr.Mouse
mNo edit summary
imported>Ikskoks
 
(5 intermediate revisions by 2 users not shown)
Line 13: Line 13:
<!-- Insert format specs here using <pre></pre> -->
<!-- Insert format specs here using <pre></pre> -->


<pre>// MexCom - Recreation of C:\Documents and Settings\Mike\Mijn documenten\charitymultiex\showdown\dr.bms
<pre>// MexCom - Recreation of \showdown\dr.bms
// THIS IS AN AUTOMATED SPECIFICATION
// THIS IS AN AUTOMATED SPECIFICATION
// READ WITH CARE
// READ WITH CARE
Line 35: Line 35:


#DECLARE CP = CURRENT OFFSET
#DECLARE CP = CURRENT OFFSET
==> End Of File
#DECLARE END = CURRENT OFFSET
#DECLARE END = CURRENT OFFSET


Line 64: Line 65:
// MexCom - Recreation complete  
// MexCom - Recreation complete  
</pre>
</pre>


=== MultiEx BMS ===  
=== MultiEx BMS ===  
Line 101: Line 101:


* [[MultiEx_Commander|MultiEx Commander]]
* [[MultiEx_Commander|MultiEx Commander]]
[[Category:File Format]]

Latest revision as of 11:55, 21 January 2021

Back to index

Choose archive extension:

DR


Format Specifications

// MexCom - Recreation of \showdown\dr.bms
// THIS IS AN AUTOMATED SPECIFICATION
// READ WITH CARE
// ----------------------------
// LEGEND
// ----------------------------
// ==> (Jump to offset)
// #DECLARE (Set variable to value)
// $$ CALCULATE (Calculate a new value)
// ** (Section that repeats itself on condition)
// // (Comment)
// uint32{4} (Unsigned 32-bit value, 4 bytes)
// uint16{2} (Unsigned 16-bit value, 2 bytes)
// ubyte{1} (Unsigned 8-bit value, 1 byte)
// char{n} (String value, n bytes in length
// ----------------------------


// Format Specification


#DECLARE CP = CURRENT OFFSET
==> End Of File
#DECLARE END = CURRENT OFFSET


==>CP


** DO 

uint32{4}		Width
uint32{4}		Heigth

$$ CALCULATE FileSize * Width
uint32{4}		Unknown
uint32{4}		NameSize
char{}   		IDName
char{}   		FileName


// Resources have a name (FileName), are located at Offset and have a size of FileSize
$$ CALCULATE CP + FileSize


==>CP


** WHILE CP < END
// ----------------------------
// MexCom - Recreation complete 

MultiEx BMS

SavePos CP 0 ;
GoTo EOF 0 ;
SavePos END 0 ;
GoTo CP 0 ;
Do ;
Set Offset Long CP ;
Get Width Long 0 ;
Get Heigth Long 0 ;
Set FileSize Long Heigth ;
Math FileSize *= Width ;
Get Unknown Long 0 ;
Get NameSize Long 0 ;
Get IDName String 0 ;
Get FileName String 0 ;
Log FileName Offset FileSize 0 0 ;
Math CP += FileSize ;
GoTo CP 0 ;
While CP < END ;


Notes and Comments

The BMS script assumes all resources in the archives are padded according to a certain width and heigth (saved at the beginning of the file). They have a header that includes their own name.


Supported by Programs