[noob question]

Started by Reaper, September 18, 2014, 07:25:43 PM

Previous topic - Next topic

Reaper

how is <jobString>Butchering.</jobString> related to 

    <DefName>TableButcher</DefName>
    <EType>Building_WorkTable</EType>
    <Label>Butcher table</Label>
    <ThingClass>Building_WorkTable</ThingClass>

I am trying to figure out why a certain mod ain't working with another.

Rikiki

Go in your Mods/Core/Defs/WorkGiverDefs folder.
In the BaseWorkGivers.xml file, you will find this code:


<WorkGiverDef>
<defName>DoBillsButcherFlesh</defName>
<giverClass>WorkGiver_DoBill</giverClass>
<workType>Cooking</workType>
<priorityInType>90</priorityInType>
<workTableDef>TableButcher</workTableDef>
<verb>butcher</verb>
<gerund>butchering</gerund>
</WorkGiverDef>


The line <workTableDef>TableButcher</workTableDef> is what make the link with the butcher table.
So this workgiver will tell pawns to perform recipes on TableButcher.

I think it is the link you were looking for. :)

Reaper

<defName>DoBillsButcherFlesh</defName> what is this?

(my problem is that a certain mod is showing its build options but not its recipes.)

Haplo

That is the name of the def. Every defname should be unique, because else the last one loaded will overwrite earlier defs with the same name.

Reaper

Ty but that didn't help much. anyway I figured it out. Nowwhat this you  mention about a load                    order                                                   

mrofa

<jobString>Butchering.</jobString>

This is what is shown when pawn is doing that job, it just a text, for all you care you can place " is punching meat with a cleaver " ther :D
All i do is clutter all around.

Haplo

Quote from: Reaper on September 19, 2014, 05:00:53 PM
Ty but that didn't help much. anyway I figured it out. Nowwhat this you  mention about a load                    order                                                 
The load order of mods is like this:what mod is activated (selected) last in the mod menu will be loaded last. And it will overwrite Defs with same names from previous mods. E.g. The core game has a Door named Door. If your mod also has a door named Door, your door will replace the vanilla door.

Reaper

ty now i will be more careful in doing this.