RimWorld

RimWorld

[OLD B19] Animal Gear
Dylan  [developer] 8 Oct, 2018 @ 12:52pm
Mod Support (Help with creating new gear)
-
< >
Showing 1-5 of 5 comments
Dylan  [developer] 8 Oct, 2018 @ 1:13pm 
@Zerithos - This should be enough:

\Patches\Bodies_Animal_Drake.xml

<?xml version="1.0" encoding="utf-8" ?> <Patch> <Operation Class="PatchOperationSequence"> <success>Always</success> <operations> <li Class="PatchOperationTest"> <xpath>/Defs/BodyDef[defName="DrakeBody"]/corePart/groups|/Defs/BodyDef[defName="DrakeBody"]//li[def="Spine" or def="Stomach" or def="Heart" or def="LeftLung" or def="RightLung" or def="LeftKidney" or def="RightKidney" or def="Liver"]/groups</xpath> <success>Invert</success> </li> <li Class="PatchOperationAdd"> <xpath>/Defs/BodyDef[defName="DrakeBody"]/corePart|/Defs/BodyDef[defName="DrakeBody"]//li[def="Spine" or def="Stomach" or def="Heart" or def="LeftLung" or def="RightLung" or def="LeftKidney" or def="RightKidney" or def="Liver"]</xpath> <value> <groups /> </value> </li> </operations> </Operation> <Operation Class="PatchOperationAdd"> <xpath>/Defs/BodyDef[defName="DrakeBody"]/corePart/groups|/Defs/BodyDef[defName="DrakeBody"]//li[def="Spine" or def="Stomach" or def="Heart" or def="LeftLung" or def="RightLung" or def="LeftKidney" or def="RightKidney" or def="Liver"]/groups</xpath> <value> <li>Torso</li> </value> </Operation> <Operation Class="PatchOperationAdd"> <xpath>/Defs/BodyDef[defName="DrakeBody"]/corePart/groups</xpath> <value> <li>Waist</li> </value> </Operation> <Operation Class="PatchOperationSequence"> <success>Always</success> <operations> <li Class="PatchOperationTest"> <xpath>/Defs/BodyDef[defName="DrakeBody"]//li[def="Neck"]/groups</xpath> <success>Invert</success> </li> <li Class="PatchOperationAdd"> <xpath>/Defs/BodyDef[defName="DrakeBody"]//li[def="Neck"]</xpath> <value> <groups /> </value> </li> </operations> </Operation> <Operation Class="PatchOperationAdd"> <xpath>/Defs/BodyDef[defName="DrakeBody"]//li[def="Neck"]/groups</xpath> <value> <li>Neck</li> </value> </Operation> <Operation Class="PatchOperationAdd"> <xpath>/Defs/BodyDef[defName="DrakeBody"]//li[def="Head"]/groups</xpath> <value> <li>UpperHead</li> <li>FullHead</li> </value> </Operation> <Operation Class="PatchOperationSequence"> <success>Always</success> <operations> <li Class="PatchOperationTest"> <xpath>/Defs/BodyDef[defName="DrakeBody"]//li[def="Skull" or def="Brain"]/groups</xpath> <success>Invert</success> </li> <li Class="PatchOperationAdd"> <xpath>/Defs/BodyDef[defName="DrakeBody"]//li[def="Skull" or def="Brain"]</xpath> <value> <groups /> </value> </li> </operations> </Operation> <Operation Class="PatchOperationAdd"> <xpath>/Defs/BodyDef[defName="DrakeBody"]//li[def="Skull" or def="Brain"]/groups</xpath> <value> <li>UpperHead</li> <li>FullHead</li> </value> </Operation> <Operation Class="PatchOperationSequence"> <success>Always</success> <operations> <li Class="PatchOperationTest"> <xpath>/Defs/BodyDef[defName="DrakeBody"]//li[def="Eye"]/groups</xpath> <success>Invert</success> </li> <li Class="PatchOperationAdd"> <xpath>/Defs/BodyDef[defName="DrakeBody"]//li[def="Eye"]</xpath> <value> <groups /> </value> </li> </operations> </Operation> <Operation Class="PatchOperationAdd"> <xpath>/Defs/BodyDef[defName="DrakeBody"]//li[def="Eye"]/groups</xpath> <value> <li>FullHead</li> <li>Eyes</li> </value> </Operation> <Operation Class="PatchOperationSequence"> <success>Always</success> <operations> <li Class="PatchOperationTest"> <xpath>/Defs/BodyDef[defName="DrakeBody"]//li[def="Ear"]/groups</xpath> <success>Invert</success> </li> <li Class="PatchOperationAdd"> <xpath>/Defs/BodyDef[defName="DrakeBody"]//li[def="Ear"]</xpath> <value> <groups /> </value> </li> </operations> </Operation> <Operation Class="PatchOperationAdd"> <xpath>/Defs/BodyDef[defName="DrakeBody"]//li[def="Ear"]/groups</xpath> <value> <li>FullHead</li> <li>UpperHead</li> </value> </Operation> <Operation Class="PatchOperationSequence"> <success>Always</success> <operations> <li Class="PatchOperationTest"> <xpath>/Defs/BodyDef[defName="DrakeBody"]//li[def="Nose"]/groups</xpath> <success>Invert</success> </li> <li Class="PatchOperationAdd"> <xpath>/Defs/BodyDef[defName="DrakeBody"]//li[def="Nose"]</xpath> <value> <groups /> </value> </li> </operations> </Operation> <Operation Class="PatchOperationAdd"> <xpath>/Defs/BodyDef[defName="DrakeBody"]//li[def="Nose"]/groups</xpath> <value> <li>FullHead</li> </value> </Operation> <Operation Class="PatchOperationAdd"> <xpath>/Defs/BodyDef[defName="DrakeBody"]//li[def="AnimalJaw"]/groups</xpath> <value> <li>FullHead</li> </value> </Operation> <Operation Class="PatchOperationSequence"> <success>Always</success> <operations> <li Class="PatchOperationTest"> <xpath>/Defs/BodyDef[defName="DrakeBody"]//li[customLabel="front left leg"]/groups</xpath> <success>Invert</success> </li> <li Class="PatchOperationAdd"> <xpath>/Defs/BodyDef[defName="DrakeBody"]//li[customLabel="front left leg"]</xpath> <value> <groups /> </value> </li> </operations> </Operation> <Operation Class="PatchOperationAdd"> <xpath>/Defs/BodyDef[defName="DrakeBody"]//li[customLabel="front left leg"]/groups</xpath> <value> <li>Legs</li> <li>FrontLeftLeg</li> </value> </Operation> <Operation Class="PatchOperationSequence"> <success>Always</success> <operations> <li Class="PatchOperationTest"> <xpath>/Defs/BodyDef[defName="DrakeBody"]//li[customLabel="front right leg"]/groups</xpath> <success>Invert</success> </li> <li Class="PatchOperationAdd"> <xpath>/Defs/BodyDef[defName="DrakeBody"]//li[customLabel="front right leg"]</xpath> <value> <groups /> </value> </li> </operations> </Operation> <Operation Class="PatchOperationAdd"> <xpath>/Defs/BodyDef[defName="DrakeBody"]//li[customLabel="front right leg"]/groups</xpath> <value> <li>Legs</li> <li>FrontRightLeg</li> </value> </Operation> <Operation Class="PatchOperationAdd"> <xpath>/Defs/BodyDef[defName="DrakeBody"]//li[customLabel="front right leg" or customLabel="front left leg"]/groups</xpath> <value> <li>Legs</li> </value> </Operation> <Operation Class="PatchOperationSequence"> <success>Always</success> <operations> <li Class="PatchOperationTest"> <xpath>/Defs/BodyDef[defName="DrakeBody"]//li[customLabel="rear right leg" or customLabel="rear left leg"]/groups</xpath> <success>Invert</success> </li> <li Class="PatchOperationAdd"> <xpath>/Defs/BodyDef[defName="DrakeBody"]//li[customLabel="rear right leg" or customLabel="rear left leg"]</xpath> <value> <groups /> </value> </li> </operations> </Operation> <Operation Class="PatchOperationAdd"> <xpath>/Defs/BodyDef[defName="DrakeBody"]//li[customLabel="rear right leg" or customLabel="rear left leg"]/groups</xpath> <value> <li>Legs</li> </value> </Operation> </Patch>

you should also change the 'About\Preview.png' in your mod
Last edited by Dylan; 8 Oct, 2018 @ 1:15pm
Dylan  [developer] 8 Oct, 2018 @ 1:22pm 
maybe you have to add something for the tail too
Dylan  [developer] 8 Oct, 2018 @ 2:06pm 
I would recommend these tags with that (+Maybe the tail or have it just also in the Torso group through a patch or something):

<li>Torso</li>
<li>Neck</li>
<li>UpperHead</li>
<li>Legs</li>
Zeri 8 Oct, 2018 @ 4:41pm 
Thanks a bunch. Mod mostly works now, fiddling with more adjustments atm.
Dylan  [developer] 9 Oct, 2018 @ 1:31pm 
No problem ^^ I am glad to see some more people actually creating some mods with the GearMod :D - Your armor definately looks better than most of my basic stuff here that I created ^^

People are always asking for a mod that adds stuff for the dinosaur mod for example [If you are done with the Drake ;) ]

(Btw. I just saw you friend-request, but I guess that was from before(?) I try to keep the Steam-friends to a minimum, but there is a good discord-channel for Rimworld with a modding section in which you can register when you created a mod [If you need more/live infos we could chat there too])

edit: And thanks for the shoutout on you mod-site :D
Last edited by Dylan; 9 Oct, 2018 @ 1:32pm
< >
Showing 1-5 of 5 comments
Per page: 1530 50