Forum Discussion
11 Replies
Replies have been turned off for this discussion
- 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?
- 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;
INT32 presetDescriptKey;
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! - Thanks so much for the info, I figured out how to do what I wanted, thanks!
- @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!! - ZerbuTabek9 years agoRising HotshotHere'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;
float value;
} Sculpt;
typedef struct
{
UINT64 item;
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;
UINT32 region;
UINT32 archtype;
UINT32 displayIndex;
UINT32 presetNameKey;
UINT32 presetDescriptKey;
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;
} - @Zerbu
Yes, I did some quick testing and it does! Thanks sooooo much!! :) - @SimGuruModSquad @Zerbu
Would it be possible to post an updated BT file? Thanks! - 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? :) - Hi
@SimGuruModSquad
Would it be possible to post and updated BT file for this resource? Thanks!
About The Sims 4 Mods & Custom Content
Find expert tips, troubleshooting help, tutorials for mods and custom content, and The Sims 4 patch files in our forum.15,596 PostsLatest Activity: 6 years ago
Community Highlights
Recent Discussions
- 3 hours ago
- 3 hours ago
- 5 hours ago