Jump to content

help with adding custom crock pot ingredients


Recommended Posts

You are right, that is what you do:

AddIngredientValues({"custom_item_name",}, {meat=1, monster=.5, othertags=1}) 

The vanilla ingredients are in: "...\dont_starve\data\scripts\cooking.lua"

 

That will add ingredients but not new recipes.

hmm, i must have not done something correct with the line then

here is the line that doesn't seem to work

 

AddIngredientValues({"CrushedPetals",}, {inedible=.2, decoration=1})

Link to comment
Share on other sites

hmm, i must have not done something correct with the line then

here is the line that doesn't seem to work

 

AddIngredientValues({"CrushedPetals",}, {inedible=.2, decoration=1})

 

That is correct. I would try adding debug messages to make sure it is getting called. I would also check the spelling of "CrushedPetals" both spelling and caps has to match.

Link to comment
Share on other sites

print("hello world")print(testVariable)

like that.

 

It will show up in the log file or console on the main screen.

 

hmm, im not seeing it,  but i might just not be looking in the right place, the thing is the mod is working for the craftable item that needs to be used, so the mod is running

Link to comment
Share on other sites

hmm, im not seeing it,  but i might just not be looking in the right place, the thing is the mod is working for the craftable item that needs to be used, so the mod is running

So when you start the game choose to disable mods.

Go to the mod screen and enable Just your mod.

Then leave the game running and open the log.txt file.

Near the bottom you should see some massages about enabling your mod.

The print message will be somewhere in that file. (search for it?)

Maybe pastebin your log file and post a link here.

 

If you do find it then you have other issues.

Link to comment
Share on other sites

So when you start the game choose to disable mods.

Go to the mod screen and enable Just your mod.

Then leave the game running and open the log.txt file.

Near the bottom you should see some massages about enabling your mod.

The print message will be somewhere in that file. (search for it?)

Maybe pastebin your log file and post a link here.

 

If you do find it then you have other issues.

yes hello world is in the log, and the script worked for flowers. so it must be something with the item itself, here is the modmain.lua if you can see anything strange going on, perhaps the item doesnt have something it needs to be counted for the crock pot?

Link to comment
Share on other sites

yes hello world is in the log, and the script worked for flowers. so it must be something with the item itself, here is the modmain.lua if you can see anything strange going on, perhaps the item doesnt have something it needs to be counted for the crock pot?

I don't see anything wrong with your modmain.

I am guessing that what you mean by: "the script worked for flowers" is that the crafting recipe worked?

That being the case I assume that they can be held in your inventory.

There is nothing special that goes in the item.lua file to make it go in the crock pot other than it must be an inventory item.

 

I am at a loss here.

sorry.

Link to comment
Share on other sites

I don't see anything wrong with your modmain.

I am guessing that what you mean by: "the script worked for flowers" is that the crafting recipe worked?

That being the case I assume that they can be held in your inventory.

There is nothing special that goes in the item.lua file to make it go in the crock pot other than it must be an inventory item.

 

I am at a loss here.

sorry.

i mean i used the script to let flower petals be put in the crock pot and it worked, so yeah im at a loss as well :/

Link to comment
Share on other sites

OK, maybe send me the CushedPetals.lua prefab.

That could have something in it.

ok, here is what i have,

 

EDIT

so i looked at the files and i realized that nothing was capitalized in the prefab, so i capitalized everything, and then when i tried to make the crushed petals item, i got an "i cant do that" message, and i figured out it was because i capitalized 

return Prefab( "common/inventory/crushedpetals", fn, assets, prefabs)Toreturn Prefab( "common/inventory/CrushedPetals", fn, assets, prefabs)

but everything is now definitively the exact same, i even recompiled the animation for it so everything was spelled CrushedPetals, but the only way i can craft the item is if that one line has it lower case. but of course if i change it to lower case, i can then make the item, but i still cant put it in the crock pot -.-

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...