Pellape Posted November 24, 2020 Share Posted November 24, 2020 (edited) Edit: SOLVED I want to add some MOO ini files as optional DL for my current WIP The Companion Friendly Hobbit Home MOO:Making recipes is not a problem nor adding new tools but something is wrong when I try to add new resources to "Maskar's Oblivion Overhaul for craft resources.ini" I did found bugs I added yesterday, mostly because I did not know but figured it out in the end. So lets peek at the resourses I added and compare them with Maskars: He added resources from oblivion.esm without problems like: ; Potato 0.2 set MOO.ini_object_type to MOO.id_Potato set MOO.ini_object_name to sv_Construct "Potato" set MOO.ini_object_filename to sv_Construct "Clutter\Potato01.NIF" SetStage MOO 50 I tried to add the following resources from both "Oblion.esm" and "Cobl Main.esm" ;=============================================================================; ; Ingredients - Rolling Pin - COBL - Pekka ; ;=============================================================================; ; Apple 0.2 set MOO.ini_object_type to MOO.id_Apple set MOO.ini_object_name to sv_Construct "Apple" set MOO.ini_object_filename to sv_Construct "Clutter\Apple01.nif" SetStage MOO 50 ; Blackberry 0.1 set MOO.ini_object_type to MOO.id_Blackberry set MOO.ini_object_name to sv_Construct "Blackberry" set MOO.ini_object_filename to sv_Construct "Clutter\Blackberry01.nif" SetStage MOO 50 ; Bread Dough 0.2 set MOO.ini_object_type to MOO.id_BreadDough set MOO.ini_object_name to sv_Construct "Bread Dough" set MOO.ini_object_filename to sv_Construct "clutter\Ingredients\BreadDough.nif" SetStage MOO 50 ; Brown Sugar 0.1 set MOO.ini_object_type to MOO.id_cobSalBrownSugar set MOO.ini_object_name to sv_Construct "Brown Sugar" set MOO.ini_object_filename to sv_Construct "clutter\Ingredients\BrownSugar.nif" SetStage MOO 50 ; Butter 0.1 set MOO.ini_object_type to MOO.id_Butter set MOO.ini_object_name to sv_Construct "Butter" set MOO.ini_object_filename to sv_Construct "clutter\Ingredients\butter.nif" SetStage MOO 50 ; Cairn Bolete Cap - (Champion) 0.1 set MOO.ini_object_type to MOO.id_CairnBoleteCap set MOO.ini_object_name to sv_Construct "Cairn Bolete Cap" set MOO.ini_object_filename to sv_Construct "Dungeons\Caves\CairnBoleteCap.NIF" SetStage MOO 50 ; Leek 0.1 set MOO.ini_object_type to MOO.id_Leek set MOO.ini_object_name to sv_Construct "Leek" set MOO.ini_object_filename to sv_Construct "Clutter\IngredLeek01.NIF" SetStage MOO 50 ; Meadow Rye 0.1 set MOO.ini_object_type to MOO.id_cobTiMeadowRye set MOO.ini_object_name to sv_Construct "Meadow Rye" set MOO.ini_object_filename to sv_Construct "clutter\Ingredients\ingredMeadowRye.nif" SetStage MOO 50 ; Slaughterfish Fillet set MOO.ini_object_type to MOO.id_cobColFishFillet set MOO.ini_object_name to sv_Construct "Slaughterfish Fillet" set MOO.ini_object_filename to sv_Construct "Clutter\HerringFillet01.nif" SetStage MOO 50 ; Sugar set MOO.ini_object_type to MOO.id_PekIngrSugar set MOO.ini_object_name to sv_Construct "Sugar" set MOO.ini_object_filename to sv_Construct "clutter\Ingredients\ingredMoonSugar.nif" SetStage MOO 50 Lets peek at the "Maskar's Oblivion Overhaul for craft recipes.ini"Here Maskar made Bread and notice the number after each resource as it increases and this I learned yesterday. The reason I succeeded to add recipes earlier is that I copied and pasted whole blocks. Well Maskars Bread Loaf: set MOO.ini_object_type to MOO.type_RollingPin set MOO.ini_object_filename to sv_Construct "Maskar's Oblivion Overhaul.esp" ; MOOCookedBakeryBreadloaf 0.5 set MOO.ini_object_target_id to sv_Construct "3A9F22" set MOO.ini_object_source1_id to MOO.id_Water set MOO.ini_object_source1_weight to 1 set MOO.ini_object_source2_id to MOO.id_Flour set MOO.ini_object_source2_weight to 0.5 SetStage MOO 60 Look at the source name, it ends with a number, Water with 21 and flour with 2 and that number increases for each resource added to a recipe And here is my recipes: set MOO.ini_object_filename to sv_Construct "Oblivion.esm" ; Breadloaf ; Bread Loaf 0.5 set MOO.ini_object_target_id to sv_Construct "23D89" set MOO.ini_object_source1_id to MOO.id_BreadDough set MOO.ini_object_source1_weight to 0.2 SetStage MOO 60 ;=============================================================================; ; Rolling Pin (baking) - COBL - Pekka ; ;=============================================================================; set MOO.ini_object_filename to sv_Construct "Cobl Main.esm" ; cobSalAleswellBread ; Aleswell White Bread set MOO.ini_object_target_id to sv_Construct "124B" set MOO.ini_object_source1_id to MOO.id_Milk set MOO.ini_object_source1_weight to 0.2 set MOO.ini_object_source2_id to MOO.id_Flour set MOO.ini_object_source2_weight to 0.2 ; Anvil Rye Bread ; cobSalAnvilBread 0.5 set MOO.ini_object_target_id to sv_Construct "122C" set MOO.ini_object_source1_id to MOO.id_Water set MOO.ini_object_source1_weight to 1 set MOO.ini_object_source2_id to MOO.id_Flour set MOO.ini_object_source2_weight to 0.2 set MOO.ini_object_source3_id to MOO.id_cobTiMeadowRye set MOO.ini_object_source3_weight to 0.1 SetStage MOO 60 ; Apple Pie ; cobSalApplePie 0.75 set MOO.ini_object_target_id to sv_Construct "15C92" set MOO.ini_object_source1_id to MOO.id_Butter set MOO.ini_object_source1_weight to 0.1 set MOO.ini_object_source2_id to MOO.id_Flour set MOO.ini_object_source2_weight to 0.2 set MOO.ini_object_source3_id to MOO.id_Apple set MOO.ini_object_source3_weight to 0.2 SetStage MOO 60 ; cobSalEggCustard ; Baked Custard 0.2 set MOO.ini_object_target_id to sv_Construct "12FA4" set MOO.ini_object_source1_id to MOO.id_Butter set MOO.ini_object_source1_weight to 0.1 set MOO.ini_object_source2_id to MOO.id_Milk set MOO.ini_object_source2_weight to 0.2 set MOO.ini_object_source3_id to MOO.id_Egg set MOO.ini_object_source3_weight to 0.1 SetStage MOO 60 ; cobColBakedPotato ; Baked Potato 0.2 set MOO.ini_object_target_id to sv_Construct "1C79" set MOO.ini_object_source1_id to MOO.id_Potato set MOO.ini_object_source1_weight to 0.2 SetStage MOO 60 ; cobSalBeefPastry ; Beef & Leek Savory Pie 0.75 set MOO.ini_object_target_id to sv_Construct "488C" set MOO.ini_object_source1_id to MOO.id_Butter set MOO.ini_object_source1_weight to 0.1 set MOO.ini_object_source2_id to MOO.id_Leek set MOO.ini_object_source2_weight to 0.1 set MOO.ini_object_source3_id to MOO.id_Flour set MOO.ini_object_source3_weight to 0.1 set MOO.ini_object_source4_id to MOO.id_Beef set MOO.ini_object_source4_weight to 1.0 set MOO.ini_object_source5_id to MOO.id_Egg set MOO.ini_object_source5_weight to 0.2 set MOO.ini_object_source6_id to MOO.id_Potato set MOO.ini_object_source6_weight to 0.2 SetStage MOO 60 ; cobSalJellyCookie ; Black-eyed Cookie 0.1 set MOO.ini_object_target_id to sv_Construct "14D1E" set MOO.ini_object_source1_id to MOO.id_Blackberry set MOO.ini_object_source1_weight to 0.1 set MOO.ini_object_source2_id to MOO.id_Flour set MOO.ini_object_source2_weight to 0.1 set MOO.ini_object_source3_id to MOO.id_Butter set MOO.ini_object_source3_weight to 0.1 set MOO.ini_object_source4_id to MOO.id_PekIngrSugar set MOO.ini_object_source4_weight to 1.0 set MOO.ini_object_source5_id to MOO.id_cobSalBrownSugar set MOO.ini_object_source5_weight to 1.0 set MOO.ini_object_source6_id to MOO.id_Egg set MOO.ini_object_source6_weight to 0.2 SetStage MOO 60 ; cobSalBlackberryPie ; Blackberry Pie 0.75 set MOO.ini_object_target_id to sv_Construct "15C93" set MOO.ini_object_source1_id to MOO.id_Blackberry set MOO.ini_object_source1_weight to 0.1 set MOO.ini_object_source2_id to MOO.id_Flour set MOO.ini_object_source2_weight to 0.1 set MOO.ini_object_source3_id to MOO.id_Butter set MOO.ini_object_source3_weight to 0.1 set MOO.ini_object_source4_id to MOO.id_PekIngrSugar set MOO.ini_object_source4_weight to 0.1 set MOO.ini_object_source5_id to MOO.id_Egg set MOO.ini_object_source5_weight to 0.2 SetStage MOO 60 ;cobSalBreadDough ; Bread Dough 0.2 set MOO.ini_object_target_id to sv_Construct "AB1D" set MOO.ini_object_source1_id to MOO.id_Water set MOO.ini_object_source1_weight to 0.1 set MOO.ini_object_source2_id to MOO.id_Flour set MOO.ini_object_source2_weight to 0.1 When you make a manual for cooking, it will list all resources but it does not. Look at the Apple Pie, It only requires Flour and when I make it, I only need to have flour in my inventory and that is not the idea really: Heres a screenie of the generated Manual of Cooking (MOO) in game and you only see the resources Maskar originally added and it works to make the items but......I dont want to add this if you only need flour to be able to make a Apple Pie... and he do write: ; Edit this file to add support for unrecognized crafting objects. ; ; ; ; Place this in your "Data" folder in the beginning of "Maskar's Oblivion Overhaul for craft resources.ini" So what bugs did I add to the files to start with? Well I copied the pathes to each nif from Cobl Main.esm from tes4edit.exe and copied the icon by mistake to the dough, clutter/food/BreadDough.dds to make the Bred Loaf, well alternative way. Maskar did add it as well but with water and flour. I will try to see what happens if I remark it really. The numders after sourceX in the recipes where random until I saw that there where numbers at all. :D It must be something I missed as it still doesnt work as I want it too. ---------------------------------------------Another way to solve this is of course to make my own crafting system and that way, no one would need to run MOO to be able to craft the cobl stuff that I add with my mod. I have also seen some that already made cooking mods but I do not use them and will not use them as I use the Maskar Crafting system myself but if we cant solve this problem, I will add my own way and honestly, it would be as easy as editing maskars ini files. I do hope you will find if I did something that breaks it. I mean the Apple should work as one example as the Potato works and we are meant to edit his ini files as that is why he added them in the first place, to make our own tweaks. //Pekka Edited November 25, 2020 by Pellape Link to comment Share on other sites More sharing options...
Pellape Posted November 24, 2020 Author Share Posted November 24, 2020 I just set Maskars to debug, ate both a potato and an apple and checked the consolle as all his resources gets added there and I saw both, so the apple is registered to the game ao maybe it is a bug somewhere? //Pekka Link to comment Share on other sites More sharing options...
Pellape Posted November 25, 2020 Author Share Posted November 25, 2020 I sent Maskar a message yesterday and got a reply today. It does not work at the moment to add new resources if they are not also added in the mod, so that explains it and he will help me do it :) Link to comment Share on other sites More sharing options...
Recommended Posts