RimWorld

RimWorld

54 ratings
Psycaster Genes Spawner
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.4, 1.5
File Size
Posted
Updated
1.057 MB
27 Feb, 2024 @ 10:05am
17 Aug, 2024 @ 12:13pm
8 Change Notes ( view )
You need DLC to use this item.

Subscribe to download
Psycaster Genes Spawner

Description
About
This mod utilizes the “SpawnThoseGenes” mod and allows you to configure the spawn rate of psycaster genes by xenotype, with a default chance of approximately 20%.

In addition, any adult pawn that spawns with psycaster genes will also receive a psylink level. The level is determined according to the “Strength Factor” from the Basilicus storyteller.

Please note that this mod is still a work in progress (WIP), so there might be bugs. To adjust the spawn chances, you will need to modify the XML file. It is recommended to create a local copy of the mod to preserve any changes you make during updates.

The mod also includes patches for some gene additions made to modded xenos by the creators of the original genes mods. Without these patches, these xenos would always spawn with a psylink. Exceptions have been made for non-inheritable xenos (such as Hussars, Highmates, Sanguophages, etc.), which have been left with at least one psycaster gene.

Also, wouldn't recommend setting spawn chances for the “Herald of the black hive” gene for hostile pawns since the summoned bugs would always attack them (It’s kinda funny tho).


Already implemented features
  • Adjustable chance of pawn spawning with a psycaster gene using the “SpawnThoseGenes” mod (configurable by xenotype)
  • Any adult pawn spawned with psycaster genes also get a psylink level (level according to the “Strength Factor” from Basilicus storyteller)
  • Children with the genes gain their psylink when they become an adult
  • Possibility of gaining psycaster genes as a xenotype by using different types of neuroformers
  • Paths that do not have a gene can be selected by any pawn with a psylink and will not be automatically assigned to newly generated pawns
  • Pawns that obtain a psylink from the Empire gain the “Archotechist” gene as a xenogene
  • Pawns that obtain a psylink from the anima tree gain the “Wildspeaker” gene as a xenogene

Planned features
  • Spawn chances config on mod settings (instead of changing the XML)
  • Option to make vanilla neuformers/Empire/Anima tree grant a random xenogene instead of the Archotechist/Wildspeaker xenogene
  • Give psylinks to pawns that became Sanguophages through implanters
  • A way of converting the base game Neuroformer to the new different types
  • Optionally make enemy pawns psylink levels scale with raid points
  • Make ajustable in the mod settings the chances for a pawn if a psycaster gene also spawns with a psylink (currently 100%)
  • Optionally make psycaster genes obtained in an artificial way (xenogenes) weaker in comparision with the natural-born endogenes

Supports genes added by
28 Comments
thos grol 29 May @ 6:16pm 
Below error could just be save corruption. Unsure.
thos grol 29 May @ 6:15pm 
Cayin below also had a problem with the needs tracker. I can code, but am unfamiliar with Rimworld modding and coding.
thos grol 29 May @ 6:14pm 
Error while determining if Gibbsen should have Need Chemical_Alcohol: System.NullReferenceException: Object reference not set to an instance of an object
[Ref E4E1702F]
at PsycasterGeneSpawner.Utils.GetPsycasterGene (Verse.Pawn pawn)
at PsycasterGeneSpawner.Patch_LifeStageWorker_HumanlikeAdult.Postfix (Verse.Pawn pawn)
at RimWorld.LifeStageWorker_HumanlikeAdult.Notify_LifeStageStarted (Verse.Pawn pawn, RimWorld.LifeStageDef previousLifeStage)
- POSTFIX PsycasterGeneSpawnerMod: Void PsycasterGeneSpawner.Patch_LifeStageWorker_HumanlikeAdult:Postfix(Pawn pawn)
at Verse.Pawn_AgeTracker.RecalculateLifeStageIndex ()
at Verse.Pawn_AgeTracker.get_CurLifeStageIndex ()
at Verse.Pawn_AgeTracker.get_CurLifeStageRace ()
thos grol 29 May @ 6:14pm 
at Verse.Pawn_AgeTracker.get_CurLifeStage ()
at Verse.Pawn.get_DevelopmentalStage ()
at RimWorld.Pawn_NeedsTracker.ShouldHaveNeed (RimWorld.NeedDef nd)
- PREFIX OskarPotocki.VFECore: Boolean VFEMech.ShouldHaveNeed_Patch:Prefix(Pawn ___pawn, NeedDef nd, Boolean& __result)
- PREFIX OskarPotocki.VanillaPsycastsExpanded: Boolean VanillaPsycastsExpanded.Pawn_NeedsTracker_ShouldHaveNeed_Patch:Prefix(NeedDef nd, Pawn ___pawn)
- POSTFIX VPEPuppeteerMod: Void VPEPuppeteer.Pawn_NeedsTracker_ShouldHaveNeed_Patch:Postfix(Pawn ___pawn, NeedDef nd, Boolean& __result)
at RimWorld.Pawn_NeedsTracker.AddOrRemoveNeedsAsAppropriate ()
- PREFIX OskarPotocki.VFECore: Void VFECore.AddOrRemoveNeedsAsAppropriate_Patch:Prefix()
- POSTFIX OskarPotocki.VFECore: Void VFECore.AddOrRemoveNeedsAsAppropriate_Patch:Postfix()
thos grol 29 May @ 6:14pm 
VFEMech.ShouldHaveNeed_Patch was patched by:

VanillaPsycastsExpanded.Pawn_NeedsTracker_ShouldHaveNeed_Patch was patched by:

VPEPuppeteer.Pawn_NeedsTracker_ShouldHaveNeed_Patch was patched by:

VFECore.AddOrRemoveNeedsAsAppropriate_Patch was patched by:

VFECore.AddOrRemoveNeedsAsAppropriate_Patch was patched by:
Daniil 28 May @ 10:58am 
Is this mod still being updated?
yes.elevens 9 May @ 10:38am 
literally yes
Feurgott 20 Nov, 2024 @ 12:04am 
when are we getting the ability to modify the spawn chances of pawn having psylinks?
Cayin 30 Sep, 2024 @ 9:03am 
KΞNTΛR 2 Sep, 2024 @ 12:02pm 
Got 2 error logs
However, I can't share the log here since it has more than 1000 characters