Posts: 1,497
Thanks: 4279 in 41 Posts
10 Achievements
@Battery Hey thank you. So good news Butler Demon is spawning. Like I made the Demon Sim with Red color Skin + fit body shape. However I am having trouble with Outfit changing. I looked at face painting code from Seasons and Magic Mirror from supernatural but having issues.
This is my code. I used
S3OC to get the data related to the tuxedo. Check point 2 in my code doesn't happen. Meaning
OutfitUtils.TryGenerateSimOutfit(TuxedoEverydayResourceKey, out outfit2) <- this is not working.
Code:
TuxedoEveryday = default(CASPart);
TuxedoEverydayResourceKey = ResourceKey.Parse("0x034AEECB-0x00000000-0x296FF0B3C5317322");
PartSearch partSearch = new PartSearch();
foreach (CASPart item in partSearch)
{
if (item.Key == TuxedoEverydayResourceKey)
{
TuxedoEveryday = item;
}
}
foreach (OutfitCategories outfitCategories in listOfCategories)
{
if (outfitCategories == OutfitCategories.Everyday)
{
StyledNotification.Show(new StyledNotification.Format(" Outfit CheckPoint 1 " ,
StyledNotification.NotificationStyle.kGameMessagePositive));
SimBuilder simBuilder = new SimBuilder();
simBuilder.UseCompression = true;
simBuilder.Age = simDescription.Age;
//ArrayList arrayList = outfits[outfitCategories] as ArrayList;
SimOutfit outfit = simDescription.GetOutfit(OutfitCategories.Everyday, 0);
OutfitUtils.SetOutfit(simBuilder, outfit, simDescription);
OutfitUtils.SetAutomaticModifiers(simBuilder);
simBuilder.RemoveParts(BodyTypes.FullBody);//Might Have to Change
simBuilder.RemoveParts(BodyTypes.UpperBody);
simBuilder.RemoveParts(BodyTypes.LowerBody);
OutfitUtils.AddPartAndPreset(simBuilder, TuxedoEveryday, false);
//ResourceKey key1 = simBuilder.CacheOutfit(string.Format("MakeCategoryOutfitForFacePainting_{0}_{1}_{2}", simBuilder.Age, Simulator.TicksElapsed(), outfitCategories));
SimOutfit outfit2;
if (OutfitUtils.TryGenerateSimOutfit(TuxedoEverydayResourceKey, out outfit2))
{
StyledNotification.Show(new StyledNotification.Format(" Outfit CheckPoint 2 ",
StyledNotification.NotificationStyle.kGameMessagePositive));
//OutfitUtils.TryApplyUniformToOutfit(outfit2, outfit, simDescription, "MagicMirror.Outfit", out resultOutfit)
simDescription.RemoveOutfit(outfitCategories, 0, true);
simDescription.AddOutfit(outfit2, outfitCategories, 0);
}
simBuilder.Dispose();
}
If you like my mods. Consider supporting me on
Patreon
Check out my website for updates on my mods and other work
PuddingFace.wixsite.com
Check out my Youtube channel for tutorials(modding tutorials) and other content
Youtube
Follow me on
Twitter Instagram Pinterest Tumblr