Post by necrodog on Dec 19, 2016 21:52:41 GMT -5
Hello I made this review of how a food is crafted.
A food is crafted in the S4 in some ways.
It needs some objects for the food to be crafted.
Food from stove
A fridge, (where you take out the ingredient tray) and the stove, where you cook it (on the burners or the oven)
Food from Cupcake machine.
The cupcake machine
Food from the grill
A grill
Drinks from tea, coffemaker or bar
The respective objects
All this objects need a recipe containing the steps to food be crafted. And the recipes are located in the (object)_StartCrafting tuning and also in the (object)_Cook_PieMenu tuning on some of them.
So if i want to make custom food. What do i need?
Option 1
A injecting script to inject the recipes in the objects (fridge, stove, etc) with custom iteractions (custom (object)_StartCraftings)containing the recipes.
Option 2
A custom object (fridge, stove, etc ) with custom (object)_StartCraftings cointaing the recipes of the new food to work.
Let start with option 2 and with the recipes for the stove.
Start by creating a custom fridge or stove and edit its main tuning (object_fridge(etc) or object_stove(etc) ) replacing the Startcrafting affordance with your custom one containing the recipes.
Ok I made that. Now?
Make your custom recipe.
What are the components of a recipe? In this case for the stove.
I made a dissection to a recipe. Please check it.
sims4studio.com/thread/5441/prelude-custom-foods-dissecting-recipe
Also Lenaid made a custom food tutorail. Please view.
sims4studio.com/thread/6926/custom-food-creation-tutorial?page=1&scrollTo=63596
Now to see what objects are involved into a stove recipe.
The food that our sims can make at stove are of two types
1.The one that use the burners. (fryin pan, pot)
2. The one that use the oven. (Baking pan)
Before using the stove , our sims gets a tray from the fridge that can be: bake,carb,meat or veg (veggies)
After taking the tray from the fridge on some recipes the sims uses a mixing bowl before using the stove: dough, egg, meat, pasta, salad or spice.
Or use a cutting board: apple, aparagus, bell pepper, bread, chicken, dough, fish fillet, lettuce, meat red, melon, onion, shrimp, tomato.
Also we need a multiserving plate object that will be the final food that our sim eat (party, family sizes), along with the single plate serving (individual serving)
All this objects can be costumized by new ones for example a cuttingboard with chocolate a fryingpan of another meat, a strawberry dough mixing bowl etc. And need to be hashed in the new recipe.
For hashing the new objects. You need to create an hex and dec code number with the hash generator from studio. We need the FNV32 one. For example:
necrodog:pancakes-chocolate-single
Hex
80A8A28E
Dec
2158535310
The Hex code replacing the instance at KEY in the object definiton and object catalog of the object you want to hash and put Group on 000000
The decimal replacing the "defintion" number in the correct place in the recipe at:
Phases
Frying pans
phaseSimple_food_FryingPan_(bread,etc)
Pot
phaseSimple_food_Pot_(lobster,etc)
Baking Pan
phaseSimple_food_BakinPan_(cake,etc)
Tray
phaseSimple_IngredientsTray_(Meat, etc)
Also you need to rename the custom phases with a new one, replace the old one and update the recipe
Multi and single serving.
The decimal replacing the "defintion" number in the correct place in the recipes at:
Multi serving
In the "definition" at the large and medium recipes
Single serving
In the "definition" at the single recipe.
Also give your recipe a unique name and need to update the single recipe in the medium and large version with the new single recipe at
<V t="enabled" n="base_recipe">
<T n="enabled">15762<!--recipe_Food_Homestyle_GardenSalad-Single--></T>
This line example is from the large and medium Garden salad recipe.
Also you need to give your new food a name. In studio in the catalog tag, there is a name and description that you can make, you can give a name to the food there and reuse the hex Key of the value in the languaje string area. Replacing the name in
<T n="name">0xD0BACDFF<!--Ensalada de la huerta--></T>
<T n="phase_interaction_name">0x886ED311<!--Servir ensalada de la huerta--></T>
Replace the name ther with the one from the languaje strings. before the hex num you need to put 0x
For the serve (food name) name, prepare (food name) name or other names in the names area. Hash an hex number for them, update each languaje string with the generated hex at KEY, give a value ( the text you want) and replace the hex value at the names area in the recipes.
Update the recipes, update the startcrafting of the custom fridge or stove, put the food, recipes, fridge, objects in the MODS folder and test.
Hope this was helpfull
A food is crafted in the S4 in some ways.
It needs some objects for the food to be crafted.
Food from stove
A fridge, (where you take out the ingredient tray) and the stove, where you cook it (on the burners or the oven)
Food from Cupcake machine.
The cupcake machine
Food from the grill
A grill
Drinks from tea, coffemaker or bar
The respective objects
All this objects need a recipe containing the steps to food be crafted. And the recipes are located in the (object)_StartCrafting tuning and also in the (object)_Cook_PieMenu tuning on some of them.
So if i want to make custom food. What do i need?
Option 1
A injecting script to inject the recipes in the objects (fridge, stove, etc) with custom iteractions (custom (object)_StartCraftings)containing the recipes.
Option 2
A custom object (fridge, stove, etc ) with custom (object)_StartCraftings cointaing the recipes of the new food to work.
Let start with option 2 and with the recipes for the stove.
Start by creating a custom fridge or stove and edit its main tuning (object_fridge(etc) or object_stove(etc) ) replacing the Startcrafting affordance with your custom one containing the recipes.
Ok I made that. Now?
Make your custom recipe.
What are the components of a recipe? In this case for the stove.
I made a dissection to a recipe. Please check it.
sims4studio.com/thread/5441/prelude-custom-foods-dissecting-recipe
Also Lenaid made a custom food tutorail. Please view.
sims4studio.com/thread/6926/custom-food-creation-tutorial?page=1&scrollTo=63596
Now to see what objects are involved into a stove recipe.
The food that our sims can make at stove are of two types
1.The one that use the burners. (fryin pan, pot)
2. The one that use the oven. (Baking pan)
Before using the stove , our sims gets a tray from the fridge that can be: bake,carb,meat or veg (veggies)
After taking the tray from the fridge on some recipes the sims uses a mixing bowl before using the stove: dough, egg, meat, pasta, salad or spice.
Or use a cutting board: apple, aparagus, bell pepper, bread, chicken, dough, fish fillet, lettuce, meat red, melon, onion, shrimp, tomato.
Also we need a multiserving plate object that will be the final food that our sim eat (party, family sizes), along with the single plate serving (individual serving)
All this objects can be costumized by new ones for example a cuttingboard with chocolate a fryingpan of another meat, a strawberry dough mixing bowl etc. And need to be hashed in the new recipe.
For hashing the new objects. You need to create an hex and dec code number with the hash generator from studio. We need the FNV32 one. For example:
necrodog:pancakes-chocolate-single
Hex
80A8A28E
Dec
2158535310
The Hex code replacing the instance at KEY in the object definiton and object catalog of the object you want to hash and put Group on 000000
The decimal replacing the "defintion" number in the correct place in the recipe at:
Phases
Frying pans
phaseSimple_food_FryingPan_(bread,etc)
Pot
phaseSimple_food_Pot_(lobster,etc)
Baking Pan
phaseSimple_food_BakinPan_(cake,etc)
Tray
phaseSimple_IngredientsTray_(Meat, etc)
Also you need to rename the custom phases with a new one, replace the old one and update the recipe
Multi and single serving.
The decimal replacing the "defintion" number in the correct place in the recipes at:
Multi serving
In the "definition" at the large and medium recipes
Single serving
In the "definition" at the single recipe.
Also give your recipe a unique name and need to update the single recipe in the medium and large version with the new single recipe at
<V t="enabled" n="base_recipe">
<T n="enabled">15762<!--recipe_Food_Homestyle_GardenSalad-Single--></T>
This line example is from the large and medium Garden salad recipe.
Also you need to give your new food a name. In studio in the catalog tag, there is a name and description that you can make, you can give a name to the food there and reuse the hex Key of the value in the languaje string area. Replacing the name in
<T n="name">0xD0BACDFF<!--Ensalada de la huerta--></T>
<T n="phase_interaction_name">0x886ED311<!--Servir ensalada de la huerta--></T>
Replace the name ther with the one from the languaje strings. before the hex num you need to put 0x
For the serve (food name) name, prepare (food name) name or other names in the names area. Hash an hex number for them, update each languaje string with the generated hex at KEY, give a value ( the text you want) and replace the hex value at the names area in the recipes.
Update the recipes, update the startcrafting of the custom fridge or stove, put the food, recipes, fridge, objects in the MODS folder and test.
Hope this was helpfull