Jump to content

[HELP] "I can't do that" message when i craft my mods item


Recommended Posts

So i made a mod, and i got past the errors that just stopped me from playing the game, but now when i try to craft the item, even though i have everything in my inventory and everything is taken i don't "unlock" the crafting recipe and i dont get the item, the character just says "I can't do that"

Link to comment
Share on other sites

Shouldn't it be "inedible" named? "inedable" is right?

 

Anyway here you go.

Try this one.

 

is the inedible change the only thing? because i asked this question a long time ago and someone suggested changing it to what it was might fix it.

the problem is the i can't do that message, and a misspelled ingredient tag isn't going to do that (i did test it)

 

Link to comment
Share on other sites

Got it xD You made space middle Strong and Poultice. Delete it.

 

didn't help, i notice the description also isn't showing up, perhaps that has something to do with it :/

here is the mod with the images as well as the modmain in case it has something to do with those

Link to comment
Share on other sites

Crash on loading the mod - you don't have a CrushedPetals prefab file in the zip. Upload the whole mod.

 

ohh, i thought you just needed to look at the files (to see whats wrong given the problem i have explained) i didn't include all the files because i didn't think they where needed to look at, here is the whole mod that i have so far

 

Link to comment
Share on other sites

You're missing a whole bunch of prefab files. Start with that problem, I'd say. No, I can't just look at the code and figure what's wrong.

 

oh, those did not get added when i re-compressed everything, im going to look a bit harder considering i forgot about the dang prefab files its probibly that :/

Link to comment
Share on other sites

First defining the strings for the recipe, should look like this (note capital letters!)

 

GLOBAL.STRINGS.NAMES.CRUSHEDPETALS = "Crushed Petals"
GLOBAL.STRINGS.RECIPE_DESC.CRUSHEDPETALS = "Harness the power of a living flame."
 
Second you are defining the Assets table in modmain.lua several times, you can only do it once. So combine those into one.
 
Finally the prefab internalname has to be all lowercase. You can't use CrushedPetals. Change all references including prefab file name to crushedpetals and your item will spawn when you use the recipe. Anim and texture files can have capital letters, this only applies to the prefab and its recipe.
Link to comment
Share on other sites

 

First defining the strings for the recipe, should look like this (note capital letters!)

 

GLOBAL.STRINGS.NAMES.CRUSHEDPETALS = "Crushed Petals"
GLOBAL.STRINGS.RECIPE_DESC.CRUSHEDPETALS = "Harness the power of a living flame."
 
Second you are defining the Assets table in modmain.lua several times, you can only do it once. So combine those into one.
 
Finally the prefab internalname has to be all lowercase. You can't use CrushedPetals. Change all references including prefab file name to crushedpetals and your item will spawn when you use the recipe. Anim and texture files can have capital letters, this only applies to the prefab and its recipe.

 

 

ok, ... now its crashing when i try to make the item, but that's good, i can figure out a crash report, i cant figure it out when the game works but the mod just decides not to, without actually failing

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