Post by andrew on May 22, 2015 9:14:53 GMT -5
Introduction
This tutorial will show you how to make an object that ordinarily does not go into the Sim's inventory do so.
What you will need
Sims 4 Studio 2.5.0.0 (Joy) or above
Instructions
1. Choose Create Standalone Recolor (or Create 3D mesh) under the Object button.
2. Click the Object button
3. Select the item you want to work with and click the Next button.
4. Click the first Object Definition line on the left.
5. Copy the Tuning name that shows up on the right side.
6. Click Tools in the upper menu bar.
7. Select Extract Tuning.
8. Paste the name you got in step 5 into the Search box.
9. Click on the tuning when it shows on your search list.
10. Click the Add to current package button.
11. Repeat steps 6-10 but instead of your item's tuning name type: object_Guitar_Acoustic into the search bar. After this step you will have two Object Tuning resources in your .package. Click on the guitar's tuning line on the left.
12. Scroll down on the right side until you come to the "_components" section as shown below. Copy the lines that are shown highlighted in blue. Include the <V at the beginning of it and the </V> at the end of it.
13. Click on the tuning line for your object (the other non-guitar Object tuning line) on the left.
14. Scroll down on the right until you locate the same "_components" section. Collapse the existing lines between the <V> and the </V> if you wish. You want to leave those lines in place as they are. Paste the lines you copied in step 12 right below them.
15. Click the Data tab.
16. Enter the name you want for your new tuning into the Name line. This should begin with your creator name followed by a :. Then add whatever other naming you want. The TuningId number will automatically be hashed and you will see the new number appear below the Name line. This name and Id will need to be added to each Object Definition resource in your .package (see below).
17. Click on the first Object Definition line in the list on the left.
18. Paste your new tuning name into the Tuning line. In the latest version of Studio, the TuningId will automatically update after you paste the tuning's name if you named it correctly with a :
19. Click on the Object Tuning line for the guitar tuning and delete it from the .package.
20. Click Save.
Test in game. If you have questions about this tutorial please post them in the thread below.
Optional:
If you would like your inventory object to have a tooltip, you can add another component. The tuning element below will add the name and description to your item when you mouse over it in game or in the sim's inventory:
<V t="enabled" n="tooltip_component">
<U n="enabled">
<L n="custom_tooltips">
<U>
<L n="tooltip_fields">
<U>
<E n="key">recipe_description</E>
<U n="value">
<V t="single" n="text">
<T n="single">0xE2E9872D<!--"{0.ObjectDescription}"--></T>
</V>
<V t="enabled" n="text_tokens">
<U n="enabled">
<L n="tokens">
<V t="participant_type">
<U n="participant_type">
<E n="participant">Object</E>
</U>
</V>
</L>
</U>
</V>
</U>
</U>
<U>
<E n="key">recipe_name</E>
<U n="value">
<V n="text" t="single">
<T n="single">0x4F918F8<!--{0.ObjectName}--></T>
</V>
<V t="enabled" n="text_tokens">
<U n="enabled">
<L n="tokens">
<V t="participant_type">
<U n="participant_type">
<E n="participant">Object</E>
</U>
</V>
</L>
</U>
</V>
</U>
</U>
</L>
<E n="tooltip_style">HOVER_TIP_DEFAULT</E>
</U>
</L>
</U>
</V>