Post by dewwolf on Oct 20, 2024 18:31:10 GMT -5
Hey i am trying to make Custom Photo Frames for the sims 4 right now just the portrait Large then will move on to the other options. I got the color changes to show up in game, but to do this you have to add any frame then change the color in build buy mode. this would be ok but ever time the lot reloads the color goes back to the frame you added with the interaction. so i tried to add interactions to the Photos themselves I have tried many guides but dont see what i am doing wrong can anyone look at this a see if they notice something i am doing wrong ???
these are the steps i tried
1- made a override object for a debug item
2- imported Object Tuning
* object_photo_general
* object_Photo_PortraitLarge
(3 swatches used the portraitlarge and the rest used the general i think this is because they added some color options latter in the game after the photos were available, the custom swatches used the General as well)
3- imported object State Tunings and changed them to become custom for all swatches (10 different colors, #9-19)
*in Data tab changed Name to get new tuning id
** EXP Orginal (photo_Values_FrameOn_2) New (DewWolf:photo_Values_FrameOn_9)
* in XML tab made sure line 6 had the correct set# materialVariant to match witch variant this object state was supposed to go to
*noticed that this text matched the Data tab in the object Definition for MaterialVariant, this is the only thing i see that connects the swatch of color to the interactions.
4- imported the interaction tuning files and changed them to become custom for all swatches (10 different colors, #9-19)
* in Data Tab Changed the Name to get new Tuning id
* in XML tab line 9 updated line to match the corresponding object state tuning that goes with each interactions
**EXP orginal line was ( <T n="new_value">215822<!--photo_Values_FrameOn_2--></T>) changed to ( <T n="new_value">13034378574451492759<!--DewWolf:photo_Values_FrameOn_9--></T>)
*In XML tab line 104 updated line to match the corresponding object state tuning that goes with each interactions
5- Created a String table
6- created custom Hash # for each new color
7- added each custom hash # and color name
8- copied each string table to all Languages
9- went to each intreactions tunings updated line number 26 in the XML tab with new hash number and display name
** EXP (<T n="display_name">0xBE92EB2F<!--1AlizarinCrimson--></T>)
below is the final xml data after all changes
10- changed both object tunings
*added to the prohibited_States the new frame on tunings
*added to Super_affordances the new interactions
current none off the new interactions are showing up in the game. i have gotten them to show up once but i don't know what i did but even then the did not use the correct swatch for the frame
please any help would be amazing i have actually been working on this for a long time
Google drive with file
drive.google.com/file/d/1aCzfBqUr5TYvhIYamCPb894jVXF2ONMY/view?usp=drive_link
these are the steps i tried
1- made a override object for a debug item
2- imported Object Tuning
* object_photo_general
* object_Photo_PortraitLarge
(3 swatches used the portraitlarge and the rest used the general i think this is because they added some color options latter in the game after the photos were available, the custom swatches used the General as well)
3- imported object State Tunings and changed them to become custom for all swatches (10 different colors, #9-19)
*in Data tab changed Name to get new tuning id
** EXP Orginal (photo_Values_FrameOn_2) New (DewWolf:photo_Values_FrameOn_9)
* in XML tab made sure line 6 had the correct set# materialVariant to match witch variant this object state was supposed to go to
<?xml version="1.0" encoding="utf-8"?>
<I c="ObjectStateValue" i="object_state" m="objects.components.state" n="DewWolf:photo_Values_FrameOn_9" s="13034378574451492759">
<U n="new_client_state">
<V n="material_variant" t="apply_new_value">
<V n="apply_new_value" t="set_to_custom_value">
<T n="set_to_custom_value">set9-materialVariant</T>
</V>
</V>
</U>
</I>
*noticed that this text matched the Data tab in the object Definition for MaterialVariant, this is the only thing i see that connects the swatch of color to the interactions.
4- imported the interaction tuning files and changed them to become custom for all swatches (10 different colors, #9-19)
* in Data Tab Changed the Name to get new Tuning id
* in XML tab line 9 updated line to match the corresponding object state tuning that goes with each interactions
**EXP orginal line was ( <T n="new_value">215822<!--photo_Values_FrameOn_2--></T>) changed to ( <T n="new_value">13034378574451492759<!--DewWolf:photo_Values_FrameOn_9--></T>)
*In XML tab line 104 updated line to match the corresponding object state tuning that goes with each interactions
5- Created a String table
6- created custom Hash # for each new color
7- added each custom hash # and color name
8- copied each string table to all Languages
9- went to each intreactions tunings updated line number 26 in the XML tab with new hash number and display name
** EXP (<T n="display_name">0xBE92EB2F<!--1AlizarinCrimson--></T>)
below is the final xml data after all changes
<?xml version="1.0" encoding="utf-8"?>
<I c="ImmediateSuperInteraction" i="interaction" m="interactions.base.immediate_interaction" n="DewWolf:immediateSI_Photos_AddFrame_9_BG" s="11384105587699892337">
<V n="_saveable" t="disabled" />
<L n="basic_extras">
<V t="state_change">
<U n="state_change">
<V n="new_value" t="single_value">
<U n="single_value">
<T n="new_value">13034378574451492759<!--DewWolf:photo_Values_FrameOn_9--></T>
</U>
</V>
</U>
</V>
<V t="state_change">
<U n="state_change">
<V n="new_value" t="single_value">
<U n="single_value">
<T n="new_value">220181<!--photo_Frame_Values_Frame_On--></T>
</U>
</V>
</U>
</V>
</L>
<T n="category">215823<!--pieMenuCategory_Photography_Frames_BG--></T>
<V n="content_score" t="disabled" />
<T n="display_name">0xBE92EB2F<!--1AlizarinCrimson--></T>
<V n="display_name_overrides" t="testable">
<U n="testable">
<L n="overrides">
<U>
<V n="new_display_name" t="disabled" />
<T n="new_pie_menu_category">220992<!--pieMenuCategory_Photography_Frames_Update_BG--></T>
<L n="test">
<L>
<V t="state">
<U n="state">
<T n="value">220181<!--photo_Frame_Values_Frame_On--></T>
</U>
</V>
</L>
</L>
</U>
</L>
</U>
</V>
<U n="display_name_text_tokens">
<L n="tokens">
<V t="participant_type">
<U n="participant_type">
<V n="objects" t="from_participant">
<U n="from_participant">
<E n="participant">Actor</E>
</U>
</V>
</U>
</V>
<V t="participant_type">
<U n="participant_type">
<V n="objects" t="from_participant">
<U n="from_participant">
<E n="participant">Object</E>
</U>
</V>
</U>
</V>
</L>
</U>
<L n="interaction_category_tags">
<E>INVALID</E>
</L>
<T n="pie_menu_priority">2</T>
<U n="progress_bar_enabled">
<T n="bar_enabled">False</T>
</U>
<E n="target_type">OBJECT</E>
<L n="test_globals">
<V t="sim_info">
<U n="sim_info">
<V n="ages" t="specified">
<L n="specified">
<E>TEEN</E>
<E>YOUNGADULT</E>
<E>ADULT</E>
<E>ELDER</E>
<E>CHILD</E>
<E>TODDLER</E>
<E>BABY</E>
<E>INFANT</E>
</L>
</V>
<V n="species" t="specified">
<U n="specified">
<L n="species">
<E />
</L>
</U>
</V>
<E n="who">Actor</E>
</U>
</V>
<V t="state">
<U n="state">
<E n="operator">NOTEQUAL</E>
<T n="value">13034378574451492759<!--DewWolf:photo_Values_FrameOn_9--></T>
</U>
</V>
</L>
<L n="tests">
<L>
<V t="object_criteria">
<U n="object_criteria">
<V n="identity_test" t="tags">
<U n="tags">
<L n="tag_set">
<E>Func_Photo_Collage</E>
</L>
<E n="test_type">CONTAINS_NO_TAGS_IN_SET</E>
</U>
</V>
<T n="owned">False</T>
<V n="subject_specific_tests" t="single_object">
<U n="single_object">
<E n="target">ObjectParent</E>
</U>
</V>
</U>
</V>
</L>
<L>
<V t="has_parent_object">
<U n="has_parent_object">
<T n="negate">True</T>
</U>
</V>
</L>
</L>
</I>here
10- changed both object tunings
*added to the prohibited_States the new frame on tunings
<T>13034378574451492759<!--photo_Values_FrameOn_9--></T>
<T>9454510985646650141<!--photo_Values_FrameOn_10--></T>
<T>9454510985646650140<!--photo_Values_FrameOn_11--></T>
<T>9454510985646650143<!--photo_Values_FrameOn_12--></T>
<T>9454510985646650142<!--photo_Values_FrameOn_13--></T>
<T>9454510985646650137<!--photo_Values_FrameOn_14--></T>
<T>9454510985646650136<!--photo_Values_FrameOn_15--></T>
<T>9454510985646650139<!--photo_Values_FrameOn_16--></T>
<T>9454510985646650138<!--photo_Values_FrameOn_17--></T>
<T>9454510985646650133<!--photo_Values_FrameOn_18--></T>
<T>9454510985646650132<!--photo_Values_FrameOn_19--></T>
*added to Super_affordances the new interactions
<T>11384105587699892337<!--immediateSI_Photos_AddFrame_9_BG--></T>
<T>11270442680360360243<!--immediateSI_Photos_AddFrame_10_BG--></T>
<T>10560185656508415576<!--immediateSI_Photos_AddFrame_11_BG--></T>
<T>10033525084298812305<!--immediateSI_Photos_AddFrame_12_BG--></T>
<T>9261976884255984006<!--immediateSI_Photos_AddFrame_13_BG--></T>
<T>17897529114105658599<!--immediateSI_Photos_AddFrame_14_BG--></T>
<T>17371145618826364428<!--immediateSI_Photos_AddFrame_15_BG--></T>
<T>16660681886788316037<!--immediateSI_Photos_AddFrame_16_BG--></T>
<T>16134298391509022122<!--immediateSI_Photos_AddFrame_17_BG--></T>
<T>16279069989262459227<!--immediateSI_Photos_AddFrame_18_BG--></T>
<T>15507521789219630912<!--immediateSI_Photos_AddFrame_19_BG--></T>
current none off the new interactions are showing up in the game. i have gotten them to show up once but i don't know what i did but even then the did not use the correct swatch for the frame
please any help would be amazing i have actually been working on this for a long time
Google drive with file
drive.google.com/file/d/1aCzfBqUr5TYvhIYamCPb894jVXF2ONMY/view?usp=drive_link