[Question] Meat

Started by XanderDox, July 20, 2014, 07:37:31 PM

Previous topic - Next topic

XanderDox

I've asked a two question relating to food recently, but none of them actually went in the direction of the answer I actually wanted, so I apologise for wasting those who answered them's time.

But onto this question,
1. To make a meal require a certain animals meat, in this case an animal I'm adding in, I would need to make a Def for its meat correct?

1(a). If you answered correct to question one continue reading, if you answered incorrect, see 1(b), how would I go about (A) getting the texture for the meat, as I'd like to use the generic meat from the base game and  (B) how would I make it drop from that animal when butchered?

1(b). How do I go about making the meal only work with the creatures specific meat type if I don't need to make it a resource?

mrofa

Meat is genereated automaticly on start of the game, so i.e. muffalo have a thingdefname of Muffalo so if he drops meat he will drop thigdefname_meat (Muffalo_meat)
All i do is clutter all around.

XanderDox

Quote from: mrofa on July 20, 2014, 07:54:40 PM
Meat is genereated automaticly on start of the game, so i.e. muffalo have a thingdefname of Muffalo so if he drops meat he will drop thigdefname_meat (Muffalo_meat)

Holy Shiboppity! I feel so stupid! All along it should of worked, but I've been capitalizing the m on meat! Thanks so much Mrofa!

XanderDox

Quote from: mrofa on July 20, 2014, 07:54:40 PM
Meat is genereated automaticly on start of the game, so i.e. muffalo have a thingdefname of Muffalo so if he drops meat he will drop thigdefname_meat (Muffalo_meat)

But now no one is cooking it... Even when in the que and a Chef set to priority 1 cooking.

Here is the recipe:
<?xml version="1.0" encoding="utf-8" ?>
<RecipeDefs>

<RecipeDef>
<defName>CookMealLizard</defName>
<label>Cook Lizard</label>
<description>Cooks a few chunks of lizard meat on a Kebab</description>
<jobString>Preparing lizard</jobString>
<workAmount>200</workAmount>
<workTimeSkillNeed>CookTime</workTimeSkillNeed>
<workEffect>Cook</workEffect>
<sustainerSoundDef>Recipe_CookMeal</sustainerSoundDef>
<ingredients>
<li>
<filter>
<thingDefs>
<li>Rimzard_meat</li>
</thingDefs>
</filter>
<count>5</count>
</li>
</ingredients>
<products>
<li>
<thingDef>MealLizard</thingDef>
<count>1</count>
</li>
</products>
<fixedIngredientFilter>
<categories>
<li>FoodRaw</li>
</categories>
</fixedIngredientFilter>
<defaultIngredientFilter>
<categories>
<li>FoodRaw</li>
</categories>
<exceptedThingDefs>
<li>Human_Meat</li>
</exceptedThingDefs>
</defaultIngredientFilter>
<skillGains>
<li>
<skill>Cooking</skill>
<xp>50</xp>
</li>
</skillGains>
</RecipeDef>

</RecipeDefs>


If you need another part of it, just ask. This actually has me really stumped. Grrr.

mrofa

I think this should look like
<fixedIngredientFilter>
<thingDefs>
<li>Rimzard_meat</li>
</thingDefs>
</fixedIngredientFilter>


And you could delete <defaultIngredientFilter>
<categories>
<li>FoodRaw</li>
</categories>
<exceptedThingDefs>
<li>Human_Meat</li>
</exceptedThingDefs>
</defaultIngredientFilter>
All i do is clutter all around.

XanderDox

Quote from: mrofa on July 20, 2014, 09:50:47 PM
I think this should look like
<fixedIngredientFilter>
<thingDefs>
<li>Rimzard_meat</li>
</thingDefs>
</fixedIngredientFilter>


And you could delete <defaultIngredientFilter>
<categories>
<li>FoodRaw</li>
</categories>
<exceptedThingDefs>
<li>Human_Meat</li>
</exceptedThingDefs>
</defaultIngredientFilter>


Can I just attach the folder so you can look at it an see where the hell I messed up, because looking through all this and nothing working is starting to piss me off :p

mrofa

All i do is clutter all around.

XanderDox

Quote from: mrofa on July 20, 2014, 10:03:40 PM
sure go ahead
Here, thanks.

[attachment deleted by admin: too old]

mrofa

This works now :P

<?xml version="1.0" encoding="utf-8" ?>
<RecipeDefs>

<RecipeDef>
<defName>CookMealLizard</defName>
<label>Cook Lizard</label>
<description>Cooks a few chunks of lizard meat on a Kebab</description>
<jobString>Preparing lizard</jobString>
<workAmount>200</workAmount>
<workTimeSkillNeed>CookTime</workTimeSkillNeed>
<workEffect>Cook</workEffect>
<sustainerSoundDef>Recipe_CookMeal</sustainerSoundDef>
<ingredients>
<li>
<filter>
<thingDefs>
<li>Rimzard_Meat</li>
</thingDefs>
</filter>
<count>5</count>
</li>
</ingredients>
<products>
<li>
<thingDef>MealLizard</thingDef>
<count>1</count>
</li>
</products>
<fixedIngredientFilter>
<thingDefs>
<li>Rimzard_Meat</li>
</thingDefs>
</fixedIngredientFilter>
<skillGains>
<li>
<skill>Cooking</skill>
<xp>50</xp>
</li>
</skillGains>
</RecipeDef>

</RecipeDefs>
All i do is clutter all around.

XanderDox

Quote from: mrofa on July 20, 2014, 10:22:00 PM
This works now :P

<?xml version="1.0" encoding="utf-8" ?>
<RecipeDefs>

<RecipeDef>
<defName>CookMealLizard</defName>
<label>Cook Lizard</label>
<description>Cooks a few chunks of lizard meat on a Kebab</description>
<jobString>Preparing lizard</jobString>
<workAmount>200</workAmount>
<workTimeSkillNeed>CookTime</workTimeSkillNeed>
<workEffect>Cook</workEffect>
<sustainerSoundDef>Recipe_CookMeal</sustainerSoundDef>
<ingredients>
<li>
<filter>
<thingDefs>
<li>Rimzard_Meat</li>
</thingDefs>
</filter>
<count>5</count>
</li>
</ingredients>
<products>
<li>
<thingDef>MealLizard</thingDef>
<count>1</count>
</li>
</products>
<fixedIngredientFilter>
<thingDefs>
<li>Rimzard_Meat</li>
</thingDefs>
</fixedIngredientFilter>
<skillGains>
<li>
<skill>Cooking</skill>
<xp>50</xp>
</li>
</skillGains>
</RecipeDef>

</RecipeDefs>


So if I replace what I had with that, they should cook it?

mrofa

Yep they did cook it on my test.
All i do is clutter all around.

XanderDox

Quote from: mrofa on July 20, 2014, 10:31:38 PM
Yep they did cook it on my test.

You have literally made me the happiest little newbie modder on the planet! Thank you!!!!!!