Hello, I have followed this game for a while and I have only came into finding out there was mods for it and I looked at others and found them very interesting so I wanted to try and make a mod myself but only basic so that I can learn to make more complex ones in my free time.
When I load up the game it is seen by the game and loaded when I play but when I want to craft the item in the game it is not showing up the the carpenters workbench.
here is a link to my github where the code is stored for people to help me out with it.
Hello! Welcome to the forums, and welcome to modding Stonehearth!
It looks like there were only a few small changes you needed to make.
Inside of your wood recipe, the reference to your wood was incorrect in produces, so change it from:
âitemâ : âcraftmod:wood:woodâ
to:
âitemâ : âcraftmod:woodâ
So that it properly references the alias you made.
Next, for your manifest it looks like you duplicated file by accident in your mixintos and miscalled the folder (professions should be jobs), so youâll need to change it to:
Thanks @GreatColtini for that as it worked perfectly.
My other Question I have is how to make multiple of the same item so for an example I made a recipe for a food item but wanted a set of ingredients to produce multiple servings (multiple items)
I thought it was add âcountâ: 2 underneath it but that failed to work?
thanks for all the people help me as I am learning a lot and I want to get a base of ideas working before planning the actual mod itself.
yeah I know but just as a test first.
like I said just want to get the basic knowledge in first and then start properly on making the mod I want to make.
if I know a resource is in the game I can test if it works or not and then plan ahead for my actual item.
When I tested to see if it would craft and it came up with this error?
[details=Summary]> release-687 (x64)[M]
smart_crafter/lib/util.lua:5: stack overflow
stack traceback:
[C]: in function âtypeâ
smart_crafter/lib/util.lua:5: in function âdeep_compareâ
smart_crafter/lib/util.lua:17: in function âdeep_compareâ
smart_crafter/lib/util.lua:17: in function âdeep_compareâ
smart_crafter/lib/util.lua:17: in function âdeep_compareâ
âŚ_crafter/services/server/crafter_info/recipe_map.lua:63: in function âcontainsâ
âŚ_crafter/services/server/crafter_info/recipe_map.lua:41: in function âintersecting_valuesâ
âŚices/server/crafter_info/crafter_info_controller.lua:122: in function âget_possible_recipesâ
smart_crafter/smart_craft_order_list.lua:183: in function â_sc_get_recipe_info_from_ingredientâ
smart_crafter/smart_craft_order_list.lua:67: in function âadd_orderâ
smart_crafter/smart_craft_order_list.lua:84: in function âadd_orderâ
âŚ
smart_crafter/smart_craft_order_list.lua:84: in function âadd_orderâ
smart_crafter/smart_craft_order_list.lua:84: in function âadd_orderâ
smart_crafter/smart_craft_order_list.lua:84: in function âadd_orderâ
smart_crafter/smart_craft_order_list.lua:84: in function âadd_orderâ
smart_crafter/smart_craft_order_list.lua:84: in function âadd_orderâ
smart_crafter/smart_craft_order_list.lua:84: in function âadd_orderâ
smart_crafter/smart_craft_order_list.lua:84: in function âadd_orderâ
smart_crafter/smart_craft_order_list.lua:84: in function âadd_orderâ
smart_crafter/smart_craft_order_list.lua:84: in function âadd_orderâ
stonehearth/components/workshop/craft_order_list.lua:74: in function <stonehearth/components/workshop/craft_order_list.lua:68>[/details]
5 minutes later⌠it was the smart crafter mod but only on the mason not the carpenter?
Is there a fix for that?
So, it seems that your mod has stumbled upon one of the big problems with my smart crafter mod.
Whatâs happening here is that the recipe requires a wood resource to be able to craft, well, a wooden log. And, if there is no wood resource available in the inventory, the mod will look for any recipe that can craft wood resource, and since that same recipe can craft that, the mod will then promptly attempt to add that recipe (again) to the crafting list. But, that recipe also requires a wood resource to be made, so it will again look at all the recipes to find that recipe again, and it will go on and on like that, until it runs out of memory and crashes.
There a few different things you could do about this:
make sure you have at least one wood resource available (and a stone resource when testing out the other recipe),
change so that the recipe produces something else than an oak log, or
donât load the Smart Crafter mod while youâre testing your own mod (either through settings or by moving it from the mods folder).
Thatâs understandable. The suggestions I gave above were for while you are testing out some stuff for your own mod. I mean, the errors you got were from my Smart Crafter mod, so you shouldnât have to concern about that for your own mods.
another error that I canât quite understand and there is two errors?
[details=On load up]> release-687 (x64)[M]
@stonehearth/services/server/job/job_info_controller.lua:251: Crafter job stonehearth:jobs:carpenter has a recipe named âstorage:furâ that produces an item not in the manifest stonehearth:resources:pelt:wolf_pelt
stack traceback:
radiant/modules/common.lua:237: in function âreport_tracebackâ
radiant/modules/common.lua:456: in function âverifyâ
âŚnehearth/services/server/job/job_info_controller.lua:251: in function â_initialize_recipe_dataâ
âŚnehearth/services/server/job/job_info_controller.lua:234: in function â_build_craftable_recipe_listâ
âŚnehearth/services/server/job/job_info_controller.lua:102: in function <âŚnehearth/services/server/job/job_info_controller.lua:63>[/details]
@GreatColtini not noticed anything different in the exp and I have the override in the jobs folder of my mod and I have added to the manifest so I donât know why it is not working?