Changes

Jump to navigation Jump to search
12 bytes added ,  19:46, 22 August 2022
m
Line 401: Line 401:  
''Note:'' This chunk has its own lookback string state (is encapsulated with CSystemArchiveEncapsuledChunk).
 
''Note:'' This chunk has its own lookback string state (is encapsulated with CSystemArchiveEncapsuledChunk).
   −
''Note:'' Version 5+ can have data that is based on the count of certain types of items in the item array. If you want to modify items in TM2020, you can come across issues when modifying the item array and it becomes rather difficult. This can be resolved by downgrading the version to 4. This downgrade should only affect item snapping - which is useful only when deleting items in the map editor.
+
''Note:'' Version 5+ can have data that is based on the count of certain types of items in the item array. If you want to modify items in TM2020, you can come across issues when modifying the item array and it becomes rather difficult. This can be resolved by downgrading the version to 4. This downgrade should only affect item snapping - which is "useful" only when deleting items in the map editor.
   −
''Note:'' Version 5+ was guessed by bruteforce, there's a chance something could be inaccurate.
+
''Note:'' The following information may be inaccurate, and was not verified for versions 5 and 6.
    
* '''snappedBlocks''': ''Values'' are ''indexes'' of the Blocks array (chunk 0x01F). -1 = snapped to an item and you should use the index of snappedItems.
 
* '''snappedBlocks''': ''Values'' are ''indexes'' of the Blocks array (chunk 0x01F). -1 = snapped to an item and you should use the index of snappedItems.
Line 419: Line 419:  
  if version >= 1:
 
  if version >= 1:
 
     uint32 size
 
     uint32 size
     uint2[size] // 2 uint32 per element
+
     uint32[size]
 
     if version >= 5: // TM2020
 
     if version >= 5: // TM2020
 
         if version < 6:
 
         if version < 6:
             uint32
+
             uint32 size
 +
            uint32[size]
 
         uint32 snappedBlockCount
 
         uint32 snappedBlockCount
 
         uint32 snappedBlocks[snappedBlockCount]
 
         uint32 snappedBlocks[snappedBlockCount]
33

edits

Navigation menu