Star Wars Battlefront LVL 1: Difference between revisions

From XentaxWiki
Jump to navigation Jump to search
(+misc autor)
(sotg caboose)
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; - Archive Size <font color="darkgreen">[+8]</font> <br>
uint32 {4}&nbsp;&nbsp; - Checksum <font color="darkgreen">FNV32</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">("coll","entc","gmod","modl","tex_","skel","wpnc","zaa_","zaf_" etc.)</font> <br>  
: char {4}&nbsp;&nbsp;&nbsp;&nbsp; - File Type Code/Extension <font color="purple">
: 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>  
: char {4}&nbsp;&nbsp;&nbsp;&nbsp; - Filename Header <font color="purple">(NAME)</font> <br>
: byte {x}&nbsp;&nbsp;&nbsp;&nbsp; - File Data <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 40: Line 23:
=== Notes and Comments ===  
=== 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)
* The files all seem to have their own archive-like structure
* Also, the files all seem to have their own archive-like structure
 
====
***
! you can find and replace many values! ALL hex values (for lives,(ex.: 1b1f9719, etc.) ARE identical!
! loading structure some kind weird (loads not all (by logic) but many from 1 place)

Revision as of 00:05, 12 December 2010

LVL


Format Specifications

char {4}     - Header (ucfb)
uint32 {4}   - Checksum FNV32

// for each file

char {4}     - File Type Code/Extension
uint32 {4}   - File Size (not including this and the previous field)
byte {x}     - File Data (NAME)

MultiEx BMS

Not written yet

Notes and Comments

  • The files all seem to have their own archive-like structure