Ludeon Forums

RimWorld => Mods => Help => Topic started by: [FSM]Chefkoch on March 08, 2017, 06:48:23 AM

Title: Need ThingDef for Boomalope meat
Post by: [FSM]Chefkoch on March 08, 2017, 06:48:23 AM
Hi,

like in the title, i looking for the thingDef of Boomalope meat.
I need it for a little mod i´m working on.

cu
Cheffe
Title: Re: Need ThingDef for Boomalope meat
Post by: RawCode on March 08, 2017, 06:53:35 AM
this.<d>__2.defName = this.<sourceDef>__1.defName + "_Meat";
Title: Re: Need ThingDef for Boomalope meat
Post by: [FSM]Chefkoch on March 08, 2017, 06:59:51 AM
Thanks but i need it for the XML Stuff, not C#  ;)


<ingredients>
      <li>
        <filter>
          <thingDefs>
            <li>PUT NEEDED VALUE IN HERE</li>
          </thingDefs>
        </filter>
        <count>1</count>
      </li>
    </ingredients>
Title: Re: Need ThingDef for Boomalope meat
Post by: Wishmaster on March 08, 2017, 08:25:02 AM
You can't find the meat def itself in XML files, it is dynamically created from pawn defs.
I think the reply of RawCode in raw code was that the defname of meat is pawndefname+"_meat".

so the boomalope meat defname is Boomalope_Meat.
Title: Re: Need ThingDef for Boomalope meat
Post by: [FSM]Chefkoch on March 08, 2017, 12:23:55 PM
mmmh well, ok than. :(
Thx so far.

I´ll try another Stuff :)
Title: Re: Need ThingDef for Boomalope meat
Post by: Wishmaster on March 08, 2017, 12:26:44 PM
Quote from: [FSM]Chefkoch on March 08, 2017, 12:23:55 PM
mmmh well, ok than. :(
Thx so far.

I´ll try another Stuff :)


Why ?

Have you tried...

<ingredients>
      <li>
        <filter>
          <thingDefs>
            <li>Boomalope_Meat</li>
          </thingDefs>
        </filter>
        <count>1</count>
      </li>
    </ingredients>
Title: Re: Need ThingDef for Boomalope meat
Post by: [FSM]Chefkoch on March 08, 2017, 12:48:08 PM
WT... it works  ;D

I treid it before and got LogErrors but now, it works!  :o
Thanks again!