Ludeon Forums

RimWorld => Mods => Help => Topic started by: SpaceDorf on March 28, 2017, 07:49:39 AM

Title: Mechanoid Grave or Building
Post by: SpaceDorf on March 28, 2017, 07:49:39 AM
Hi,

I would like to create a building, which needs a Specific Mechanoid Body as Ingredient. But can't find the right code for this ..

In lack of this a Sacrophag for Mechanoids would also work ..

My Ingredient Code so far :


  <costList>
      <MechanicalCentipede>1</MechanicalCentipede>
      <Steel>20</Steel>
      <Component>4</Component>
    </costList>



Title: Re: Mechanoid Grave or Building
Post by: CutiesDeathCab on March 28, 2017, 08:00:03 AM
Forgive me if I'm wrong as i'm quite new to modding, however have you tried...?

  <costList>
      <Mechanical_Centipede>1</Mechanical_Centipede>
      <Steel>20</Steel>
      <Component>4</Component>
    </costList>

I read through a bit of the Mechanoid code and I saw it referenced to both what you had and what I have.

Let me know how it goes. :)
Title: Re: Mechanoid Grave or Building
Post by: SpaceDorf on March 28, 2017, 08:10:46 AM
No I haven't .. and if the Typo was all it takes you are forgiven :)
Title: Re: Mechanoid Grave or Building
Post by: CutiesDeathCab on March 28, 2017, 08:27:18 AM
Keep me in the loop.  8)
Title: Re: Mechanoid Grave or Building
Post by: SpaceDorf on March 28, 2017, 09:44:53 AM
Nope the XML was unresolved
Title: Re: Mechanoid Grave or Building
Post by: Leonapp on March 29, 2017, 09:55:22 AM
Check the crafting recipes for "recipies_butcher". It has the code for butchering mechs. You could use the same code for yours I think.

Crafting recipe should be "corpse" instead of "mechaniccentipede". And you should add     
<fixedIngredientFilter>
      <categories>
        <li>CorpsesMechanoid</li>
      </categories>
    </fixedIngredientFilter>


Thats what I think anyway. Test it and tell me/ ask me if it doesn't work.

Some xml for butcher mech:
    <ingredients>
      <li>
        <filter>
          <categories>
            <li>Corpses</li>
          </categories>
        </filter>
        <count>1</count>
      </li>
    </ingredients>
    <specialProducts>
      <li>Butchery</li>
    </specialProducts>
    <fixedIngredientFilter>
      <categories>
        <li>CorpsesMechanoid</li>
      </categories>
    </fixedIngredientFilter>
Title: Re: Mechanoid Grave or Building
Post by: SpaceDorf on March 29, 2017, 11:05:03 AM
Thanks for the suggestion,

This is not going to work, because it is not what I want.

The code supplied ist the ingredients for a Building.
I want to create 2 Buildings using the Specific Corpse of a Mechanoid.
Meaning a different Building for Centipedes and Scythers.

I have not checked out the code for Graves yet, but I assume that checking whats Inside is more than I bargained for at the moment.

At least I got an Idea for a workaround now :)