Post by Bertie Black on Sept 1, 2018 21:17:57 GMT -5
I'm trying to add skill books to show up in bookcases whenever Sims go to the library. The bookcases that appear in Willow Creek Archive by default do this, but they use their own tuning (object_bookshelf_library) that no other bookcase in the game uses, and they can't be placed in the game without cheats/cloning the object in S4S. I'd like to replicate this tuning for all bookcases, not just that one.
I tried editing the object_bookshelf tuning:
... which does work, but that affects all newly bought bookcases, even on residential lots. I'd prefer that this is the default inventory only for library bookcases.
Is there a way to do this through tuning, or ideally scripting, so it would be more compatible with updates/CC bookcases? I know a little bit about scripting, but I'm not sure how to make this one work.
I tried editing the object_bookshelf tuning:
<?xml version="1.0" encoding="utf-8"?>
<I c="GameObject" i="object" m="objects.game_object" n="object_bookshelf" s="14837">
<V n="_anim_overrides" t="enabled">
<U n="enabled">
<L n="params">
<U>
<T n="name">surfaceObject</T>
<V n="value" t="string">
<T n="string">bookcase</T>
</V>
</U>
<U>
<T n="name">toddlerObjectName</T>
<V n="value" t="string">
<T n="string">Bookshelf</T>
</V>
</U>
<U>
<T n="name">objectName</T>
<V n="value" t="string">
<T n="string">bookcase</T>
</V>
</U>
</L>
</U>
</V>
<U n="_components">
<V n="focus" t="enabled">
<U n="enabled">
<V n="_focus_score" t="globally">
<U n="globally">
<E n="base">MEDIUM</E>
</U>
</V>
</U>
</V>
<V n="inventory" t="enabled">
<U n="enabled">
<V n="get_put" t="generic">
<U n="generic">
<L n="constraints">
<V t="cone">
<U n="cone">
<T n="angle">90</T>
<T n="max_radius">1.5</T>
<T n="min_radius">0.5</T>
</U>
</V>
<V t="facing">
<U n="facing">
<T n="inner_radius">0</T>
</U>
</V>
</L>
</U>
</V>
<E n="inventory_type">BOOKSHELF</E>
<V n="purchasable_objects" t="disabled" />
<L n="starting_objects">
<T>32532<!--bookGENFlirty_04 (Polka Dot Rumble)--></T>
<T>32591<!--bookGENBoring_05 (Elegy for a Fallen Piano)--></T>
<T>18620<!--bookGENPlayful_02 (Playing With Your Food)--></T>
<T>32866<!--bookGENInspired_07 (Gentleman Corgi: A Memoir)--></T>
<T>32588<!--bookGENAngry_06 (The Swift and the Angriest)--></T>
<T>32511<!--bookGENSad_02 (The 50 Shades on My Windows)--></T>
<T>32979<!--bookGENConfident_09 (The Chronicles of Rodiek)--></T>
<T>32569<!--bookGENFocus_04 (The Little Train that Couldn’t)--></T>
<T>32559<!--bookGENMotive_11 (Point, Don't Stare)--></T>
<T>32975<!--bookGENHappy_09 (Yay, Pork Barrels!)--></T>
<T>18569<!--bookThinGENBartendingBeginner_01 (Mixology Vol. 1: Beverage Basics)--></T>
<T>19467<!--bookGENBartendingIntermediate_01 (Mixology Vol. 2: A Twist of Lime)--></T>
<T>19532<!--bookGENBartendingAdvanced_01 (Mixology Vol. 3: The Mixologist's Bible)--></T>
<T>37429<!--bookGENBartending_02_CulinaryCareer (Shaken or Stirred: 400 Pretentious Drinks)--></T>
<T>34388<!--bookThinGENCharismaBeginner_01 (Charisma Vol 1: Diplomacy for Dummies)--></T>
<T>34389<!--bookGENCharismaIntermediate_01 (Charisma Vol. 2: The Science of Diplomacy)--></T>
<T>34387<!--bookGENCharismaAdvanced_01 (Charisma Vol. 3: The Art of Diplomacy)--></T>
<T>34189<!--bookThinGENComedyBeginner_01 (Comedy Vol 1: Get the Jokes)--></T>
<T>34190<!--bookGENComedyIntermediate_01 (Comedy Vol. 2: Grab the Mic)--></T>
<T>34188<!--bookGENComedyAdvanced_01 (Comedy Vol. 3: Show Them the Pain)--></T>
<T>34206<!--bookThinGENCookingBeginner_01 (Cooking Vol 1: Let's Cook!)--></T>
<T>34207<!--bookGENCookingIntermediate_01 (Cooking Vol. 2: Let's Keeping Cooking!)--></T>
<T>34204<!--bookGENCookingAdvanced_01 (Cooking Vol. 3: I'm Here to Cook!)--></T>
<T>34251<!--bookThinGENGourmetCookingBeginner_01 (Gourmet Cooking Vol. 1: Make Food Fancy)--></T>
<T>34252<!--bookGENGourmetCookingIntermediate_01 (Gourmet Cooking Vol. 2: Presentation is King)--></T>
<T>34250<!--bookGENGourmetCookingAdvanced_01 (Gourmet Cooking Vol. 3: Can You Eat That?)--></T>
<T>76355<!--bookThin_EP01GENbakingBeginner (Baking Vol. 1: Mix)--></T>
<T>76354<!--book_EP01GENbakingIntermediate (Baking Vol. 2: Shape)--></T>
<T>76353<!--book_EP01GENbakingAdvanced (Baking Vol. 3: Bake)--></T>
<T>57932<!--bookThinGENFishingBeginner_01 (Fishing Vol 1: Getting Hooked)--></T>
<T>57931<!--bookGENFishingIntermediate_01 (Fishing Vol. 2: Tackles and Techniques)--></T>
<T>57933<!--bookGENFishingAdvanced_01 (Fishing Vol. 3: See the Fish, Be the Fish)--></T>
<T>34160<!--bookThinGENFitnessBeginner_01 (Fitness Vol 1: Put Down the Milkshake)--></T>
<T>34159<!--bookGENFitnessIntermediate_01 (Fitness Vol. 2: Be World's Strongest)--></T>
<T>34158<!--bookGENFitnessAdvanced_01 (Fitness Vol. 3: Pressing Steel)--></T>
<T>34202<!--bookThinGENGardeningBeginner_01 (Gardening Vol 1: Water, Light and Dirt)--></T>
<T>34201<!--bookGENGardeningIntermediate_01 (Gardening Vol. 2: Getting Your Thumbs Green)--></T>
<T>34203<!--bookGENGardeningAdvanced_01 (Gardening Vol. 3: Strange and Forbidden Plant Genetics)--></T>
<T>34315<!--bookThinGENGuitarBeginner_01 (Guitar Vol 1: Intro to Rocking)--></T>
<T>34316<!--bookGENGuitarIntermediate_01 (Guitar Vol. 2: The Classical Sauce)--></T>
<T>34304<!--bookGENGuitarAdvanced_01 (Guitar Vol. 3: Furious Finger Techniques)--></T>
<T>33900<!--bookThinGENHandinessBeginner_01 (Handiness Vol 1: Try Not to Die!)--></T>
<T>33903<!--bookGENHandinessIntermediate_01 (Handiness Vol. 2: Sparks are Nature's Kisses)--></T>
<T>33904<!--bookGENHandinessAdvanced_01 (Handiness Vol. 3: Upgrading the Soul)--></T>
<T>34318<!--bookThinGENLogicBeginner_01 (Logic Vol 1: An Introduction to Reason)--></T>
<T>34319<!--bookGENLogicIntermediate_01 (Logic Vol. 2: The Reason to Reason)--></T>
<T>34317<!--bookGENLogicAdvanced_01 (Logic Vol. 3: The Problem with Paradoxes)--></T>
<T>34321<!--bookThinGENMischiefBeginner_01 (Mischief Vol 1: What's Funny, What's Illegal?)--></T>
<T>34322<!--bookGENMischiefIntermediate_01 (Mischief Vol. 2: What's Illegal, What's Frowned Upon?)--></T>
<T>34320<!--bookGENMischiefAdvanced_01 (Mischief Vol. 3: The Long Con)--></T>
<T>34324<!--bookGENPaintingBeginner_01 (Painting Vol 1: The Fundamentals of Painting)--></T>
<T>34325<!--bookGENPaintingIntermediate_01 (Painting Vol. 2: The History of Painting)--></T>
<T>34323<!--bookGENPaintingAdvanced_01 (Painting Vol. 3: The Painting of Painting)--></T>
<T>34327<!--bookGENPianoBeginner_01 (Piano Vol 1: It's Pretty Black and White)--></T>
<T>34328<!--bookGENPianoIntermediate_01 (Piano Vol. 2: Sharps, Flats, and Neutrals)--></T>
<T>34326<!--bookGENPianoAdvanced_01 (Piano Vol. 3: Concertos, Minuets, and Sonatas)--></T>
<T>34330<!--bookGENProgrammingBeginner_01 (Programming Vol 1: Turn It Off and On Again)--></T>
<T>34331<!--bookGENProgrammingIntermediate_01 (Programming Vol. 2: Maintaining Healthy Semicolons)--></T>
<T>34329<!--bookGENProgrammingAdvanced_01 (Programming Vol. 3: Learn to Talk Robot)--></T>
<T>34336<!--bookGENVideoGamingBeginner_01 (Video Gaming Vol 1: Trolling for n00bs)--></T>
<T>34337<!--bookGENVideoGamingIntermediate_01 (Video Gaming Vol. 2: The Official Guide to Gaming)--></T>
<T>34335<!--bookGENVideoGamingAdvanced_01 (Video Gaming Vol. 3: The Game of Life)--></T>
<T>34339<!--bookGENViolinBeginner_01 (Violin Vol 1: Basic Violinin')--></T>
<T>34335<!--bookGENViolinIntermediate_01 (Violin Vol. 2: Classic Techniques)--></T>
<T>34338<!--bookGENViolinAdvanced_01 (Violin Vol. 3: Horsehair Hijinks)--></T>
<T>34342<!--bookGENWritingBeginner_01 (Writing Vol 1: The Conjugation Conundrum)--></T>
<T>34343<!--bookGENWritingIntermediate_01 (Writing Vol. 2: The Importance of Punctuation)--></T>
<T>34341<!--bookGENWritingAdvanced_01 (Writing Vol. 3: Let's Get Weird)--></T>
<T>34333<!--bookGENRocketScienceBeginner_01 (Rocket Science Vol. 1: So You Want to Be a Rocket Scientist)--></T>
<T>34334<!--bookGENRocketScienceIntermediate_01 (Rocket Science Vol. 2: The Nuts and Bolts of Constructing Your Spacecraft)--></T>
<T>34332<!--bookGENRocketScienceAdvanced_01 (Rocket Science Vol. 3: Counting Down to Launch)--></T>
<T>144863<!--book_GP04GENtome_set1 (Encyclopedia Vampirica Volume 1)--></T>
<T>144864<!--book_GP04GENtome_set2 (Encyclopedia Vampirica Volume 2)--></T>
<T>145407<!--book_GP04GENtome_set3 (Encyclopedia Vampirica Volume 3)--></T>
<T>144904<!--book_GP04GENtomeUltimate_set1 (The Ultimate Vampire Compendium)--></T>
<T>144905<!--book_GP04GENtomeUltimate_set2 (The Ultimate Vampire Compendium)--></T>
<T>179016<!--book_GP06GENarchaeologyBeginner (Archaeology Vol 1: Tiny Brushes and You)--></T>
<T>179017<!--book_GP06GENarchaeologyIntermediate (Archaeology Vol. 2: 101 Uses For A Bullwhip)--></T>
<T>179015<!--book_GP06GENarchaeologyAdvanced (Archaeology Vol. 3: Rock or Relic?)--></T>
<T>66159<!--bookThin_GP01GENHerbologyBeginner (Herbalism Vol. 1: Let's Get Brewing!)--></T>
<T>66158<!--book_GP01GENHerbologyIntermediate (Herbalism Vol. 2: More to Brew!)--></T>
<T>66157<!--book_GP01GENHerbologyAdvanced (Herbalism Vol. 3: Herbal Master)--></T>
<T>94425<!--bookThin_GP02GENWellnessBeginner (Wellness Vol. 1: Exploring the Mind-Body Connection)--></T>
<T>94430<!--book_GP02GENWellnessIntermediate (Wellness Vol. 2: Balance Your Emotions, Balance Your Life)--></T>
<T>94431<!--book_GP02GENWellnessAdvanced (Wellness Vol. 3: Transforming Emotional Energy)--></T>
<T>162783<!--bookThin_GP05GENParentingBeginner_set1 (Parenting Vol. 1: Learning to Crawl)--></T>
<T>162781<!--book_GP05GENParentingIntermediate_set1 (Parenting Vol. 2: First Steps)--></T>
<T>162782<!--book_GP05GENParentingAdvanced_set1 (Parenting Vol. 3: Removing the Training Wheels)--></T>
<T>196510<!--bookThin_EP05GENskillFlowerArrangingBeginner (Flower Arranging Vol. 1: What is a Flower)--></T>
<T>196511<!--bookThin_EP05GENskillFlowerArrangingIntermediate (Flower Arranging Vol. 2: Arranging for Artistry)--></T>
<T>196509<!--bookThin_EP05GENskillFlowerArrangingAdvanced (Flower Arranging Vol. 3: Blooming Beauty)--></T>
<T>196165<!--bookThin_EP05RWscoutingManual--></T>
</L>
<T n="visible">True</T>
</U>
</V>
<V n="live_drag_target" t="enabled">
<U n="enabled">
<L n="drop_tests_and_actions">
<U>
<E n="drop_type">BOOKSHELF</E>
</U>
</L>
</U>
</V>
<V n="retail_component" t="enabled">
<V n="enabled" t="reference">
<T n="reference">110393<!--retailComponent_Default--></T>
</V>
</V>
<V n="state" t="enabled">
<U n="enabled">
<L n="state_triggers">
<U>
<L n="at_states">
<T>77532<!--FireState_Burn_Material_Change_Replace--></T>
</L>
<V n="set_states" t="Set_state_list">
<L n="Set_state_list">
<T>39737<!--FireState_Burn_Material_Change_Not_Burning--></T>
</L>
</V>
</U>
</L>
<L n="states">
<U>
<L n="client_states">
<U>
<T n="key">163407<!--statevalue_Pets_Cat_ScratchFurniture_On--></T>
</U>
<U>
<T n="key">163408<!--statevalue_Pets_Cat_ScratchFurniture_Off--></T>
</U>
</L>
<V n="default_value" t="reference">
<T n="reference">163408<!--statevalue_Pets_Cat_ScratchFurniture_Off--></T>
</V>
</U>
<U>
<L n="client_states">
<U>
<T n="key">39611<!--FireState_Burn_Material_Change--></T>
</U>
<U>
<T n="key">39736<!--FireState_Burn_Material_Change_Burning--></T>
</U>
<U>
<T n="key">39737<!--FireState_Burn_Material_Change_Not_Burning--></T>
</U>
<U>
<T n="key">77532<!--FireState_Burn_Material_Change_Replace--></T>
</U>
</L>
<V n="default_value" t="reference">
<T n="reference">39737<!--FireState_Burn_Material_Change_Not_Burning--></T>
</V>
</U>
<U>
<L n="client_states">
<U>
<T n="key">35956<!--Materialistic_Admired--></T>
</U>
<U>
<T n="key">35957<!--Materialistic_YetToAdmire--></T>
</U>
</L>
<V n="default_value" t="reference">
<T n="reference">35957<!--Materialistic_YetToAdmire--></T>
</V>
</U>
</L>
</U>
</V>
</U>
<L n="_super_affordances">
<T>37821<!--bookshelf_CleanUp--></T>
<T>13328<!--debug_Reset--></T>
<T>13326<!--debug_ObjectDestroy--></T>
<T>103888<!--cheat_set_as_head--></T>
<T>39360<!--bookshelf_Read_Picker--></T>
<T>39425<!--bookshelf_Read_Picker_Child--></T>
<T>75892<!--Purchase_Books--></T>
<T>77412<!--autonomous_Bookshelf_Browse_Picker--></T>
<T>77414<!--autonomous_Bookshelf_Browse_Picker_Child--></T>
<T>127423<!--bookshelf_ReadRandom_Rallyable--></T>
<T>147615<!--situation_Butler_Autonomous_AddBook--></T>
<T>152961<!--purchase_VampireTomes_UltimateTome--></T>
<T>153616<!--bookshelf_ReadTo_Picker_ChildBooks--></T>
<T>144134<!--generic_Object_Toddler_Have_A_Look_NonRadial--></T>
<T>152951<!--purchase_VampireTomes_Vol1--></T>
<T>152954<!--purchase_VampireTomes_Vol2--></T>
<T>152958<!--purchase_VampireTomes_Vol3--></T>
<T>153843<!--purchase_Books_toddler--></T>
<T>153829<!--bookshelf_ReadTo_Picker_ChildBooks_Ask--></T>
<T>144099<!--generic_Object_Toddler_Check_Out--></T>
<T>156095<!--bookshelf_Toddler_Read_Picker--></T>
<T>156936<!--generic_Object_Toddler_Check_Out_HighChair--></T>
<T>77329<!--autonomous_bookshelf_read_picker--></T>
<T>163417<!--debug_ScratchFurniture--></T>
<T>163419<!--scratch_ReplaceScratchedObject--></T>
<T>163450<!--debug_ScratchFurnitureFix--></T>
<T>120562<!--cat_Stand--></T>
<T>13983<!--sim-stand--></T>
<T>106859<!--simRay_Transform_Object--></T>
<T>74457<!--fire_ReplaceBurntObject--></T>
<T>102258<!--Ghost_Possess--></T>
<T>168502<!--Ghost_Pet_Possess--></T>
</L>
<L n="slot_cost_modifiers">
<U>
<T n="key">_gameplaySlot_Deco_Large</T>
<T n="value">100</T>
</U>
<U>
<T n="key">_gameplaySlot_Deco_Medium</T>
<T n="value">100</T>
</U>
<U>
<T n="key">_gameplaySlot_Deco_Small</T>
<T n="value">100</T>
</U>
</L>
</I>
... which does work, but that affects all newly bought bookcases, even on residential lots. I'd prefer that this is the default inventory only for library bookcases.
Is there a way to do this through tuning, or ideally scripting, so it would be more compatible with updates/CC bookcases? I know a little bit about scripting, but I'm not sure how to make this one work.