Star Wars Battlefront LVL 1: Difference between revisions

From XentaxWiki
Jump to navigation Jump to search
(sotg caboose)
imported>Ikskoks
No edit summary
 
(7 intermediate revisions by 3 users not shown)
Line 9: Line 9:
<tt><b>
<tt><b>
char {4}&nbsp;&nbsp;&nbsp;&nbsp; - Header <font color="purple">(ucfb)</font> <br>  
char {4}&nbsp;&nbsp;&nbsp;&nbsp; - Header <font color="purple">(ucfb)</font> <br>  
uint32 {4}&nbsp;&nbsp; - Checksum <font color="darkgreen">FNV32</font> <br>  
uint32 {4}&nbsp;&nbsp; - Archive Size <font color="darkgreen">[+8]</font> <br>
uint32 {4}&nbsp;&nbsp; - File Extension <font color="purple">(lvl_)</font> <br>
uint32 {4}&nbsp;&nbsp; - Archive Size <font color="darkgreen">[+16]</font> <br>
uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Unknown '' </font> <br>
uint32 {4}&nbsp;&nbsp; - Archive Size <font color="darkgreen">[+24]</font> <br>  
<br>
<br>
<font color="blue"> ''' // for each file ''' </font> <br>  
<font color="blue"> ''' // for each file ''' </font> <br>  
: char {4}&nbsp;&nbsp;&nbsp;&nbsp; - File Type Code/Extension <font color="purple">
: char {4}&nbsp;&nbsp;&nbsp;&nbsp; - File Type Code/Extension <font color="purple">("coll","entc","gmod","modl","tex_","skel","wpnc","zaa_","zaf_" etc.)</font> <br>  
: uint32 {4}&nbsp;&nbsp; - File Size <font color="purple">(not including this and the previous field)</font> <br>  
: uint32 {4}&nbsp;&nbsp; - File Size <font color="purple">(not including this and the previous field)</font> <br>  
: byte {x}&nbsp;&nbsp;&nbsp;&nbsp; - File Data <font color="purple">(NAME)</font> <br>  
: char {4}&nbsp;&nbsp;&nbsp;&nbsp; - Filename Header <font color="purple">(NAME)</font> <br>
: uint32 {4}&nbsp;&nbsp; - Filename Length <font color="purple">(including 1 null)</font> <br>
: char {X}&nbsp;&nbsp;&nbsp;&nbsp; - Filename <font color="purple">(not including extension)</font> <br>
: byte {1}&nbsp;&nbsp;&nbsp;&nbsp; - null Filename Terminator <br>
: byte {0-3}&nbsp;&nbsp; - null Padding to a multiple of 4 bytes <br>
<br>
: byte {X}&nbsp;&nbsp;&nbsp;&nbsp; - File Data { <br>
<br>
:: <font color="blue"> ''' // for each group ''' </font> <br>
::: uint32 {4}&nbsp;&nbsp; - Group Name <br>
::: uint32 {4}&nbsp;&nbsp; - Group Length <br>
::: byte {X}&nbsp;&nbsp;&nbsp;&nbsp; - Group Data <br>
<br>
:: <font color="blue"> ''' } ''' </font> <br>  
</b></tt>
</b></tt>


Line 23: Line 40:
=== Notes and Comments ===  
=== Notes and Comments ===  


* The files all seem to have their own archive-like structure
* It appears as though the Filename Header field and the Information Header field may not be read by the game because they are sometimes the Filename header says INFO and the Information Header says NAME. However, the fields following the Filename Header is the filename regardless of the actual value of Filename Header. (ie sometimes the Filename Header has the wrong value, but the filename still follows as in the spec)
* Also, the files all seem to have their own archive-like structure
 
=== Supported Programs ===
 
* [[Game Extractor|Game Extractor]]<br>
 
 
[[Category:File Format]]

Latest revision as of 14:58, 21 January 2021

LVL


Format Specifications

char {4}     - Header (ucfb)
uint32 {4}   - Archive Size [+8]
uint32 {4}   - File Extension (lvl_)
uint32 {4}   - Archive Size [+16]
uint32 {4}   - Unknown
uint32 {4}   - Archive Size [+24]

// for each file

char {4}     - File Type Code/Extension ("coll","entc","gmod","modl","tex_","skel","wpnc","zaa_","zaf_" etc.)
uint32 {4}   - File Size (not including this and the previous field)
char {4}     - Filename Header (NAME)
uint32 {4}   - Filename Length (including 1 null)
char {X}     - Filename (not including extension)
byte {1}     - null Filename Terminator
byte {0-3}   - null Padding to a multiple of 4 bytes


byte {X}     - File Data {


// for each group
uint32 {4}   - Group Name
uint32 {4}   - Group Length
byte {X}     - Group Data


}

MultiEx BMS

Not written yet

Notes and Comments

  • It appears as though the Filename Header field and the Information Header field may not be read by the game because they are sometimes the Filename header says INFO and the Information Header says NAME. However, the fields following the Filename Header is the filename regardless of the actual value of Filename Header. (ie sometimes the Filename Header has the wrong value, but the filename still follows as in the spec)
  • Also, the files all seem to have their own archive-like structure

Supported Programs