Changes

Jump to navigation Jump to search
1,436 bytes added ,  12:48, 17 April 2022
→‎CGameCtnCollector (03 01A 000): WebP format for Item and Block icons
Line 938: Line 938:  
         uint32 IsInternal  : 1;
 
         uint32 IsInternal  : 1;
 
         uint32 IsAdvanced  : 1;
 
         uint32 IsAdvanced  : 1;
         uint32 IconDesc    : 5;  // 0 = Unknown, 1 = NoIcon, 2 = BGRA_64x64, 3 = BGRA_128x128
+
         uint32 IconDesc    : 5;  // 0 = Unknown, 1 = NoIcon, 2 = 64x64, 3 = 128x128
 
         uint32 __unused__  : 24;
 
         uint32 __unused__  : 24;
 
     };
 
     };
Line 950: Line 950:  
  uint16 iconWidth
 
  uint16 iconWidth
 
  uint16 iconHeight
 
  uint16 iconHeight
  byte iconData[4*iconWidth*iconHeight]   // one RGBA uint32 per pixel
+
  if (int16)iconWidth >= 0 && (int16)iconHeight >= 0:
 +
    byte iconData[4*iconWidth*iconHeight] // one RGBA uint32 per pixel
 +
else:
 +
    uint16 version
 +
    if version >= 1:
 +
        uint32 size
 +
        byte iconData[size] // WebP image
    
'''0301A006''' (header)
 
'''0301A006''' (header)
Line 1,164: Line 1,170:     
===CGameCtnMediaClip (03 079 000)===
 
===CGameCtnMediaClip (03 079 000)===
 +
'''03079002'''
 +
uint32
 +
uint32 numTracks
 +
for each track:
 +
    noderef mediaTrack
 +
string clipName
 +
uint32
 +
 +
'''03079003'''
 +
uint32
 +
uint32 numTracks
 +
for each track:
 +
    noderef mediaTrack
 +
string clipName
 +
 
'''03079004''' (all fields are ignored)
 
'''03079004''' (all fields are ignored)
 
  uint32
 
  uint32
Line 1,169: Line 1,190:  
'''03079005'''
 
'''03079005'''
 
  uint32 ignored (0xA)
 
  uint32 ignored (0xA)
  uint32 numTypes
+
  uint32 numTracks
  for each type:
+
  for each track:
 
     noderef mediaTrack
 
     noderef mediaTrack
 
  string clipName
 
  string clipName
   −
'''03079007''' (all fields are ignored)
+
'''03079007'''
 +
uint32 localPlayerClipEntIndex
 +
 
 +
'''0307900A'''
 +
bool stopWhenLeave
 +
 
 +
'''0307900D'''
 
  uint32
 
  uint32
 +
uint32 version
 +
uint32 numTracks
 +
for each track:
 +
    noderef mediaTrack
 +
string clipName
 +
bool stopWhenLeave
 +
bool
 +
bool stopWhenRespawn
 +
string
 +
float
 +
uint32 localPlayerClipEntIndex
    
===CGameCtnMediaTrack (03 078 000)===
 
===CGameCtnMediaTrack (03 078 000)===
Line 1,191: Line 1,229:     
===CControlEffectSimi (07 010 000)===
 
===CControlEffectSimi (07 010 000)===
'''07010005'''
+
'''07010003'''
 +
uint32 numKeys
 +
for each key:
 +
    float timeStamp
 +
    vec2 position
 +
    float rotation (in rad)
 +
    float scaleX
 +
    float scaleY
 +
    float opacity
 +
    float depth
 +
bool centered
 +
 
 +
'''07010004'''
 
  uint32 numKeys
 
  uint32 numKeys
 
  for each key:
 
  for each key:
Line 1,201: Line 1,251:  
     float opacity
 
     float opacity
 
     float depth
 
     float depth
     int128 ignored (0)
+
     float
  int128 ignored
+
    float isContinousEffect
 +
    float
 +
    float
 +
bool centered
 +
uint32 colorBlendMode
 +
bool isContinousEffect
 +
 
 +
'''07010005'''
 +
ReadChunk(0x07010004)
 +
  bool isInterpolated
    
===CGameCtnMediaBlock===
 
===CGameCtnMediaBlock===
Line 1,273: Line 1,332:     
====CGameCtnMediaBlockSound (03 0A7 000)====
 
====CGameCtnMediaBlockSound (03 0A7 000)====
 +
'''030A7001'''
 +
fileref sound
 +
uint32 numKeys
 +
for each key:
 +
    float timeStamp
 +
    float volume
 +
    float pan
 +
 +
'''030A7002'''
 +
uint32 playCount
 +
bool isLooping
 +
 
'''030A7003'''
 
'''030A7003'''
 
  uint32 version
 
  uint32 version
Line 1,415: Line 1,486:  
  float timeClipStart
 
  float timeClipStart
 
  float timeClipEnd
 
  float timeClipEnd
  noderef CGameCtnGhost
+
  noderef ghostModel (CGameCtnGhost)
  float ghostOffset
+
  float startOffset
 +
 
 +
'''030E5002'''
 +
uint32 version
 +
if version < 3:
 +
    float timeClipStart
 +
    float timeClipEnd
 +
if version >= 3:
 +
    uint32 numKeys
 +
    for each key:
 +
        float timeStamp
 +
        float
 +
noderef ghostModel (CGameCtnGhost)
 +
float startOffset
 +
bool noDamage
 +
bool forceLight
 +
bool forceHue
    
===CMwNod (01 001 000)===
 
===CMwNod (01 001 000)===

Navigation menu