Thread: WLD file format
View Single Post
  #2  
Old 12-28-2003, 10:12 AM
daeken_bb
Discordant
 
Join Date: Mar 2003
Location: Chambersburg, PA
Posts: 469
Default Data03 and Data04

Data03 fragments start with an unsigned long that has the count of chunks in the fragment. Each chunk has an unsigned short which is the length of the data stored in the chunk, and then that many bytes of data.
This data is encoded using the algorithm used for the nameHash in the WLD file header.

Data04 fragments start with an unsigned long containing flags, and then an unsigned long with the count of fragment references.
If the flags & 0x4 != 0, then there is an unsigned long containing "parameter" 1.
If the flags & 0x8 != 0, then there is an unsigned long containing "parameter" 2.
After the optional data is a number of fragment references, indicated by the count in the Data04 header.
Each fragment reference is unsigned long containing the fragment index it references.
__________________
Keep me unemployed and working on OpenEQ, PM me about donating

Check out my deviantART page at http://daeken.deviantart.com/
Reply With Quote