Forum Announcement, Click Here to Read More From EA_Cade.

Can we replace/change the body presets in CAS

SimMartenSimMarten Posts: 10 New Member
edited March 5 in Nominated Threads
I was wondering if there is a way to change or alter the body type presets in CAS. Actually, the specific thing I'm wanting to do is just replace the various fat presets with the existing fit presets (while also keeping the original fit presets). It's to make randomization always choose fit body types.
Post edited by EA_Cade on

Comments

  • Shimrod101Shimrod101 Posts: 304 Member
    I was looking for these presets once upon a time also, and couldn't find anything. Perhaps @SimGuruModSquad could shed some light on this subject?
  • SimGuruModSquadSimGuruModSquad Posts: 597 Member
    edited March 2015
    Hi guys, there is a resource that specifies information about the CAS presets - the resource type is 0xEAA32ADD. One of the fields in this resource specifies the probability that the resource will be chosen randomly in CAS. Below are the instances for the body presets.
    cfbody_average      0x0000000000008101
    cfbody_heavy        0x0000000000008100
    cfbody_lean         0x00000000000080FF
    cmbody_average      0x00000000000080C4
    cmbody_heavy        0x00000000000080C3
    cmbody_lean         0x00000000000080C2
    yfbody_bodybuilder  0x000000000000B481
    yfbody_default      0x000000000000E869
    yfbody_heavysoft    0x000000000000B480
    yfbody_hourglass    0x00000000000064DA
    yfbody_inverted     0x00000000000064D8
    yfbody_pear         0x00000000000064DB
    yfbody_rectangle    0x00000000000064D9
    yfbody_thick        0x00000000000063B4
    yfbody_thin         0x00000000000063B5
    ymbody_bodybuilder  0x000000000000B482
    ymbody_default      0x000000000000E86A
    ymbody_heavysoft    0x000000000000B483
    ymbody_inverted     0x00000000000064D4
    ymbody_athletic     0x00000000000063B8
    ymbody_thick        0x00000000000063B9
    ymbody_trapazoid    0x00000000000064D6
    ymbody_triangle     0x00000000000064D7
    ymbody_thin         0x00000000000063BA
    

    And here is a super quick and dirty .bt file for this resource. The field of interest is "chanceForRandom", set that to 0.0f and the body should no longer appear randomly.
    //--------------------------------------
    // The Sims 4
    // Copyright 2015 Electronic Arts Inc. All rights reserved.
    //
    //--- 010 Editor v5.0 Binary Template
    // Resource Type: CAS Preset Resource (type 0xeaa32add)
    //--------------------------------------
    
    local INT32 i;
    
    INT32 version;
    INT32 ageGender;
    INT32 region;
    INT32 archtype;
    INT32 displayIndex;
    INT32 presetNameKey        <format=hex>;
    INT32 presetDescriptKey    <format=hex>;
    
    INT32 numSculpt;
    for (i = 0; i < numSculpt; ++i)
    {
        INT64 instance;
        INT32 region;
    }
    
    INT32 numModifiers;
    for (i = 0; i < numModifiers; ++i)
    {
        INT64 instance;
        FLOAT weight;
        INT32 Region;
    }
    
    CHAR isPhysiqueSet;
    if ( isPhysiqueSet == 1 )
    {
        FLOAT heavyValue;
        FLOAT fitValue;
        FLOAT leanValue;
        FLOAT bonyValue;
    }
    
    FLOAT chanceForRandom;
    
    INT32 tagcount;
    for (i = 0; i < tagcount; ++i)
    {
        INT16 category;
        INT16 tagValue;
    }
    

    Note that if you replace these resources, then that could cause issues if we update them in the future.

    Good luck!
  • SimMartenSimMarten Posts: 10 New Member
    Thanks so much for the info, I figured out how to do what I wanted, thanks!
  • SimMartenSimMarten Posts: 10 New Member
    @SimGuruModSquad
    Would it be possible to give us an updated .bt file? The old one doesn't work anymore with the newest resources.
    Thanks so much!!
  • ZerbuZerbu Posts: 3,457 Member
    edited December 2016
    Here's an unofficial update that seem to work properly :)
    //--------------------------------------
    // The Sims 4
    // Copyright 2015 Electronic Arts Inc. All rights reserved.
    //
    //--- 010 Editor v5.0 Binary Template
    // Resource Type: CAS Preset Resource (type 0xeaa32add)
    //--------------------------------------
    
    typedef struct
    {
        UINT32 item <format=hex>;
        float value;
    } Sculpt;
    
    typedef struct
    {
        UINT64 item <format=hex>;
        float value;
    } Modifier;
    
    typedef struct
    {
        UINT32 unknown;
        UINT32 unknown;
        UINT32 unknown;
    } Unknown;
    
    typedef struct
    {
        FLOAT heavyValue;
        FLOAT fitValue;
        FLOAT leanValue;
        FLOAT bonyValue;
    } SliderValues;
    
    typedef struct
    {
        INT16 category;
        INT32 tagValue;
    } Tag;
    
    local INT32 i;
    
    UINT32 version;
    UINT32 ageGender <format=hex>;
    UINT32 region               <format=hex>;
    UINT32 archtype;
    UINT32 displayIndex;
    UINT32 presetNameKey        <format=hex>;
    UINT32 presetDescriptKey    <format=hex>;
    Unknown unknown;
    
    UINT32 numSculpt;
    for (i = 0; i < numSculpt; ++i)
    {
        Sculpt sculpt;
    }
    
    UINT32 numModifiers;
    for (i = 0; i < numModifiers; ++i)
    {
        Modifier modifier;
    }
    
    CHAR isPhysiqueSet;
    if ( isPhysiqueSet == 1 )
    {
        SliderValues sliderValues;
    }
    
    FLOAT chanceForRandom;
    
    INT32 tagcount;
    
    for (i = 0; i < tagcount; ++i)
    {
        Tag tag;
    }
    
    Post edited by Zerbu on
  • SimMartenSimMarten Posts: 10 New Member
    @Zerbu
    Yes, I did some quick testing and it does! Thanks sooooo much!! :)
  • SimGuruModSquadSimGuruModSquad Posts: 597 Member
    Hi there,

    Updated bt file posted!

    -SGMS
  • SimMartenSimMarten Posts: 10 New Member
    @SimGuruModSquad @Zerbu
    Would it be possible to post an updated BT file? Thanks!
  • cmarinetticmarinetti Posts: 147 Member
    edited October 2017
    The current version of the preset resource is 12 / 0x0C. The only difference from the bt for version 11 seems to be an added byte after the set of physique values. I've only seen a value of 0 for it.

    @SimGuruModSquad Maybe you could tell us the function of that byte, if any?

    I don't suppose we could get a list of more or all of the presets? :)
    cmarNYC on MTS.
  • SimMartenSimMarten Posts: 10 New Member
    Hi
    @SimGuruModSquad
    Would it be possible to post and updated BT file for this resource? Thanks!
  • SimGuruModSquadSimGuruModSquad Posts: 597 Member
    Hi there,

    Updated BT file posted. This field is Cats&Dogs related, which is why you have only seen it set to 0.

    -SGMS

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file
Return to top