Changes

Jump to navigation Jump to search
283 bytes added ,  18:46, 8 June 2017
The version 5 lightmap chunk now supports multiple light maps
Line 138: Line 138:  
*** string locatorUrl
 
*** string locatorUrl
   −
* '''meta''': contains meta information like the track environment, time of day, and author.
+
* '''meta''': contains [[ManiaPlanet_internals#Identifier|meta]] information like the track environment, time of day, and author.
 
** lookbackstring field1
 
** lookbackstring field1
 
** lookbackstring field2
 
** lookbackstring field2
Line 169: Line 169:  
         byte
 
         byte
 
     if version >= 4:
 
     if version >= 4:
         uint32 cost (Copper price; from version 12: Display cost)
+
         uint32 cost (Copper price; since version 12: Display cost)
 
         if version >= 5:
 
         if version >= 5:
 
             bool multilap
 
             bool multilap
Line 303: Line 303:  
''Note:'' blocks with flags 0xFFFFFFFF should be skipped, they aren't counted in the numBlocks.
 
''Note:'' blocks with flags 0xFFFFFFFF should be skipped, they aren't counted in the numBlocks.
   −
''Note:'' It is possible that additional blocks with flags 0xFFFFFFFF (Unassigned) follow after all other blocks.
+
''Note:'' It is possible that additional blocks with flags 0xFFFFFFFF (Unassigned) follow after all other blocks.
 
 
 
'''03043021'''
 
'''03043021'''
Line 348: Line 348:  
  uint32 version
 
  uint32 version
 
  if version >= 5:
 
  if version >= 5:
    uint32 flags
+
    uint32 frames
 
  if version >= 2:
 
  if version >= 2:
    if version >= 4:
+
    if version < 5:
        uint32 size
+
      if version >= 4:
        byte riff[size] // Avg lightmap webp file
+
          uint32 size
    uint32 size
+
          byte riff[size] // Avg lightmap webp file
    byte jfif[size]     // Intens/Avg lightmap jpeg file
+
      uint32 size
    if version == 3:
+
      byte jfif[size]   // Intens/Avg lightmap jpeg file
        uint32 size
+
      if version == 3:
        byte jfif[size] // Intens lightmap jpeg file
+
          uint32 size
    if size != 0:
+
          byte jfif[size] // Intens lightmap jpeg file
        uint32 uncompressedSize
+
    if version >= 5:
        uint32 compressedSize
+
      for each frame:
        byte data[compressedSize]
+
          uint32 size
 +
          byte riff[size] // Avg lightmap webp file
 +
          uint32 size
 +
          byte jfif[size] // Intens lightmap jpeg file
 +
    if size != 0:
 +
      uint32 uncompressedSize
 +
      uint32 compressedSize
 +
      byte data[compressedSize] // Lightmap cache zip file
    
'''03043044''' (skippable)
 
'''03043044''' (skippable)

Navigation menu