Trying to add fruit salad, where am I going wrong?

Started by Serrate Bloodrage, March 12, 2014, 09:16:46 AM

Previous topic - Next topic

Serrate Bloodrage

Hi,
I've been reading .xml so much I'm starting to dream in it, but I still can't get a damn recipe to work.

Attached is my intended mod. While the mod loads without any issues/warnings it just doesn't appear in game.
Thanks in advance to anyone who can help, and probably thanks again thereafter :)


[attachment deleted by admin: too old]
_______________________________________

If only my colonist could have 'personal time' to reduced stress =D

Serrate Bloodrage

Oh damn, I don't know how to fix that. I'll put it in this reply and see how that does.


[attachment deleted by admin: too old]
_______________________________________

If only my colonist could have 'personal time' to reduced stress =D

Darker

Sorry, it was problem with my PC... Microsoft Visal C++ barred the HDD. Sorry for bothering you.
Please... Throw human readable errors on savefile parsing failure!!!
Rim world editor Editor on GIT

Darker

This is the error you should fix:

Exception parsing <quality>Meal</quality> to type FoodQuality: Exception parsing FoodQuality from "Meal"
Here are the available options (self-explanatory I guess):

  • None
  • Plant
  • Plant
  • Raw
  • MealAwful
  • MealSimple
  • MealFine
  • MealLavish

   
Please... Throw human readable errors on savefile parsing failure!!!
Rim world editor Editor on GIT

Serrate Bloodrage

#4
Thanks heaps mate! Don't know how I got that wrong.
Just checked and I copied the simple meal text, which has <quality>meal</quality>
Either way you replied in less time than it took me to build up to asking for help :P

Seems it doesn't like that either
Im getting the same thing you got Exception parsing FoodQuality from "MealSimple"
I'll try one of the other options and update this post.
No love for MealFine either.
I changed nothing else in the original .xml other than adding Simple and Fine to the end of Meal.

If only I could let my pawns live without diet variety!

[attachment deleted by admin: too old]
_______________________________________

If only my colonist could have 'personal time' to reduced stress =D

Haplo

Hmm, your first try with the definitions was ok.
Darker is with his definitions a bit too far ahead ;)
What I'm missing is the adding of your recipe to the recipe list of the kitchen table.
Did you add your recipe there? At least in your zip there isn't a ThingDef for this.

Try to add this to your kitchen table:

<recipes>
<li>CookMealSimple</li>
<li>CookMealFine</li>
<li>CookMealLavish</li>
<li>CookFruitSalad</li>
</recipes>
<inspectorTabs>
<li>UI.ITab_Bills</li>
</inspectorTabs>


Serrate Bloodrage

Thanks Haplo! That worked. Whew lol.
Let the menu of tasty treats commence!
_______________________________________

If only my colonist could have 'personal time' to reduced stress =D

Serrate Bloodrage

lol ok, new problem-> The cook doesn't want to cook the recipes.
I added a new cook top to allow for ease of recipe inclusion.

I'm sure once I get this one working I will stop having to bother you all.

[attachment deleted by admin: too old]
_______________________________________

If only my colonist could have 'personal time' to reduced stress =D

Thunder Rahja

You need to define a WorkGiver for your new crafting station.

Serrate Bloodrage

Uh ok ty Thunder, I'm making it harder for myself each time I think lol.
To think I wanted to add custom thoughts...
_______________________________________

If only my colonist could have 'personal time' to reduced stress =D

Serrate Bloodrage

Added a WorkGiverDefs folder and placed an xml with-

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


   <WorkGiverDef>
      <defName>DoBillsCook</defName>
      <giverClass>AI.WorkGiver_DoBill</giverClass>
      <workType>Cooking</workType>
      <priorityInType>11</priorityInType>
      <workTableDef>AdvancedCooking</workTableDef>
   </WorkGiverDef>


Annndd it's still not working....Is there something I havn't correctly defined?




</WorkGivers>
_______________________________________

If only my colonist could have 'personal time' to reduced stress =D

Serrate Bloodrage

Fixed it. Seems you can only have one thing producing certain recipes. So by trying to add the normal recipes to my own cook bench I stopped both of them from working.
_______________________________________

If only my colonist could have 'personal time' to reduced stress =D

StorymasterQ

So, for further reference, one recipe can only be produced by one thing? It's a one-to-one relationship, then?
I like how this game can result in quotes that would be quite unnerving when said in public, out of context. - Myself

The dubious quotes list is now public. See it here

Serrate Bloodrage

Yes, it seems for A2 that is correct. I didn't try reproducing the recipe again for my own cook table though.
_______________________________________

If only my colonist could have 'personal time' to reduced stress =D