Harvestable Plant Tutorial
Oct 21, 2017 17:52:31 GMT -5
orangemittens, tsminhsims, and 8 more like this
Post by Leniad on Oct 21, 2017 17:52:31 GMT -5
This tutorial assumes you have the following: Sims4Studio, a text editor program (wordpad,notepad,word etc.)
and some photo editor to create your images in .dds or .png format.
This is not for the faint of heart and can get confusing, so take your time.
This is set up for the way I work and I have tried to be clear, but I think you can figure it out if I missed something.
Create a copy of this text into a txt file and name it your own harvestable name.
Then working in the copy make changes in the document as you make them in the S4S program.
Basically I take the name of the harvestable I am making and replace the name in the document with the new name.
Examples of what I mean:
If I start with Blackberry and want to make Peach
BlackberryPlant becomes PeachPlant
Leniad_recipe_Food_Homestyle_BlackberrySalad-Single becomes Leniad_recipe_Food_Homestyle_PeachSalad-Single
etc.
EA suggests naming convention beginning with YOUR user name, so replace Leniad with your name.
Comments are within ( ) so don't use that text in number generation or code replacement.
When I say instance number I mean KEY instance number.
I make all the text changes for a section, then make the changes in Sim4Studio then move to next section.
I copy the HASH section names and numbers and insert in the bottom of the section I am working,
so I don't have to scroll up and down the page 100 times.
------------------------------------------------------------------------------------------------------------------
CLONE SECTION
Create clone of pear tree named 0YourHarvestable. (If you want low growing plants create clone of tomato or other EA plant, herbs are different use a clone of sage or other herb)
Create your Plant mesh in whatever program you use, I use Blender 2.70
Import your mesh into 0YourHarvestable
Created clone of pear name clone 0YourHarvestableFruit
Create your Fruit mesh in whatever program you use
Import your fruit mesh into 0YourHarvestableFruit
--------------------------------------------------------------------------
HASH section
Returning to the new object 0PlumTree
Let's find the hex numbers for names you will need. Replace "Leniad" with your own name.
Using Sims4Studio tools select hash generator and copy the text into the text box.
Select Hexidecimal at bottom of popup - FNV32 is the Hex32 number FN64 is the Hex64 number.
When decimal numbers are required select decimal at bottom of popup.
You will need both hex and decimal numbers for some objects so be careful.
ONLY change the text Leniad and the harvestable name in the names below, then add text to hash generator to get YOUR numbers.
Examples below are for plum, so change to your harvestable.
Leniad_object_GardeningPlant_Tree_Plum hex32 = 0000000053C9B3C5 dec32 = 1405727685
Leniad_gardeningfruit_Plum hex32 = 00000000AB20C55B
Values for string table
Plum Tree hex32 = 4F372A09
A tree that produces Plums. hex32 = DD7607C5
Plum hex32 = 5EE041AF
A tasty Plum hex32 = BA33E11B
I work with 2 parts and merge them together at the end, after I know it works. Easier to fix only half if there is an error.
Tree
---------------------------------------------------------------------------------
OBJECT TUNING
Extract tuning object_GardeningPlant_Tree_pear
rename object tuning to Leniad:object_GardeningPlant_Tree_Plum (instance and tuning id update automatic)
new tuning id is 11592519953674268842
---------------------------------------------------------------------------------
OBJECT DEFINITION
rename object to Leniad_object_GardeningPlant_Tree_Plum
update instance to 0000000053C9B3C5 and group to 00000000
added new tuning name and tuning id to object definition
Leniad:object_GardeningPlant_Tree_Plum
11592519953674268842 (tuningid updates automatically)
---------------------------------------------------------------------------------
STRING TABLE
We begin with String Table English.
Highlight line and in data tab on right select Entries/ Edit Items
Update first string to 4F372A09 Plum Tree
Add a new entry with key DD7607C5 A tree that produces Plums.
Add a new entry with key 5EE041AF Plum
Add a new entry with key BA33E11B A tasty Plum
---------------------------------------------------------------------------------
OBJECT CATALOG
update instance to 0000000053C9B3C5 and group to 00000000
Change Description Hash to DD7607C5
Change NameHash to 4F372A09
DevCatagory 00000090
tags
1261
424
1150
1107
---------------------------------------------------------------------------------
That's it for the tree. The slots that appear for the fruit to form are in the places for the original clone, you may have to move them to see fruit.
See slot tutorial to learn how.
FRUIT
---------------------------------------------------------------------------------
STRING TABLE
We begin with String Table English.
Highlight line and in data tab on right select Entries/ Edit Items
Add same values from tree to the fruit.
On Studio tab catalog subtab change name value to Plum
In Warehouse English string
Add a new entry with key 4F372A09 Plum Tree
Add a new entry with key DD7607C5 A tree that produces Plums.
Add a new entry with key 5EE041AF Plum
Add a new entry with key BA33E11B A tasty Plum
---------------------------------------------------------------------------------
OBJECT TUNING
extract object_GardeningFruit_apple object tuning into pkg.
Rename object tuning
Leniad:object_GardeningFruit_Plum
(updated instance to 823A1070D4A0E404 and tuning id automatic)
new tuning id is 9383830850369545220
Open xml tab
change
ln56 <T n="fruit_name">0x5EE041AF<!--Plum in string table--></T>
ln57 <T n="plant">1405727685<!--dec32 Leniad_object_GardeningPlant_Tree_Plum--></T>
---------------------------------------------------------------------------------
OBJECT DEFINITION
rename object to Leniad_gardeningfruit_Plum
update instance to 00000000AB20C55B and group to 00000000
added new tuning name and tuning id to object definition
Leniad:object_GardeningFruit_Plum
9383830850369545220 (tuningid updates automatically)
---------------------------------------------------------------------------------
OBJECT CATALOG
update instance to 00000000AB20C55B and group to 00000000
Change Description Hash to DD7607C5
Change NameHash to 5EE041AF
DevCategoryFlags to 00000080
unclick unused 2 build box (not sure it matters but I do)
Add tag 202
---------------------------------------------------------------------------------
TESTING
Put both files into mods folder and see if it works.
---------------------------------------------------------------------------------
MERGING
Export all file EXCEPT string tables from fruit
Import files into plant
-------------------------------------------------------------------------------
and some photo editor to create your images in .dds or .png format.
This is not for the faint of heart and can get confusing, so take your time.
This is set up for the way I work and I have tried to be clear, but I think you can figure it out if I missed something.
Create a copy of this text into a txt file and name it your own harvestable name.
Then working in the copy make changes in the document as you make them in the S4S program.
Basically I take the name of the harvestable I am making and replace the name in the document with the new name.
Examples of what I mean:
If I start with Blackberry and want to make Peach
BlackberryPlant becomes PeachPlant
Leniad_recipe_Food_Homestyle_BlackberrySalad-Single becomes Leniad_recipe_Food_Homestyle_PeachSalad-Single
etc.
EA suggests naming convention beginning with YOUR user name, so replace Leniad with your name.
Comments are within ( ) so don't use that text in number generation or code replacement.
When I say instance number I mean KEY instance number.
I make all the text changes for a section, then make the changes in Sim4Studio then move to next section.
I copy the HASH section names and numbers and insert in the bottom of the section I am working,
so I don't have to scroll up and down the page 100 times.
------------------------------------------------------------------------------------------------------------------
CLONE SECTION
Create clone of pear tree named 0YourHarvestable. (If you want low growing plants create clone of tomato or other EA plant, herbs are different use a clone of sage or other herb)
Create your Plant mesh in whatever program you use, I use Blender 2.70
Import your mesh into 0YourHarvestable
Created clone of pear name clone 0YourHarvestableFruit
Create your Fruit mesh in whatever program you use
Import your fruit mesh into 0YourHarvestableFruit
--------------------------------------------------------------------------
HASH section
Returning to the new object 0PlumTree
Let's find the hex numbers for names you will need. Replace "Leniad" with your own name.
Using Sims4Studio tools select hash generator and copy the text into the text box.
Select Hexidecimal at bottom of popup - FNV32 is the Hex32 number FN64 is the Hex64 number.
When decimal numbers are required select decimal at bottom of popup.
You will need both hex and decimal numbers for some objects so be careful.
ONLY change the text Leniad and the harvestable name in the names below, then add text to hash generator to get YOUR numbers.
Examples below are for plum, so change to your harvestable.
Leniad_object_GardeningPlant_Tree_Plum hex32 = 0000000053C9B3C5 dec32 = 1405727685
Leniad_gardeningfruit_Plum hex32 = 00000000AB20C55B
Values for string table
Plum Tree hex32 = 4F372A09
A tree that produces Plums. hex32 = DD7607C5
Plum hex32 = 5EE041AF
A tasty Plum hex32 = BA33E11B
I work with 2 parts and merge them together at the end, after I know it works. Easier to fix only half if there is an error.
Tree
---------------------------------------------------------------------------------
OBJECT TUNING
Extract tuning object_GardeningPlant_Tree_pear
rename object tuning to Leniad:object_GardeningPlant_Tree_Plum (instance and tuning id update automatic)
new tuning id is 11592519953674268842
---------------------------------------------------------------------------------
OBJECT DEFINITION
rename object to Leniad_object_GardeningPlant_Tree_Plum
update instance to 0000000053C9B3C5 and group to 00000000
added new tuning name and tuning id to object definition
Leniad:object_GardeningPlant_Tree_Plum
11592519953674268842 (tuningid updates automatically)
---------------------------------------------------------------------------------
STRING TABLE
We begin with String Table English.
Highlight line and in data tab on right select Entries/ Edit Items
Update first string to 4F372A09 Plum Tree
Add a new entry with key DD7607C5 A tree that produces Plums.
Add a new entry with key 5EE041AF Plum
Add a new entry with key BA33E11B A tasty Plum
---------------------------------------------------------------------------------
OBJECT CATALOG
update instance to 0000000053C9B3C5 and group to 00000000
Change Description Hash to DD7607C5
Change NameHash to 4F372A09
DevCatagory 00000090
tags
1261
424
1150
1107
---------------------------------------------------------------------------------
That's it for the tree. The slots that appear for the fruit to form are in the places for the original clone, you may have to move them to see fruit.
See slot tutorial to learn how.
FRUIT
---------------------------------------------------------------------------------
STRING TABLE
We begin with String Table English.
Highlight line and in data tab on right select Entries/ Edit Items
Add same values from tree to the fruit.
On Studio tab catalog subtab change name value to Plum
In Warehouse English string
Add a new entry with key 4F372A09 Plum Tree
Add a new entry with key DD7607C5 A tree that produces Plums.
Add a new entry with key 5EE041AF Plum
Add a new entry with key BA33E11B A tasty Plum
---------------------------------------------------------------------------------
OBJECT TUNING
extract object_GardeningFruit_apple object tuning into pkg.
Rename object tuning
Leniad:object_GardeningFruit_Plum
(updated instance to 823A1070D4A0E404 and tuning id automatic)
new tuning id is 9383830850369545220
Open xml tab
change
ln56 <T n="fruit_name">0x5EE041AF<!--Plum in string table--></T>
ln57 <T n="plant">1405727685<!--dec32 Leniad_object_GardeningPlant_Tree_Plum--></T>
---------------------------------------------------------------------------------
OBJECT DEFINITION
rename object to Leniad_gardeningfruit_Plum
update instance to 00000000AB20C55B and group to 00000000
added new tuning name and tuning id to object definition
Leniad:object_GardeningFruit_Plum
9383830850369545220 (tuningid updates automatically)
---------------------------------------------------------------------------------
OBJECT CATALOG
update instance to 00000000AB20C55B and group to 00000000
Change Description Hash to DD7607C5
Change NameHash to 5EE041AF
DevCategoryFlags to 00000080
unclick unused 2 build box (not sure it matters but I do)
Add tag 202
---------------------------------------------------------------------------------
TESTING
Put both files into mods folder and see if it works.
---------------------------------------------------------------------------------
MERGING
Export all file EXCEPT string tables from fruit
Import files into plant
-------------------------------------------------------------------------------