RimWorld

RimWorld

190 ratings
Pawnkind Race Diversification (Continued)
3
2
2
2
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.2, 1.3, 1.4, 1.5
File Size
Posted
Updated
620.405 KB
Jul 1, 2022 @ 11:13am
Apr 28 @ 10:23am
5 Change Notes ( view )

Subscribe to download
Pawnkind Race Diversification (Continued)

In 1 collection by Mlie
Mlie's resurrected mods
802 items
Description

Update of Solid E. Wiress mod
https://steamcommunity.com/sharedfiles/filedetails/?id=2460358429

- Will throw some errors if the alien age is not within generation range, should be okay anyway.
- Will throw errors regarding tatoo/beard/hair-styles if the race does not have these defined, there is nothing this mod can really do about it.



[dsc.gg]
[github.com]



Description
Ever played with a bunch of race mods and think "Gee, I really wish I could see this race more often," or "I wish I could start a playthrough on a Rimworld without humans," or even "I really wish I could use race mods, but I don't want a whole bunch of bloat from factions and pawnkinds in my game."
Well, those are the thoughts that explained why I made this mod.
I introduce you to my first mod... Well, technically not my first, but the first I published to the workshop.

What this mod does is simply allow you and other modders to seamlessly fit races into the existing pawnkind defs. Currently, pawnkinds are limited to a race / tag that only allows specifying one race. Sure, you could make an extension def off of that pawnkind, but you would just be creating another pawnkind in a game with dozens of them that specify roles in combat, defense, and trading. It gets confusing really fast when you realize that, in order to make your race show up in the game, you would have to add your pawnkind def as one of the kinds that will show up in the groups / tags of faction defs. And this can get very overwhelming and can hinder the possibilities of raider variety (which I plan to make a mod that does that).

This mod aims to simplify everything about race diversification. You could argue that HAR already has the AlienRace.RaceSettings / def to influence this a little bit... but this is underwhelmingly not enough. You could only influence the weights of slaves, refugees, wanderers, and starting pawns. I wanted to do more than that. I wanted to change what race ANY pawnkind appears as.
Modders can patch the mod extensions that I created to allow their races to appear anywhere, on specific pawnkinds, or in specific factions. You can adjust the weight settings of all races at any time.

Feature breakdown
  • You can change the general (previously known as global), per new world, starting pawns, or local save settings of pawn weights. Per new world weights apply to local save weights every time you create a world. Local save weights are applied to your specific world, or saved game, and loaded in that playthrough's save. General settings fill in the gaps of any "empty" weight.
  • Modders can patch a new mod extension called "PawnkindRaceDiversification.Extensions.RaceDiversificationPool" and adjust generation weight values from there (demonstrated in preview).
  • Modders can also patch a one-branch mod extension to pawnkinds called "PawnkindRaceDiversification.Extensions.RaceRandomizationExcluded" to prevent pawnkinds from being overwritten (Override alien races is set to false to prevent this problem from occuring, but set that to true in your own risk!)
  • Modders can exclude races from being adjusted by setting their race flat weights to negative.
  • Modders can also add backstories to pawns generated through the mod extension (similar way as to how factions and pawnkinds do it - see source code's extension classes for more information).
  • Potential to reduce redundancies with pawnkinds from using this mod, now specialized pawns (e.g. mercenary gunners or drifters) can be added to custom racial factions without being strictly human. This mod does not do that on its own, but it adds the possibility of it for other modders.

Current limitations identified
  • Faction weights and backstories for aliens cannot be manually assigned in settings yet.
  • Weird behavior is to be expected if aliens have their own behavior of spawning their races. Any mod that makes special pawnkinds with specific races intended should have the mod extension that I added. Otherwise, this mod will overwrite ALL alien pawns that try to generate if "Override all alien races" is set to true.
  • Just because this mod reduces the redundancies of extra pawnkinds, DO NOT, UNDER ANY CIRCUMSTANCES, REMOVE PAWNKINDS UNLESS YOU KNOW WHAT YOU'RE DOING - THIS GOES TO MODDERS AS WELL. Your previous saves, using the deleted pawnkinds, will be incompatible because your colonists, world pawns, even faction leaders will be deleted. Unless you want to do this dramatic change and plan to manually replace the pawns in your save, don't do it. This is not this mod's fault, but this seems to be a failsafe that the game does to prevent loading in broken pawns.

Incompatibilities (see more on the github)
  • Mods that also generate pawns with weight generation will probably override this mod. Disable those mod's pawn generation in their settings so that this mod can do its work instead.

Load order
  1. Harmony (required by Hugslib)
  2. Hugslib
  3. Humanoid Alien Races
  4. Pawnkind Race Diversification (this mod)
  5. all your race mods

Credits
Rimworld is owned by Tynan Sylvester and it is thanks to him for this wonderful game.
Android Tiers (Atlas, ARandomKiwi, and APurpleApple) for providing this mod for testing purposes (preview images displays their androids - this mod does NOT redistribute them - If this is still a problem, please let me know).
Anthromorph Races (AveryTheKitty, Erin, and Ravenholme) for also providing this mod so that I can test it (preview images display their races - this mod does NOT redistribute them - if this is still a problem, please let me know).
Brrainz for providing the Harmony library. Without it, this mod wouldn't have been possible.
Void's source from Character Editor for helping me figure out how to patch the pawn generator.
Dubwise's source from Bad Hygiene for helping me identify how to access loaded defs.
Erdelf for providing Humanoid Alien Races.
UnlimitedHugs for providing the Hugslib library.

License
This mod is licensed under the MIT license. You are allowed to use this in your modpacks.


  • See if the the error persists if you just have this mod and its requirements active.
  • If not, try adding your other mods until it happens again.
  • Post your error-log using HugsLib or the standalone Uploader and command Ctrl+F12
  • For best support, please use the Discord-channel for error-reporting.
  • Do not report errors by making a discussion-thread, I get no notification of that.
  • If you have the solution for a problem, please post it to the GitHub repository.
  • Use RimSort[github.com] to sort your mods


75 Comments
(´・ω・`) May 16 @ 10:56am 
Hey there! Creepjoiners seem to not be affected by the diversification - they always show up as regular old humans. Hoping there's an eventual fix for that!
Mlie  [author] May 1 @ 10:04pm 
@Kerican Nothing has been removed from the mod
Kerican May 1 @ 2:53pm 
Thanks for the 1.5 Update ... I thought there was an option that let me exclude the Player faction. ?
Marble Pony Pie Apr 28 @ 10:25am 
Yay, 1.5 update! Thanks :steamhappy:
tatzelwesen Apr 14 @ 1:41pm 
Thank you so much for your continued work on your mods. I know that it's probably a lot of work, and I'll just look forward to when we can play this one again.
Marble Pony Pie Mar 17 @ 8:24am 
@Mlie Great news! Thanks for the hard work. Checked the progress of mod updates and I have to say - you are a legend
Mlie  [author] Mar 17 @ 7:55am 
@Marble Pony Pie I'm updating all my published mods, progress is posted on the Discord-server.
Marble Pony Pie Mar 17 @ 7:52am 
Hi! One of my projects, that I'm developing right now, heavily depends on on this mod to work. May I ask, is there a chance it will be updated to 1.5? Would be great!
Black Jesus Aug 24, 2023 @ 2:43am 
I can confirm that this mod causes widespread issues with pawn generation both from the spawn pawn command in dev tools and those spawned or modified in Character Editor. Testing with Character Editor I boiled my 490 mod list down to just my race mods and their dependencies and then worked backwards until this caused the issue. I think it's due to the generation conflict you mentioned in the description but none of my 30+ race mods have an option to disable pawn generation. I can reproduce the issue and get the logs if you want.
Softis Aug 18, 2023 @ 2:54pm 
IIRC, Prepare Carefully is an extremely invasive, sloppy, and dirty mod that even overwrites basic Vanilla code. It also hasn't been updated since at least as far back as 1.0. (No, that's not a joke.)

Relevant to this mod specifically, Prepare Carefully has never had compatibility with HAR, and it can actually ruin HAR races in your save (if it doesn't break something else first).