Changes

Jump to navigation Jump to search
153 bytes removed ,  20:23, 22 August 2022
Line 403: Line 403:  
''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:'' The following information may be inaccurate, and was not verified for versions 5 and 6.
+
''Note:'' The following information may not be 100% accurate.
    
* '''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 417: Line 417:  
  for each item:
 
  for each item:
 
     node item (CGameCtnAnchoredObject, direct node)
 
     node item (CGameCtnAnchoredObject, direct node)
  if version >= 1:
+
  if version >= 1 && version != 5:
 
     uint32 size
 
     uint32 size
     uint32[size]
+
     uint32[size] // unknown atm
    if version >= 5: // TM2020
+
if version >= 5: // TM2020
        if version < 6:
+
    uint32 snappedBlockCount
            uint32 size
+
    uint32 snappedBlocks[snappedBlockCount]
            uint32[size]
+
    if version >= 6:
        uint32 snappedBlockCount
  −
        uint32 snappedBlocks[snappedBlockCount]
   
         uint32 snappedItemCount
 
         uint32 snappedItemCount
 
         uint32 snappedItems[snappedItemCount]
 
         uint32 snappedItems[snappedItemCount]
        if version >= 6:
+
    uint32 snapItemGroupCount
            uint32 snapItemGroupCount
+
    uint32 snapItemGroups[snapItemGroupCount]
            uint32 snapItemGroups[snapItemGroupCount]
+
    if version != 6:
            uint32 size
+
        uint32 size
            uint32[size] // unknown atm
+
        uint32[size] // unknown atm
            if version >= 7:
+
    uint32 itemSnapIndexCount // should be the same as the item count itself
                uint32 itemSnapIndexCount // should be the same as the item count itself
+
    uint32 itemSnapIndexes[itemSnapIndexCount]
                uint32 itemSnapIndexes[itemSnapIndexCount]
      
'''03043044''' (skippable)
 
'''03043044''' (skippable)
44

edits

Navigation menu