Copying colonists?

Started by Bodog999, February 27, 2014, 06:37:11 AM

Previous topic - Next topic

Bodog999

Hi,
I want to copy a colonist from one save file to an another save file so I can have the same colonists but in different save files. Does anyone know how to do this?

ItchyFlea

Yep.
Search the save file for the name of the colonist in question, then copy the entire section and move it to the new save.

The section will start with: <thing Class="Pawn"> and end with: </thing>

Here's the entire section for a single colonist from one of my games:
<thing Class="Pawn">
<def>Human</def>
<id>Human350855</id>
<pos>(128, 0, 12)</pos>
<team>Colonist</team>
<kind>Colonist</kind>
<story>
<name.first>Adelynn</name.first>
<name.last>Shelton</name.last>
<name.nick>Addy</name.nick>
<childhood>UrbworldUrchinUntitledShortTheUrbw</childhood>
<adulthood>ColonySettlerSettlerNAMEWas</adulthood>
<skinColor>RGBA(0.894, 0.620, 0.353, 1.000)</skinColor>
<hairColor>RGBA(0.300, 0.200, 0.100, 1.000)</hairColor>
<crownType>Average</crownType>
<headGraphicPath>Things/Pawn/Humanoid/Heads/Female/Female_Average_Pointy</headGraphicPath>
<hairDef>Afro</hairDef>
<traits>
<allTraits>
<li Class="Trait">
<defName>Stubborn</defName>
</li>
<li Class="Trait">
<defName>Sexual deviant</defName>
</li>
</allTraits>
</traits>
</story>
<sex>Female</sex>
<age>36</age>
<apparel>
<wornApparel>
<keys>
<li>OnSkin</li>
<li>Shell</li>
</keys>
<values>
<li Class="Apparel">
<def>Apparel_CollarShirt</def>
<id>Apparel_CollarShirt350856</id>
<health>100</health>
<color>RGBA(0.331, 0.297, 0.380, 1.000)</color>
</li>
<li Class="Apparel">
<def>Apparel_Duster</def>
<id>Apparel_Duster350857</id>
<health>100</health>
<color>RGBA(0.400, 0.300, 0.150, 1.000)</color>
</li>
</values>
</wornApparel>
</apparel>
<equipment>
<primary IsNull="True" />
<secondaries />
</equipment>
<mind Class="AI.Pawn_MindHuman">
<MindState>
<enemyTarget>null</enemyTarget>
<travelDestination>(0, 0, 194)</travelDestination>
</MindState>
<workSettings>
<workPriorities>
<keys>
<li>Firefighter</li>
<li>Cooking</li>
<li>Construction</li>
<li>Repair</li>
<li>Growing</li>
<li>Mining</li>
<li>PlantCutting</li>
<li>Hauling</li>
<li>Cleaning</li>
</keys>
<values>
<li>1</li>
<li>4</li>
<li>4</li>
<li>4</li>
<li>4</li>
<li>4</li>
<li>4</li>
<li>4</li>
<li>4</li>
</values>
</workPriorities>
</workSettings>
</mind>
<jobs>
<curJob>
<jType>FinishFrame</jType>
<targetA>SmoothStone_Frame927463</targetA>
<targetC>(0, 0, 0)</targetC>
<targetQueueA IsNull="True" />
<targetQueueB IsNull="True" />
<placedTargets IsNull="True" />
<numToBring IsNull="True" />
<Bill>null</Bill>
</curJob>
<curJobDriver Class="AI.JobDriver_ConstructFinishFrame">
<curToilIndex>2</curToilIndex>
<ticksLeftThisToil>-69</ticksLeftThisToil>
<curToilCompleteMode>Never</curToilCompleteMode>
</curJobDriver>
</jobs>
<healthTracker>
<pawnHealth>100</pawnHealth>
</healthTracker>
<pather>
<moving>False</moving>
<nextSquare>(128, 0, 12)</nextSquare>
<totalMoveDuration>14</totalMoveDuration>
<pathMode>Touch</pathMode>
</pather>
<inventory>
<container>
<maxStacks>99999</maxStacks>
<maxTotalStackCount>99999</maxTotalStackCount>
<contents>
<li Class="ThingWithComponents">
<def>DoorKey</def>
<id>DoorKey678847</id>
<health>30</health>
</li>
</contents>
</container>
</inventory>
<filth>
<carriedFilth>
<li Class="Filth">
<def>FilthDirt</def>
<id>FilthDirt926226</id>
<thickness>1</thickness>
<sources />
</li>
</carriedFilth>
</filth>
<food>
<pieceFood>
<curLevel>97.13757</curLevel>
</pieceFood>
</food>
<rest>
<pieceRest>
<curLevel>60.52702</curLevel>
</pieceRest>
</rest>
<carryHands>
<container>
<maxStacks>1</maxStacks>
<maxTotalStackCount>75</maxTotalStackCount>
<contents />
</container>
</carryHands>
<psychology>
<loyaltyBase>
<curLevel>32.9921</curLevel>
</loyaltyBase>
<pieceHappiness>
<curLevel>31.24352</curLevel>
</pieceHappiness>
<pieceFear>
<curLevel>32.99209</curLevel>
</pieceFear>
<pieceEnvironment>
<curLevel>40.18182</curLevel>
</pieceEnvironment>
<pieceOpenness>
<curLevel>22</curLevel>
</pieceOpenness>
<thoughtHandler>
<thoughts>
<li Class="Thought">
<def>WitnessedDeath</def>
<age>34900</age>
</li>
<li Class="Thought">
<def>WitnessedDeath</def>
<age>34800</age>
</li>
<li Class="Thought">
<def>WitnessedDeath</def>
<age>34800</age>
</li>
<li Class="Thought">
<def>WitnessedDeath</def>
<age>34600</age>
</li>
<li Class="Thought">
<def>WitnessedDeath</def>
<age>34600</age>
</li>
<li Class="Thought">
<def>AteNutrientPasteMeal</def>
<age>19500</age>
</li>
<li Class="Thought">
<def>SocialTalk</def>
<age>18200</age>
</li>
<li Class="Thought">
<def>SocialTalk</def>
<age>15500</age>
</li>
<li Class="Thought">
<def>SocialTalk</def>
<age>100</age>
</li>
<li Class="Thought">
<def>AteNutrientPasteMeal</def>
<age>700</age>
</li>
<li Class="Thought">
<def>EnvironmentUgly</def>
<age>0</age>
</li>
<li Class="Thought">
<def>EnvironmentSpaciousInterior</def>
<age>0</age>
</li>
<li Class="Thought">
<def>EnvironmentDark</def>
<age>0</age>
</li>
</thoughts>
</thoughtHandler>
</psychology>
<prisoner IsNull="True" />
<ownership>
<ownedBed>Bed709524</ownedBed>
</ownership>
<talker>
<lastTalkTime>1506431</lastTalkTime>
</talker>
<skills>
<skills>
<li Class="SkillRecord">
<def>Construction</def>
<level>10</level>
<xpSinceLastLevel>6370.649</xpSinceLastLevel>
<passion>Minor</passion>
</li>
<li Class="SkillRecord">
<def>Growing</def>
<level>7</level>
<xpSinceLastLevel>7874.813</xpSinceLastLevel>
<passion>Minor</passion>
</li>
<li Class="SkillRecord">
<def>Research</def>
<level>3</level>
<xpSinceLastLevel>1999.728</xpSinceLastLevel>
<passion>Minor</passion>
</li>
<li Class="SkillRecord">
<def>Mining</def>
<level>8</level>
<xpSinceLastLevel>463.8428</xpSinceLastLevel>
<passion>Minor</passion>
</li>
<li Class="SkillRecord">
<def>Shooting</def>
<level>5</level>
<xpSinceLastLevel>1978.236</xpSinceLastLevel>
</li>
<li Class="SkillRecord">
<def>Melee</def>
<level>7</level>
<xpSinceLastLevel>4176.499</xpSinceLastLevel>
<passion>Minor</passion>
</li>
<li Class="SkillRecord">
<def>Social</def>
<level>3</level>
<xpSinceLastLevel>2739.612</xpSinceLastLevel>
</li>
<li Class="SkillRecord">
<def>Cooking</def>
<level>3</level>
<xpSinceLastLevel>1689.112</xpSinceLastLevel>
<passion>Minor</passion>
</li>
<li Class="SkillRecord">
<def>Medicine</def>
<level>3</level>
<xpSinceLastLevel>921.3024</xpSinceLastLevel>
</li>
<li Class="SkillRecord">
<def>Artistic</def>
<level>3</level>
<xpSinceLastLevel>2311.176</xpSinceLastLevel>
</li>
<li Class="SkillRecord">
<def>Crafting</def>
<level>3</level>
<xpSinceLastLevel>3380.992</xpSinceLastLevel>
<passion>Minor</passion>
</li>
</skills>
</skills>
</thing>
All my mods are licensed under a Attribution-NonCommercial-ShareAlike 4.0 International
Ask for permission before using in ModPacks

Click here for a list of the mods I've created

Bodog999

Ok.

I've tried that but now the colonist doesnt show up on the map.

ItchyFlea

Your colonist might be, quite literally, appearing in a wall. I forgot to mention you will mostly likely need to change this tag when copying them over: <pos>(128, 0, 12)</pos>

Easiest way to know where to put them it to get that tag from someone already present in the new colony, and copy their <pos> tag to the colonist you are copying over.
All my mods are licensed under a Attribution-NonCommercial-ShareAlike 4.0 International
Ask for permission before using in ModPacks

Click here for a list of the mods I've created

Bodog999

I've already tried that and I get the random rainbow colours.

ItchyFlea

Where in the save file are you pasting the copied colonist? You cannot add them to the end of the file, they must be contained within the <things> tag.
All my mods are licensed under a Attribution-NonCommercial-ShareAlike 4.0 International
Ask for permission before using in ModPacks

Click here for a list of the mods I've created