Jump to content

Recommended Posts

so im making a mod and have been working on it for awhile, but i cant figure out how to let custom items be used in the crock pot. i thought it would be the AddIngredientValues line in the modmain.lua, but that doesn't seem to be it.

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.

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})

Edited by AnimeOfTheArts

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.

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.

the spelling and capitalization is correct. im not sure how to add a debug message though...

the spelling and capitalization is correct. im not sure how to add a debug message though...

 

print("hello world")print(testVariable)

like that.

 

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

Edited by boardman94
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

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.

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?

Edited by AnimeOfTheArts

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.

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 :/

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 -.-

 

Edited by AnimeOfTheArts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...