Mod Request: Cooked Xerigium

Started by Azuchisamurai, January 19, 2015, 04:05:35 PM

Previous topic - Next topic

Azuchisamurai

basically i would like to request a mod that enables you to "cook" herbal Medicine on the cooking stove with a simmilar formula as cooking meals
(as a balancing means), somehting like 30 herbal medicine, 20 cotton.

turning the herbal medicine into normal medicine, considering the quantities you cna get herbal medicine im hoping that the above measures will help restrict how fast you can make medicine, but i feel like something else is needed sicne the sheer ease of getting the ingredients somehtign else may be needed

Jeoshua


Azuchisamurai

checked it out but didnt like it, i saw another mod that does something simmilar but i didnt like how easy it made it to get ordinary medkits

Rikiki

Given the current potency of herbal medicine (85 %) and medkit (100 %), I find your "30 for 1" ratio really expensive! :o
A 3 or 5 for 1 would be enough with say 10 cotton in my opinion.

As for your request:
WARNING!!! >:( Perform a backup before any modification of core resources!

  • Open the RimWorld657Win\Mods\Core\Defs\RecipeDefs\Recipes_Meals.xml file.
  • Copy/paste an existing recipe
  • Modify the input ingredients and output products and you're done!

Look on the forum about recipe ingredients/products and ask again if you are still in trouble. :)

elStrages

Quote from: Rikiki on January 21, 2015, 11:15:22 AM
Given the current potency of herbal medicine (85 %) and medkit (100 %), I find your "30 for 1" ratio really expensive! :o
A 3 or 5 for 1 would be enough with say 10 cotton in my opinion.

As for your request:
WARNING!!! >:( Perform a backup before any modification of core resources!


    this is the best thing to do probably
  • Open the RimWorld657Win\Mods\Core\Defs\RecipeDefs\Recipes_Meals.xml file.
  • Copy/paste an existing recipe
  • Modify the input ingredients and output products and you're done!

Look on the forum about recipe ingredients/products and ask again if you are still in trouble. :)

Azuchisamurai

this is how far i've gotten, nto sure if it will work and theres more stuff i need tot take care of, any advice? (im not entirely sure what tos earch, to get the ifno i need

<RecipeDef>
      <defName>CookMedicine</defName>
      <label>cook medicine</label>
      <description>Cooks herbal medicine into a full fledged medkit.</description>
      <jobString>Cooking medicine.</jobString>
      <workSpeedStat>CookSpeed</workSpeedStat>
      <effectWorking>Cook</effectWorking>
    <soundWorking>Recipe_CookMeal</soundWorking>
    <allowMixingIngredients>true</allowMixingIngredients>
    <ingredients>
         <li>
            <filter>
               <categories>
                  <li>herbalMedicine</li>
               </categories>
            </filter>
            <count>5</count>
         </li>
                        <li>
            <filter>
               <categories>
                  <li>cotton</li>
               </categories>
            </filter>
            <count>10</count>
         </li>
      </ingredients>
      <products>
      <Medicine>1</Medicine>
      </products>
      <fixedIngredientFilter>
         <categories>
            <li>FoodRaw</li>
         </categories>
      </fixedIngredientFilter>
      <defaultIngredientFilter>
         <categories>
            <li>FoodRaw</li>
         </categories>
         <exceptedThingDefs>
            <li>Human_Meat</li>
         </exceptedThingDefs>
      </defaultIngredientFilter>
      <skillGains>
      <Cooking>60</Cooking>
      </skillGains>
   </RecipeDef>

Azuchisamurai

im assuming i change it to this

   <fixedIngredientFilter>
         <categories>
            <li>FoodRaw</li>
         </categories>
      </fixedIngredientFilter>
      <defaultIngredientFilter>
         <categories>
            <li>Medicine</li>
         </categories>
         <categories>
            <li>Textiles</li>
         </categories>
      </defaultIngredientFilter>
      <skillGains>
      <Cooking>60</Cooking>
      </skillGains>
   </RecipeDef>

Azuchisamurai

hrmm didnt work
im missing something here

Azuchisamurai

well the recipie itself doesnt give me any errors but thingdefs specifies same thing twice, but the recipie itself doesnt show up in my games

Azuchisamurai

heres my current recipie file
<RecipeDef>
      <defName>CookMedicine</defName>
      <label>cook medicine</label>
      <description>Cooks herbal medicine into a full fledged medkit.</description>
      <jobString>Cooking medicine.</jobString>
      <workSpeedStat>CookSpeed</workSpeedStat>
      <effectWorking>Cook</effectWorking>
    <soundWorking>Recipe_CookMeal</soundWorking>
    <allowMixingIngredients>true</allowMixingIngredients>
    <ingredients>
         <li>
            <filter>
               <thingdefs>
                  <li>herbalMedicine</li>
               </thingdefs>
            </filter>
            <count>5</count>
         </li>
                        <li>
            <filter>
               <thingdefs>
                  <li>cloth</li>
               </thingdefs>
            </filter>
            <count>10</count>
         </li>
      </ingredients>
      <products>
      <Medicine>1</Medicine>
      </products>
      <fixedIngredientFilter>
         <thingdefs>
            <li>Medicine</li>
         </thingdefs>
         <thingdefs>
            <li>Textiles</li>
         </thingdefs>
      </fixedIngredientFilter>
      <defaultIngredientFilter>
         <thingdefs>
            <li>herbalMedicine</li>
         </thingdefs>
         <thingdefs>
            <li>cloth</li>
         </thingdefs>
      </defaultIngredientFilter>
      <skillGains>
      <Cooking>60</Cooking>
      </skillGains>
   </RecipeDef>

Azuchisamurai

okay added the recipie to the stove but i cant start the job

Azuchisamurai

yes redid it and its all fine except for an error syaing that thingdefs specifies the same thign twice, but it still wont let me actually do the job. here is the lines of code


<RecipeDef>
      <defName>CookMedicine</defName>
      <label>cook Medicine</label>
      <description>Cooks a somewhat complex combination of Xerigium and cloth to create Medicine.</description>
      <jobString>Cooking Medicine.</jobString>
      <workSpeedStat>CookSpeed</workSpeedStat>
      <effectWorking>Cook</effectWorking>
    <soundWorking>Recipe_CookMeal</soundWorking>
    <allowMixingIngredients>true</allowMixingIngredients>
    <ingredients>
         <li>
            <filter>
               <thingdefs>
                  <li>HerbalMedicine</li>
               </thingdefs>
            </filter>
            <count>5</count>
         </li>
         <li>
            <filter>
               <thingdefs>
                  <li>Cloth</li>
               </thingdefs>
            </filter>
            <count>10</count>
         </li>
      </ingredients>
      <products>
      <Medicine>1</Medicine>
    </products>
     <fixedIngredientFilter>
         <thingdefs>
            <li>HerbalMedicine</li>
         </thingdefs>
         <thingdefs>
            <li>Cloth</li>
         </thingdefs>
      </fixedIngredientFilter>
      <defaultIngredientFilter>
         <thingdefs>
            <li>HerbalMedicine</li>
         </thingdefs>
         <thingdefs>
            <li>cloth</li>
         </thingdefs>
      </defaultIngredientFilter>
      <skillGains>
      <Cooking>60</Cooking>
      </skillGains>
   </RecipeDef>

Azuchisamurai

found the problem its a work giver problem but im not sure what to do about it

Azuchisamurai

i looked over some wikis and other pages and everything appears to be correct, and sicne im just adding a new recipe to the cooking recipe list it shouldnt require a work giver def so im not sure whats wrong

Azuchisamurai

okay everything appears to be good but still not kicking in the job order im gonna try including the workgiver file as well and see fi that works if not ill just upload it here and hope someone can find the problem