Hello,
Some of you might have heard about mod project K9 trying to be re-upped and we are certainly in need of your modding and game knowledge to help us with our endeavor.
The main objective of this mod, for those who don't know what I am talking about, is to have dogs, as herds, who could be tamed by colonists.
They start wild and can be tamed by "Social" pawns. When done, they can take part to some colony's basic works, like hauling stuff, herding around with colonist hunting, and other things I'd be glad to describe in details.
If you wish to know more and possibly participate with us to the mod itself, we are looking for other people's help, with the tech side also (
Project K9 (Third Times the Charm!))
My questions start when you tame the dogs: they have to become newly permanent "guest" pawns (a new faction is allocated to them currently, when tamed) and we would like to be able to make them rely on their specific random Stories (potential Bio, Traits and Skill Sets).
I posted a quick screenshot of what we currently have.
Now, this is what some part of the code that deals with the Bio part when spawning a new Pawn (PawnGenerator.GeneratePawn()):
PawnBioGenerator.GiveAppropriateBioTo(newPawn, faction.def);
...
GiveRandomTraitsTo(newPawn);
newPawn.story.GenerateSkillsFromBackstory();
if (faction.def == FactionDefOf.Colony)
{
newPawn.workSettings.EnableAndInitialize();
}
Then, in BioGenerator, code to select a bio from AllBios:
public static void LoadAllBios()
{
IEnumerator<PawnBio> enumerator = XmlLoader.LoadXmlDataInResourcesFolder<PawnBio>("Backstories/PlayerCreated").GetEnumerator();
...
IEnumerable<PawnBio> source = SolidBioDatabase.allBios.Where<PawnBio>(new Func<PawnBio, bool>(storeyab.<>m__125));
...
storeyab.<>m__125:
for (int i = 0; i < bio.adulthood.spawnCategories.Count; i++)
{
if (bio.adulthood.spawnCategories[i] == this.backstoryCategory)
{
return true;
}
}
Question: where can I edit these resources? Do we have examples of BackStories, possibly also some structure to link with Skill & Trait sets maybe?
PS: I will also post sthg else regarding worksettings, related to ThinkTrees, as we also define specific nodes and JobGivers there for our doggys.
Thanks in advance for your reading and might

[attachment deleted due to age]