CMX skins/acessories file format

Discussion in 'Programming' started by francot514, Jun 15, 2016.

  1. francot514

    francot514 Well-Known Member

    I have found this in the Edith version of The Sims 1, the cmx file format is completely readable, so will be easy to understand it and create a parser for the skins accessories.

    Code:
    CMX File:
        int32 skeletonCount;
        Skeleton skeletons[skeletonCount];
        int32 suitCount;
        Suit suits[suitCount];
        int32 skillCount;
        Skill skills[skillCount];
    
    Skeleton:
        CountedString name;
        int32 boneCount;
        Bone bones[boneCount];
    
    Bone:
        CountedString name;
        CountedString parentName;
        int32 hasProps;
            ? Props prop;
        float trans[3];
        float rot[4];
        int32 canTranslate;
        int32 canRotate;
        int32 canBlend;
        int32 canWiggle;
        int32 wigglePower;
    Code:
    Example cmx file
    
    // Character File. Copyright 1997, Maxis Inc.
    version 300
    0
    1
    suit-adult-bball110
    0
    0
    1
    R_HAND
    xskin-suit-adult-bball110-R_HAND-SUIT-ADULT-BBALL110
    0
    0
    0
  2. zero35

    zero35 Active Member

    where i can download Edith for TS1?
  3. RHY3756547

    RHY3756547 FreeSO Developer Staff Member Moderator

    Real smooth francot.
  4. francot514

    francot514 Well-Known Member

    The code is really more complex, but i do not liked to add all the documentation find out, there some cmx files could use up to 1000 lines!!!

Share This Page