I've been lost in time

Started by CyberTao, March 15, 2017, 04:02:33 PM

Previous topic - Next topic

CyberTao

I used to play back in like... jeez alpha 10 I believe. Decided to give it another go with all the new features, but I wanted to updated my "mod" that I use.

Problem is, files were moved around and despite a good searching, I cant seem to pin down all the required files I need.
Anyhow, would anyone be kind enough to point me at the files I need to edit the Body structure for a pawn/humanoid? I want to reorganise the body's tree a little and add a few parts to a organ.

I found;
Bodies_humanlike
BodyPartsGroups
Bodyparts_humanoid
Bodyparts_organs
Bodyparts_general

but it doesnt seem to be taking the new groups (I want to divide the torso into 3), nor can I find the Brain anywheres.

Apfelkuchenbemme

#1
You'll find the brain in BodyParts_General, row38.

I'd guess if you want to split an organ into several parts / add some, you'll need to add a <BodyPartGroupDef> similarily to how the groups are defined in BodyPartsGroups. Then you'll have to assign these groups to the specific organ.

From how I understand the Bodies_Humanlike.xml, the corePart of the human body is the Torso. One part of the torso is the left shoulder, which belongs to the group "Shoulders". The left shoulder is only made of one part, the left arm - which is part of the group "Arms". The left arm however is made from several parts, one of which is the left hand, which belongs to the group "Hands" and is made up of five parts - the left fingers - all of which belong to the groups "Hands" and "Left Hands".

Things get quite confusing at first glance, but I guess in order to split the torso into several pieces, you'll have to make these pieces <parts> of the torso. So for example you don't put the clavicles as "direct parts" of the torso like this:

  <BodyDef>
    <defName>Human</defName>
    <label>human</label>
    <corePart>
      <def>Torso</def>
      <height>Middle</height>
      <depth>Outside</depth>
      <groups>
        <li>Torso</li>
      </groups>
      <parts>
        <li>
          <def>LeftClavicle</def>
          <coverage>0.005</coverage>
          <height>Top</height>
          <depth>Inside</depth>
          <groups>
            <li>Torso</li>
          </groups>
        </li>
        <li>
          <def>RightClavicle</def>
          <coverage>0.005</coverage>
          <height>Top</height>
          <depth>Inside</depth>
          <groups>
            <li>Torso</li>
          </groups>
        </li>


but instead add the bodypart ... I dunno ... "Clavicles" or whatever and put "Clavicles" as direct part of the torso, with the clavicles themselfes as parts of "Clavicles", belonging to the groups "Clavicles" and "Torso".

  <BodyDef>
    <defName>Human</defName>
    <label>human</label>
    <corePart>
      <def>Torso</def>
      <height>Middle</height>
      <depth>Outside</depth>
      <groups>
        <li>Torso</li>
      </groups>
      <parts>
        <li>
          <def>Clavicles</def>
  <coverage>????</coverage>
  <height>Top</height>
  <depth>Inside</depth>
  <groups>
      <li>Torso</li>
  </groups>
  <parts>
    <li>
      <def>LeftClavicle</def>
      <coverage>0.005</coverage>
      <groups>
        <li>Torso</li>
        <li>Clavicles</li>
      </groups>
    </li>
    <li>
      <def>RightClavicle</def>
      <coverage>0.005</coverage>
      <groups>
        <li>Torso</li>
        <li>Clavicles</li>
      </groups>
    </li>
  </parts>
        </li>

CyberTao

I dont really know how to word this response, but you are correct. I had successfully done this in Alpha 10, when I last played, and you are pretty much spot on for how to rearrange and create new groups.

Organ functions (Bodyparts_organs and bodyparts_general), and bodyparts_humanoid all used to be the same file, whereas BodypartGroup was just moved and Bodies.xml was split into specific creatures (so bodies_humanoid for this).

I am almost certain I have tracked down all the files I had used before, but they will not take affect. The kidneys still appear as part of torso instead of abdomen, and the additional brain parts do not appear. I dont even get an error message on the console stating a conflict or error. Thats why I think I am missing something else.

CyberTao

Posting here to say I fixed my problem.
Apparently I forgot there is an important distinction between Def and Defs, and that Defs needs to be a tag in every Xml