RimWorld

RimWorld

37 ratings
Mutated Pawn
2
2
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.4, 1.5, 1.6
File Size
Posted
Updated
1.695 MB
26 Jul, 2023 @ 7:01pm
16 Jul @ 5:51pm
18 Change Notes ( view )
You need DLC to use this item.

Subscribe to download
Mutated Pawn

Description
Allow any pawn a chance to have random genes with the following configurations:
  • 3 different chances to have mutations, each with its own max mutation number and chance.
  • Chance to develop a random mutation for a pawn with a growing carcinoma. Check every 5000 ticks (a day has 60k ticks). Set to 0% to disable this. Thanks Jdalt40 for the suggestion.
  • Chance to develop a random mutation for a pawn with moderate (or worse) toxic buildup. Check every 5000 ticks (a day has 60k ticks). Set to 0% to disable this. Thanks CrackaJack for the suggestion.
  • From 1.6, white list and black list mechanism can be used to control the list of available genes for mutation. I have troubles create a good UX for these options. I have to resort to text field input. Sorry guys! You can find the name for the genes if you use the included options to print them all to dev console log.
  • For white and black listing, wildcard can be used. For example, "hair" means any gene that contains "hair" in its defName or LabelShortAdj. White list overides black list.
  • Mutated genes can be endogene or xenogene.
  • Allow archite genes.
  • The minimum metabolic efficiency allowed, used ONLY by this mod, when deciding a mutation can happen or not. Thank 沙坡村大师 for the suggestion.

Mutated genes have yellow border. Thanks to erdelf for suggestions about using ThingComp.

It can be safely added mid-game and should not conflict with any mods. If added mid-game, it does not affected existing pawns.

I used HugsLib to handle settings windows. Many thanks to UnlimitedHugs (RimworldHugsLib), Jaxe (Interaction Bubble) and cbrintnall (EzOutfit) and for their codes and hard works!

If you like this mod, maybe check out my other one:
Permanent Injury Letter https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2592535960
More Biotech Letters https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2889303626
Billed Deep Drill https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2593197871

It would be great to receive feedback, suggestions or pointers on how to improve. Hope these mods help!

Github: https://github.com/WarBuggy/RimworldMod.MutatedPawn.git

Cheers!

Version history
v0.10
  • Add compatibility for 1.6.
  • Remove HugsLib dependency. All previous mod settings are lost. Please visit the new settings.
  • Black/white listing entries are treated as wildcard. "hair" will include any gene that has "hair" (case-insensitive) in defName or LabelShortAdj.
  • White list will override black list. For example, you can black list anything with "hair", then white list "Hair_InkBlack".
  • Add custom tick time for both growing carcinoma and toxic build up mutation. Default is still 5k. Thanks Arthur GC for the suggestion.
v0.9
  • Add compatibility for 1.5. Happy horror hunting!
  • Add github link.
v0.81
  • Handle null comp properly. Many thanks to Taemaly_UA!
v0.8
  • Do not check for toxic buildup or carcinoma mutation if a pawn is in crytosleep. Thanks fruitcake662!
v0.7
  • Slightly improve the process of choosing random genes.
v0.6
  • Allow mutation for a pawn with moderate (or worse) toxic buildup.
  • Allow white list and black list mechanism.
  • Move carcinoma mutation to the mod comp class.
  • Depends on HugsLib for setting windows.
v0.5
  • Draw yellow border around mutated genes.
  • Fix a bug where the same gene are chosen multiple times for mutation, which leads to fail pawn generation.
v0.4
  • Allow mutation for a pawn with a growing carcinoma.
v0.3
  • Break mutation process into 3 different groups, each with its own max mutation and chance.
v0.2
  • Expand the option to allow flexible minimum allowed metabolic efficiency.
v0.1
  • Initial release.
Popular Discussions View All (2)
12
17 Jul @ 8:16am
HEX: Malinovsky error
wowhvb
2
14 Jul @ 5:58pm
Whitelist and blacklist
estrogenesys
116 Comments
wowhvb  [author] 22 hours ago 
@Monkey Magic When I did the update, HugsLib, a dependency I used to help making the mod option interface, was not updated yet. Since a few people already told me I should stop using HugsLib, I took the opportunity to redo the mod setting GUI and remove HugsLib completely. However, I could not handle it gracefully enough and quite often, the old settings messed up and create errors as such. I am glad it works for you now. Cheers!
Monkey Magic 4 Aug @ 2:44pm 
Hmm, so I typed some gibberish into the "black list" and "white list" boxes, and this was enough to stop the error. Didn't need to adjust anything else, the game launched without issue.

Interestingly enough, when I then deleted what was written in those boxes, and the error did not recur.
wowhvb  [author] 4 Aug @ 12:34pm 
@Monkey Magic Thanks for the feedback! Could you try again, this time, before you start a new game, please go to the mod setting and adjust every value in the setting first? Every option, just put some value in there. You can type anything for black/white list, doesn't have to be proper name. After that, restart Rimworld and see if there is any error. Maybe try a new game also. Thanks!
Monkey Magic 4 Aug @ 6:36am 
Not working for 1.6 apparently. The mod appears to work without issue when loading the game, but when you attempt to generate a world (either with the dev quick setup, or an actual playthrough) it throws up a bunch of red errors

https://pastebin.com/15pxTNNt
wowhvb  [author] 15 Jul @ 6:13pm 
@HEX: Malinovsky, I could not replicate the error (no other mod, all DLC except Odyssey). According to the error messages, the error occurred when handling black/white listing feature. I made a dirty fix by ignoring black/white list if some error happens during this step. You can give it a go and see if you can load a new game. Have a look at debug and let me know how it goes. Thanks!

I move all error messages to a discussion thread to avoid clustered text.
wowhvb  [author] 15 Jul @ 11:49am 
This mod has always been dependant on Harmony. Thanks for the error messages.
414 Malinovsky Too Long 15 Jul @ 10:34am 
I disable all mods and Odyssey DLC. It's still gives errors when creating the world. And, for some reason, it's now depends on Harmony lib (???). Have some warnings after try to activate only your mod
wowhvb  [author] 15 Jul @ 10:08am 
Hmmm... I don't have the latest DLC. Could you try again without any other mod, jist DLC and show me the error messages? Also, try after unsubscribe and subscribe to the mod. Thank heaps!!
414 Malinovsky Too Long 15 Jul @ 2:15am 
Upd.

I turned off all mods, leaving only DLCs. The problem persists.
414 Malinovsky Too Long 15 Jul @ 2:08am 
Thank you for your reply!

I don't have the white and black sheets configured in this mod (partly because I couldn't get into the settings for some reason), but I also didn't configure them in previous versions of this mod (1.4, 1.5).

Regarding mods that interact with genes:
Animal Genes
Better Gene Inheritance
Gene Fabrication
GeneLibrary
Some VRE – Genie, Highmate, Pirates(?), Pigskin
[AV] Ancient Spacer Xenos
Altered Carbon 2: ReSleeved

All of this mods (except Animal Genes) I used for a while (1.4, 1.5) with your mod.