Need ThingDef for Boomalope meat

Started by [FSM]Chefkoch, March 08, 2017, 06:48:23 AM

Previous topic - Next topic

[FSM]Chefkoch

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
The world is great, lets mod it :D

RawCode

this.<d>__2.defName = this.<sourceDef>__1.defName + "_Meat";

[FSM]Chefkoch

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>
The world is great, lets mod it :D

Wishmaster

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.

[FSM]Chefkoch

mmmh well, ok than. :(
Thx so far.

I´ll try another Stuff :)
The world is great, lets mod it :D

Wishmaster

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>

[FSM]Chefkoch

WT... it works  ;D

I treid it before and got LogErrors but now, it works!  :o
Thanks again!
The world is great, lets mod it :D