[A14]Bodytypes Config (v1.0.1)

Started by Mari, August 14, 2016, 05:08:06 AM

Previous topic - Next topic

Mari

Bodytypes Config
Author: Mari
Powered By

Have you ever been annoyed that despite doing hard labor on a daily basis, your colonists are still 300 pounds overweight, found it unrealistic that your female colonists are built like the Incredible Hulk, or tried to make a custom colonist but the backstory you wanted came packaged with a bodytype that completely clashed with the character you had in mind? I know I have. If so, this is the mod for you! Bodytypes Config adds a custom configuration menu to the game that allows you to replace the bodytypes of your colonists globally or on a single backstory basis.


Features:

--Replace the bodytype of all pawns of a specific bodytype-gender combination. For example, you can choose to set all female pawns that would spawn with the Hulk bodytype to spawn instead with the Female bodytype. You can even set all male pawns to spawn with Female bodies or vice versa, if that's what you're into. (Male bodies are a good alternative to Hulk for female pawns with a slightly more muscular build).

--Replace the bodytype of each backstory on an individual basis for male and female pawns. These settings will be applied AFTER the general settings, meaning if you want all Fat pawns to appear as Thin, except for the Midworld Chef, you can do that. Combining the two settings you can get almost full control over the bodytypes of your colonists.

--In-game config menu using CCL's ModConfigurationMenus. This means you can change your settings without a restart and they will save between sessions. You can also manually configure the settings via an xml file in the same folder as your RimWorld saves directory, if for some reason you wanted to do that.


Required:

--The Community Core Library is required for this mod to function. It must be installed and loaded BEFORE this mod.


Known Issues:

--At the moment, certain preset pawns/name in the game colonists (as well as their hardcoded backstories) cannot be altered, and I have no idea how to fix this. You will occasionally see these colonists in your games despite them breaking the bodytype rules you have enabled. If anyone knows where these pawns are defined in the code or how to mod them please let me know and I'll try to patch it.

--Bodytypes cannot be edited on a per pawn basis (for example with Prepare Carefully). Bodytype is hardcoded to backstory, and therefore it may be impossible for this to ever happen.


Compatibility:

--Other backstory mods: Unfortunately at this time they are not compatible for the most part, however they will not break the game, the added backstories will simply not be available. Partially compatible as of 1.0.1, the additional backstories will appear in game and you shouldn't get any errors, however they will NOT have their associated bodytypes replaced at this time. You can edit them manually though in that mod's BackstoryDefs folder. You should load these mods BEFORE this mod and EdB Prepare Carefully.

--Clothing mods: Work fine.

--EdB Prepare Carefully: Works for the most part, and is highly recommended. However, Prepare Carefully lets you access several backstories related to special or name in game pawns. As previously mentioned, these cannot be modified and may break your configured rules. As a rule of thumb, if it isn't in the "Choose a backstory..." menu on the Bodytypes config menu, it cannot be changed.

--Savegames: In most cases should be fully compatible, and will even change your existing colonists. Yay!


Planned updates:

--Fix the issues with special and name in game pawns

--Add compatibility for additional backstory mods which use CCL's BackstoryDefs

--Attempt to hack a way to configure bodytypes for your individual pawns, for integration with EdB (Potentially impossible, but I have a few ideas)

--Possibly add a framework to mod in additional bodytypes beyond the vanilla ones? (Potentially impossible)

--Make the config menu less hideous


Installation and Download:

--Direct download: http://puu.sh/qBuaG/f0f33e98ed.zip
--Steam workshop: http://steamcommunity.com/sharedfiles/filedetails/?id=743764089

--To install, unzip to your mods folder. Make sure CCL is loaded before this mod.


Updates:

Quote--Aug. 14, updated to 1.0.1;
        --Fixed minor bug where some pawns would spawn with Undefined bodytypes.
        --Added partial compatibility with BackstoryDef mods.


License:

--Feel free to do whatever you want with it or use it as a basis for your own mods. I will post the source code whenever I stop being too lazy to make a github page.


For any bugs, questions, comments, or suggestions, please comment below! I am more active on steam than here though so, if you want a quick reply that's the best place.

kaptain_kavern

Looks awesome.
Congratz on the great job

Mari

Quote from: kaptain_kavern on August 14, 2016, 05:39:58 AM
Looks awesome.
Congratz on the great job

Thank you, I made it for myself but I hope people like it :>

Shinzy

Quote from: Mari on August 14, 2016, 07:04:11 AM
Quote from: kaptain_kavern on August 14, 2016, 05:39:58 AM
Looks awesome.
Congratz on the great job

Thank you, I made it for myself but I hope people like it :>

Oohhh that's the best reason for modding :p

MoatBordered

Sweet mod.. even comes with a menu. Didn't even notice I had a female pawn thanks to her hat and that Hulk body type.  :P

I'd recommend uploading the source on github for CCL/C# mods, but it seems you've already mentioned doing so eventually. Really helps aspiring modders get started learning stuff beyond xml if they haven't gotten ILSpy yet.

SpaceDorf

Why did I never see this .. another reason to wait on ccl .. bummer :(
Maxim 1   : Pillage, then burn
Maxim 37 : There is no overkill. There is only open fire and reload.
Rule 34 of Rimworld :There is a mod for that.
Avatar Made by Chickenplucker