Recipes not working

Started by SteamPunk_Devil, August 23, 2014, 11:21:51 PM

Previous topic - Next topic

SteamPunk_Devil

I've spent the last couple of hours playing around with modding and I've got stuck with recipes, should this code work?   


<RecipeDefs>

<RecipeDef>
<defName>PrepIceCreamBase</defName>
<label>Prepare a base for ice cream</label>
<description>Just Add Flavour</description>
<jobString>Cooking fine meal.</jobString>
<workAmount>400</workAmount>
<workTimeSkillNeed>CookTime</workTimeSkillNeed>
<workEffect>Cook</workEffect>
        <sustainerSoundDef>Recipe_CookMeal</sustainerSoundDef>
         <ingredients>
<li>
<filter>
<thingDefs>
<li>Milk</li>
</thingDefs>
</filter>
<count>7</count>
</li>
<li>
<filter>
<thingDefs>
<li>Sugar</li>
</thingDefs>
</filter>
<count>5</count>
</li>
</ingredients>
<products>
<li>
<thingDef>IceBase</thingDef>
<count>1</count>
</li>
</products>
<skillGains>
<li>
<skill>Cooking</skill>
<xp>110</xp>
</li>
</skillGains>
</RecipeDef>
</RecipeDefs>

RawCode

add your XML to game and test self.

your PC wont explode in case of error.

SteamPunk_Devil

Tried that is not giving a error its just not available when I  try to make a new recipe from the cook stove

RawCode


Shinzy

it seems to be missing the Fixed ingredient filter thing
Like this
<fixedIngredientFilter>
<thingDefs>
<li>Milk</li>
<li>Sugar</li>
</thingDefs>
</fixedIngredientFilter>


RawCode

mod required due file structure do matter.

did you placed your xmls into ThingDefs\RecipeDefs\whateverbaseclassisdefs subfolder?


SteamPunk_Devil

here

[attachment deleted by admin: too old]