Difference between revisions of "Sims 4:0x8EAF13DE"

From SimsWiki
Jump to: navigation, search
(Copy/Paste _RIG format for TS4 from TS3, as it appears unchanged since TS3 at this time)
 
(Format: Updated for changes in format from The Sims 3 to The Sims 4)
 
Line 24: Line 24:
 
     DWORD Bone Name Hash (FNV 32)
 
     DWORD Bone Name Hash (FNV 32)
 
     DWORD Flags? //Usually 0x23, except with mirrored bones, then one will be 0x3F
 
     DWORD Flags? //Usually 0x23, except with mirrored bones, then one will be 0x3F
  DWORD Skeleton Name Length
+
  --if (Major Version >= 4 OR from The Sims 3)
 +
    DWORD Skeleton Name Length
 
  STRING (Skeleton Name Length ASCII characters)
 
  STRING (Skeleton Name Length ASCII characters)
  --if(Version >= 4)
+
  --if (Major Version >= 4 OR from The Sims 4)
 
     DWORD IK Chain Count
 
     DWORD IK Chain Count
 
     --repeat(IK Chain Count)
 
     --repeat(IK Chain Count)
 
         DWORD Length
 
         DWORD Length
 
         --repeat(Length)   
 
         --repeat(Length)   
             DWORD BoneIndex //bone index
+
             DWORD BoneIndex //bone index  
         DWORD InfoNode[11] //bone index  
+
         --if (Major Version >= 4)
 +
            DWORD InfoNode[11] //bone index  
 
         DWORD PoleVector //bone index  
 
         DWORD PoleVector //bone index  
         DWORD SlotInfo //bone index  
+
         --if (Major Version >= 4)
 +
            DWORD SlotInfo //bone index  
 
         DWORD SlotOffset //bone index  
 
         DWORD SlotOffset //bone index  
 
         DWORD Root //bone index  
 
         DWORD Root //bone index  

Latest revision as of 09:52, 17 July 2014

Modding Reference by Category

Sims 4: DBPF | File Types | RCOL(Scene) | Catalog Resource | String Table | Key Table | TS4 Programmer's Reference 

Rig Resource - _RIG
TypeID:0x8EAF13DE
Game Version:The Sims 4



[edit] Overview

This is the format for the skeleton/rig of every object in the game.

[edit] Format

DWORD Major Version? //3-4
DWORD Minor Version? //1-2
DWORD Bone Count
--repeat(Bone Count)
    FLOAT[3] Position
    FLOAT[4] Orientation //Quaternion 
    FLOAT[3] Scaling?
    DWORD Bone Name Length
    STRING (Bone Name Length ASCII characters)
    DWORD ??? // Something to do with mirrored bones.  It will be the same as the bone's index except in the case of Left/Right mirrored bones it is the index of it's opposite
    DWORD Parent Index
    DWORD Bone Name Hash (FNV 32)
    DWORD Flags? //Usually 0x23, except with mirrored bones, then one will be 0x3F
--if (Major Version >= 4 OR from The Sims 3)
    DWORD Skeleton Name Length
STRING (Skeleton Name Length ASCII characters)
--if (Major Version >= 4 OR from The Sims 4)
    DWORD IK Chain Count
    --repeat(IK Chain Count)
        DWORD Length
        --repeat(Length)  
            DWORD BoneIndex //bone index 
        --if (Major Version >= 4) 
            DWORD InfoNode[11] //bone index 
        DWORD PoleVector //bone index 
        --if (Major Version >= 4)
            DWORD SlotInfo //bone index 
        DWORD SlotOffset //bone index 
        DWORD Root //bone index 


Modding Reference by Category

Sims 4: DBPF | File Types | RCOL(Scene) | Catalog Resource | String Table | Key Table | TS4 Programmer's Reference 

Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox