Snippet /Craft Enabler / Menu Expander Craftable Tutorial
Mar 25, 2017 11:38:16 GMT -5
orangemittens, dltn43, and 19 more like this
Post by Leniad on Mar 25, 2017 11:38:16 GMT -5
A new day has dawned for creators of food and other recipe related craftables.
It is with great pride we release Andrew's Craft Enabler and Leniad's Menu Expander.
"What do these do?" you may ask. The answer is amazing.
Andrew's Craft Enabler allows recipes to be read by in-game craft producing objects via snippet tuning inserted in the
into the package files of the finished craft object. Eliminating the need for lists of objects included in the craft producing
object or other associated scripts. If the finished craft object has the snippet tuning it will be found.
Leniad's Menu Expander provides additional menu options for craft producing objects (refrigerators, woodworking bench, electronics build table)
that allow creators to categorize their craftables, if they choose to.
The craft player works as stand alone system, the menu expander is an optional dependant add on to the craft enabler.
For the Menu Enhancer to function 3 items must be in mods folder.
1. Andrew's Craft Enabler script Download Craft Enabler
sims4studio.com/thread/2617/andrews-studio?page=1&scrollTo=72754
2. Menu Enhancer Download Menu Enhancer
sims4studio.com/thread/6924/leniads-cupboard?page=3&scrollTo=72756
3. Craft object that has snippet tuning for enabler script.
Craft objects made for Craft Enabler should include link to download Craft Enabler script.
Craft objects made for Menu Enhancer should include link to download Craft Enabler script AND link to download Menu Enhancer.pkg file.
How does it work?
Here is an Example:
Snippet code tuning as below is added to SomeFood.pkg
<?xml version="1.0" encoding="utf-8"?>
<I s="16190935995566172127" n="FoodEnablerSomeFood" c="CCRecipeInstance" i="snippet" m="s4studio_craftables">
<T n="s4s_mod_type">RECIPE</T>
<L n="recipe_interactions">
<T>13387<!--fridge_Cook--></T>
</L>
<L n="recipe_list">
<T>1111111111111111111<!--SomeFood--></T> (the 1111's indicate YOUR decimal 64 recipe value)
</L>
</I>
This will display SomeFood in the EA Cook menu on fridge
Here's a short list of EA craftable menus
<T>13059<!--bar_StartCrafting--></T>
<T>13293<!--cupcakemaker_StartCrafting--></T>
<T>13387<!--fridge_Cook--></T>
<T>13389<!--fridge_CookGourmet--></T>
<T>35026<!--grill_StartCrafting--></T>
<T>13601<!--microwave_StartCrafting--></T>
<T>10163<!--stove_CookGourmet--></T>
<T>14344<!--stove_StartCrafting--></T>
<T>14595<!--woodworkingTable_StartCrafting--></T>
<T>24105<!--woodworkingTable_StartCrafting_Instrument--></T>
<T>9088<!--woodworkingTable_StartCrafting_Sculpture--></T>
As you can see the list is rather limited, so the Menu Expander helps. If one of those is what you want, you don't need the Menu Expander.
Currently the Menu Expander expands fridge and woodworktable menus.
These are current category options
<T>16699091404189012418<!--Leniad:fridge_Cook_PieMenu_CerealsNPancakes--></T>
<T>9224576297014299890<!--Leniad:fridge_Cook_PieMenu_Desserts-CheesecakesNTrifles--></T>
<T>12868538654008737253<!--Leniad:fridge_Cook_PieMenu_Desserts-PiesNCakes--></T>
<T>13473873667791142135<!--Leniad:fridge_Cook_PieMenu_Meats--></T>
<T>16324926995319835152<!--Leniad:fridge_Cook_PieMenu_SaladsNPasta--></T>
<T>17449221813085049642<!--Leniad:fridge_Cook_PieMenu_SavoryPies--></T>
<T>15145280413368834592<!--Leniad:fridge_Cook_PieMenu_Snacks--></T>
<T>15287937881453879751<!--Leniad:fridge_Cook_PieMenu_Soups--></T>
<T>10723262189608343385<!--Leniad:fridge_Cook_PieMenu_Vegetables--></T>
<T>34956666054135545<!--Leniad:woodworkingTable_StartCrafting_PieMenu_CustomBathroom--></T>
<T>13788567391082642485<!--Leniad:woodworkingTable_StartCrafting_PieMenu_CustomBedroom--></T>
<T>14176103261357871007<!--Leniad:woodworkingTable_StartCrafting_PieMenu_CustomFurniture--></T>
<T>1133470395695624429<!--Leniad:woodworkingTable_StartCrafting_PieMenu_CustomKitchen--></T>
<T>11854328828837887909<!--Leniad:woodworkingTable_StartCrafting_PieMenu_ToddlerToys--></T>
<T>11070991310244305685<!--Leniad:woodworkingTable_StartCrafting_PieMenu_Toys--></T>
<T>12537412868442936440<!--Leniad_woodworkingTable_StartCrafting_CustomElectronics--></T>
<T>15613056549317886162<!--Leniad:fridge_Cook_PieMenu_Wine--></T> added 2017-05-11
I created a grill enhancer menu also these are the categories for grilling
<T>9680991211923846521<!--Leniad:grill_StartCrafting2_CustomMeats--></T>
<T>13477932799238488585<!--Leniad:grill_StartCrafting-GrilledVegetables --></T>
Using the previous example as a pancake SomePancakeFood
<?xml version="1.0" encoding="utf-8"?>
<I s="16190935995566172127" n="FoodEnablerSomePancakeFood" c="CCRecipeInstance" i="snippet" m="s4studio_craftables">
<T n="s4s_mod_type">RECIPE</T>
<L n="recipe_interactions">
<T>16699091404189012418<!--Leniad:fridge_Cook_PieMenu_CerealsNPancakes--></T>
</L>
<L n="recipe_list">
<T>1111111111111111111<!--SomePancakeFood--></T> (the 1111's indicate YOUR decimal 64 recipe value)
</L>
</I>
SomePancakeFood now appears in "Cereals and Pancakes" menu when you click fridge.
If you want food to appear under pancake AND cook menus
<?xml version="1.0" encoding="utf-8"?>
<I s="16190935995566172127" n="FoodEnablerSomePancakeFood" c="CCRecipeInstance" i="snippet" m="s4studio_craftables">
<T n="s4s_mod_type">RECIPE</T>
<L n="recipe_interactions">
<T>16699091404189012418<!--Leniad:fridge_Cook_PieMenu_CerealsNPancakes--></T>
<T>13387<!--fridge_Cook--></T>
</L>
<L n="recipe_list">
<T>1111111111111111111<!--SomePancakeFood--></T> (the 1111's indicate YOUR decimal 64 recipe value)
</L>
</I>
SomePancakeFood now appears in "Cereals and Pancakes" AND "Cook" menus when you click fridge.
If there are multiple recipes for food.
<?xml version="1.0" encoding="utf-8"?>
<I s="16190935995566172127" n="FoodEnablerSomePancakeFood" c="CCRecipeInstance" i="snippet" m="s4studio_craftables">
<T n="s4s_mod_type">RECIPE</T>
<L n="recipe_interactions">
<T>16699091404189012418<!--Leniad:fridge_Cook_PieMenu_CerealsNPancakes--></T>
</L>
<L n="recipe_list">
<T>1111111111111111111<!--SomePancakeFood--></T> (the 1111's indicate YOUR decimal 64 recipe value)
<T>1111111111111111110<!--SomePancakeFoodsmall--></T>
</L>
</I>
SomePancakeFood AND SomePancakeFoodsmall now BOTH appear in "Cereals and Pancakes" menu when you click fridge.
If your craftable is a toyDuck for example
<?xml version="1.0" encoding="utf-8"?>
<I s="16190935995566172127" n="WoodworkEnablertoyDuck" c="CCRecipeInstance" i="snippet" m="s4studio_craftables">
<T n="s4s_mod_type">RECIPE</T>
<L n="recipe_interactions">
<T>11070991310244305685<!--Leniad:woodworkingTable_StartCrafting_PieMenu_Toys--></T>
</L>
<L n="recipe_list">
<T>1111111111111111111<!--toyDuck--></T> (the 1111's indicate YOUR decimal 64 recipe value)
</L>
</I>
toyDuck now appears in "Toys" menu when you click woodworking table.
Generally, I just export a copy of existing snippet,
rename (using hex64 of new name as instance number)
example:
this is exported snippet xml filename
7DF2169C!80000000!8C95DD26255DCED3.Leniad_FoodEnablerEASnacks.SnippetTuning
type ! group ! hex64 id . name .SnippetTuning
If I want WoodworkEnablertoyDuck as name hex64 of name=105A2A007F645789
rename file to
7DF2169C!80000000!105A2A007F645789.WoodworkEnablertoyDuck.SnippetTuning
import into object and then update Name
category
and replace recipes
Save and you are done.
It is with great pride we release Andrew's Craft Enabler and Leniad's Menu Expander.
"What do these do?" you may ask. The answer is amazing.
Andrew's Craft Enabler allows recipes to be read by in-game craft producing objects via snippet tuning inserted in the
into the package files of the finished craft object. Eliminating the need for lists of objects included in the craft producing
object or other associated scripts. If the finished craft object has the snippet tuning it will be found.
Leniad's Menu Expander provides additional menu options for craft producing objects (refrigerators, woodworking bench, electronics build table)
that allow creators to categorize their craftables, if they choose to.
The craft player works as stand alone system, the menu expander is an optional dependant add on to the craft enabler.
For the Menu Enhancer to function 3 items must be in mods folder.
1. Andrew's Craft Enabler script Download Craft Enabler
sims4studio.com/thread/2617/andrews-studio?page=1&scrollTo=72754
2. Menu Enhancer Download Menu Enhancer
sims4studio.com/thread/6924/leniads-cupboard?page=3&scrollTo=72756
3. Craft object that has snippet tuning for enabler script.
Craft objects made for Craft Enabler should include link to download Craft Enabler script.
Craft objects made for Menu Enhancer should include link to download Craft Enabler script AND link to download Menu Enhancer.pkg file.
How does it work?
Here is an Example:
Snippet code tuning as below is added to SomeFood.pkg
<?xml version="1.0" encoding="utf-8"?>
<I s="16190935995566172127" n="FoodEnablerSomeFood" c="CCRecipeInstance" i="snippet" m="s4studio_craftables">
<T n="s4s_mod_type">RECIPE</T>
<L n="recipe_interactions">
<T>13387<!--fridge_Cook--></T>
</L>
<L n="recipe_list">
<T>1111111111111111111<!--SomeFood--></T> (the 1111's indicate YOUR decimal 64 recipe value)
</L>
</I>
This will display SomeFood in the EA Cook menu on fridge
Here's a short list of EA craftable menus
<T>13059<!--bar_StartCrafting--></T>
<T>13293<!--cupcakemaker_StartCrafting--></T>
<T>13387<!--fridge_Cook--></T>
<T>13389<!--fridge_CookGourmet--></T>
<T>35026<!--grill_StartCrafting--></T>
<T>13601<!--microwave_StartCrafting--></T>
<T>10163<!--stove_CookGourmet--></T>
<T>14344<!--stove_StartCrafting--></T>
<T>14595<!--woodworkingTable_StartCrafting--></T>
<T>24105<!--woodworkingTable_StartCrafting_Instrument--></T>
<T>9088<!--woodworkingTable_StartCrafting_Sculpture--></T>
As you can see the list is rather limited, so the Menu Expander helps. If one of those is what you want, you don't need the Menu Expander.
Currently the Menu Expander expands fridge and woodworktable menus.
These are current category options
<T>16699091404189012418<!--Leniad:fridge_Cook_PieMenu_CerealsNPancakes--></T>
<T>9224576297014299890<!--Leniad:fridge_Cook_PieMenu_Desserts-CheesecakesNTrifles--></T>
<T>12868538654008737253<!--Leniad:fridge_Cook_PieMenu_Desserts-PiesNCakes--></T>
<T>13473873667791142135<!--Leniad:fridge_Cook_PieMenu_Meats--></T>
<T>16324926995319835152<!--Leniad:fridge_Cook_PieMenu_SaladsNPasta--></T>
<T>17449221813085049642<!--Leniad:fridge_Cook_PieMenu_SavoryPies--></T>
<T>15145280413368834592<!--Leniad:fridge_Cook_PieMenu_Snacks--></T>
<T>15287937881453879751<!--Leniad:fridge_Cook_PieMenu_Soups--></T>
<T>10723262189608343385<!--Leniad:fridge_Cook_PieMenu_Vegetables--></T>
<T>34956666054135545<!--Leniad:woodworkingTable_StartCrafting_PieMenu_CustomBathroom--></T>
<T>13788567391082642485<!--Leniad:woodworkingTable_StartCrafting_PieMenu_CustomBedroom--></T>
<T>14176103261357871007<!--Leniad:woodworkingTable_StartCrafting_PieMenu_CustomFurniture--></T>
<T>1133470395695624429<!--Leniad:woodworkingTable_StartCrafting_PieMenu_CustomKitchen--></T>
<T>11854328828837887909<!--Leniad:woodworkingTable_StartCrafting_PieMenu_ToddlerToys--></T>
<T>11070991310244305685<!--Leniad:woodworkingTable_StartCrafting_PieMenu_Toys--></T>
<T>12537412868442936440<!--Leniad_woodworkingTable_StartCrafting_CustomElectronics--></T>
<T>15613056549317886162<!--Leniad:fridge_Cook_PieMenu_Wine--></T> added 2017-05-11
I created a grill enhancer menu also these are the categories for grilling
<T>9680991211923846521<!--Leniad:grill_StartCrafting2_CustomMeats--></T>
<T>13477932799238488585<!--Leniad:grill_StartCrafting-GrilledVegetables --></T>
Using the previous example as a pancake SomePancakeFood
<?xml version="1.0" encoding="utf-8"?>
<I s="16190935995566172127" n="FoodEnablerSomePancakeFood" c="CCRecipeInstance" i="snippet" m="s4studio_craftables">
<T n="s4s_mod_type">RECIPE</T>
<L n="recipe_interactions">
<T>16699091404189012418<!--Leniad:fridge_Cook_PieMenu_CerealsNPancakes--></T>
</L>
<L n="recipe_list">
<T>1111111111111111111<!--SomePancakeFood--></T> (the 1111's indicate YOUR decimal 64 recipe value)
</L>
</I>
SomePancakeFood now appears in "Cereals and Pancakes" menu when you click fridge.
If you want food to appear under pancake AND cook menus
<?xml version="1.0" encoding="utf-8"?>
<I s="16190935995566172127" n="FoodEnablerSomePancakeFood" c="CCRecipeInstance" i="snippet" m="s4studio_craftables">
<T n="s4s_mod_type">RECIPE</T>
<L n="recipe_interactions">
<T>16699091404189012418<!--Leniad:fridge_Cook_PieMenu_CerealsNPancakes--></T>
<T>13387<!--fridge_Cook--></T>
</L>
<L n="recipe_list">
<T>1111111111111111111<!--SomePancakeFood--></T> (the 1111's indicate YOUR decimal 64 recipe value)
</L>
</I>
SomePancakeFood now appears in "Cereals and Pancakes" AND "Cook" menus when you click fridge.
If there are multiple recipes for food.
<?xml version="1.0" encoding="utf-8"?>
<I s="16190935995566172127" n="FoodEnablerSomePancakeFood" c="CCRecipeInstance" i="snippet" m="s4studio_craftables">
<T n="s4s_mod_type">RECIPE</T>
<L n="recipe_interactions">
<T>16699091404189012418<!--Leniad:fridge_Cook_PieMenu_CerealsNPancakes--></T>
</L>
<L n="recipe_list">
<T>1111111111111111111<!--SomePancakeFood--></T> (the 1111's indicate YOUR decimal 64 recipe value)
<T>1111111111111111110<!--SomePancakeFoodsmall--></T>
</L>
</I>
SomePancakeFood AND SomePancakeFoodsmall now BOTH appear in "Cereals and Pancakes" menu when you click fridge.
If your craftable is a toyDuck for example
<?xml version="1.0" encoding="utf-8"?>
<I s="16190935995566172127" n="WoodworkEnablertoyDuck" c="CCRecipeInstance" i="snippet" m="s4studio_craftables">
<T n="s4s_mod_type">RECIPE</T>
<L n="recipe_interactions">
<T>11070991310244305685<!--Leniad:woodworkingTable_StartCrafting_PieMenu_Toys--></T>
</L>
<L n="recipe_list">
<T>1111111111111111111<!--toyDuck--></T> (the 1111's indicate YOUR decimal 64 recipe value)
</L>
</I>
toyDuck now appears in "Toys" menu when you click woodworking table.
Generally, I just export a copy of existing snippet,
rename (using hex64 of new name as instance number)
example:
this is exported snippet xml filename
7DF2169C!80000000!8C95DD26255DCED3.Leniad_FoodEnablerEASnacks.SnippetTuning
type ! group ! hex64 id . name .SnippetTuning
If I want WoodworkEnablertoyDuck as name hex64 of name=105A2A007F645789
rename file to
7DF2169C!80000000!105A2A007F645789.WoodworkEnablertoyDuck.SnippetTuning
import into object and then update Name
category
and replace recipes
Save and you are done.