RimWorld

RimWorld

MaliBody - Gender Distinctive Body Replacer
Bobdolemite Mar 22, 2020 @ 6:11pm
Directions for Adding Gender Specific Malibody Models to Modded Pawns (Aliens)
Hi All,

I wanted to put up a quick how to guide for making Malibody work with modden pawns (aliens). this process should work for any modded pawn save for those with odd body types and sizes (Doesnt work for Jawa's, Ewok's, Pawns with Fur IE Wookies etc)

Introduction:

This will require some light XML editing, if your comfortable with this great! If not I would be happy to help answer your questions.

I also strongly recommend that you save a backup of any mods that you attempt to change, this way you can go back easily if you break something.

I also recommend saving your current modlist to your local Rimworld mods folder. This way an update from the author will not automatically wipe out the changes we will be making.

*Note* There are separate instructions for two gender (Male and Female) alien races and one gender alien races. instructions for Monogender races is below the main instructions.

How To:

Find the rimworld local folder for the mod you want to add Malibody textures to (example: steamapps/common/rimworld/mods/YOURMODNAME)

Navigate to the Def's folder *Note* this may be located in a parent directory based on version IE 1.0, 1.1 etc)

Navigate to the ThingDefs_Races folder and open the XML file labeled with Race (this will usually be something like Race_Alien) *Note* You can use any text editor to open and edit the file including notepad. I suggest Notepad++ or Dreamweaver if you have it.

Inside this file will be lots of text that determine attributes for the modded pawn race. you will be looking for the sections that begins with:

<alienRace>
<generalSettings>
<alienPartGenerator> <----- this is where you will be making changes

To add the Malibody textures to the mod add the following text within the alientPartGenerator container (between the opening <alienPartGenerator> and closing </alienPartGenerator>)

<useGenderedBodies>true</useGenderedBodies>

*NOTE* Some mods already contain this string, if it already exists just make sure the value is set to "true".

Additional Advice:

I usually add this string below "Crowns" and above "Body Types", not sure if this is important. Has worked so far.

Textures:

Most of the modded pawns will not include their own body texture and instead use the Vanila structure. You can tell if this is the case by looking for a folder called "Bodies" inside of the textures folder. If your mod has a Bodies folder you will likely want to copy the Malibody textures into this folder. I do this just in case the mod prioritises the internal Bodies folder over that of Malibody.

And thats it. Save your changes and load up the game. I suggest using something like EDBPrepare Carefully so you can hand pick your pawns and cycle through clothing and body sizes to ensure it all changed correctly.

*Note* Sometimes when you change a body type in EDBPrepare Carefully it will default to the opposite sex. If this occurs just select the gender again and it should update automatically.

Instructions for Adding Malibody Textures for Monogender Alien Pawns (IE Single Gender, Asari etc)

Single gender alien races are much easier to patch. You only need to do the following:

Locate the body texture folder for the alien race mod you want to add malibody textures to

Save a copy of the malibody textures to the texture/body folder(s) (only select the textures for the gender the alien species uses)

Rename the malibody textures so they replace the mods stock textures (Rename the north, south, and east texture models to match the mods stock names, replacing the file when prompted)

Thats all thats technically needed, if you want to you can use paint or another graphics program to edit the color of the models for races like asari that have multiple body texture folders for: light blue, blue, violet etc.

Special thanks to Ultimuh for the monogendered work around!

I hope this helps, let me know if you have any questions about the process. Goodluck!
Last edited by Bobdolemite; Apr 13, 2020 @ 2:04pm
< >
Showing 1-12 of 12 comments
GamerBee Mar 23, 2020 @ 2:26am 
Thanks!!! :)
Ultimuh Apr 10, 2020 @ 7:26pm 
The Asari mod has multiple body folders.
They are basically just various recolors of the vanilla thin and feminine body types.
What do I do in this case?
Last edited by Ultimuh; Apr 10, 2020 @ 7:28pm
Bobdolemite Apr 10, 2020 @ 8:26pm 
I forget the name of the mod, but I had one with multiple body folders / colors. For now I just placed the malibody textures into each of the body folders. I did not test this so I am not sure what the colors will be like in game, though it should work without any errors.

My next step would be to color the malibody textures using paint or photoshop so they match the color in the body folders.

*Note* I am confused as to why some mods have multiple body color's / folders when the game allows you to specify the normal color range for alien species already. In my case I didnt notice any issues with the colors in EDB or in game (even without coloring them to match).

Let me know if that helps.
Ultimuh Apr 10, 2020 @ 8:51pm 
The game throws errors at me as soon as I start the game with the Asari file altered.
And following your instructions, the Asari models are invisible, even the heads.
The body textures were even named slightly differently.
My guess is that some race mods are structured differently.
Last edited by Ultimuh; Apr 10, 2020 @ 8:53pm
Bobdolemite Apr 11, 2020 @ 9:12am 
I guess so, sorry about that. I'll investigate and let you know my findings.

*Note* Did you use Asari of the Rims 1.1 (Xens mod)? Also let me know if you can list the error that was thrown. Im going to see if I can get this working and put some instructions up once finished.
Last edited by Bobdolemite; Apr 11, 2020 @ 9:44am
Bobdolemite Apr 11, 2020 @ 10:15am 
Okay so I did some additional testing and got it working without any errors. Only issue is the body color, since I did not add colored versions to each folder the bodies will be white. You can however use EDB prepare carefully to change the body color to match the head OR you could color the textures themselves to match the Asari bodies.

Let me know what steps you took, I did the following:

(*Note this is basically from the main instructions*)
Added the following text to the Race_Asari Def file ( in the alien parts generator below alien crown types and above alien bodies):

<useGenderedBodies>true</useGenderedBodies>

Added the Malibody textures to the body folders:

Body_blue
Body_green
Body_lightblue
Body_violet

When I start the game I do not get any red errors, however I do get errors when I generate the world in a new game: Could not generate age for Asari etc, this is not related to the changes I made to the bodies and textures. This is related to the mod iteself, same thing happens with Androids (fails to find an age for colonist etc). Let me know if your still running into issues and I can do further research.


*Note* I did not do extensive testing, just spawning a couple Asari in EDB and in game. I have concerns about what happens when they change from one age related stage to another. Should be fine still since they use the same body format only the head changes. Ill let you know if I get around to more testing scenarios.
Last edited by Bobdolemite; Apr 11, 2020 @ 1:14pm
Ultimuh Apr 11, 2020 @ 1:46pm 
Using Paint . net (the paint software I always use) made recoloring the bodies surprisingly easy.
However..
Using the Prepare carefully mod, I tried to generate one of the Asari as a test.
But I keep getting errors and invisible pawns when I do that.
Strange considering that I named the bodies exactly like the original Asari ones.

Edit: When I think about it, I never used the Malibody's HD or SD textures.
Only what I found in the base textures folder.
I doubt that this would be the issue, I'm just mentioning this in case there is some relevance.
Also, yes. I am using the 1.1 version.
And I did follow your instructions, with the <useGenderedBodies>true</useGenderedBodies> just above alien bodies.
Last edited by Ultimuh; Apr 11, 2020 @ 1:52pm
Ultimuh Apr 11, 2020 @ 2:03pm 
I just realized something. Since the Asari are basically a Monogendered species (Even the males are female, yes, you read that correctly.) all I had to do was not including the <useGenderedBodies>true</useGenderedBodies>, and just replace the textures themselves.
And it works! To think that it was that simple. :steamfacepalm:

Edit: The outer lines for the Malibody textures seems slightly mismatched with the Asari heads's though, but I'll manage.
Last edited by Ultimuh; Apr 11, 2020 @ 5:48pm
Ultimuh Apr 11, 2020 @ 2:06pm 
Well, with that out of the way. I need to tackle a different beast (pun well intended) with Malibody.
Beast Man Tribes. I have been looking into that one as well as the Avian Races mod.
They are a bit trickier for me, I have tried and ended up with pink squares.
Unfortunately, I do not have the patience for those at the moment.
Last edited by Ultimuh; Apr 11, 2020 @ 2:07pm
Bobdolemite Apr 11, 2020 @ 2:14pm 
Nice, glad it worked out for you! So frustrating when you cant get a particular race to work hehe. Added your workaround to the main post!
Last edited by Bobdolemite; Apr 11, 2020 @ 4:39pm
Ultimuh Apr 11, 2020 @ 5:35pm 
Here are the recolored Malibody textures for the Asari mod.
https://filebin.net/g18ikwc9uybbpesj
The link will expire within a week or so, please do make some use of it, if you want to.
Feel free to use them for a potential future patch pack, perhaps?
Maybe even eventually fix the strange other lines to better match the heads, at some point.

Edit: The textures are renamed to better fit the Asari mod's file structure, which is probably important to mention somewhere in the main post.
Last edited by Ultimuh; Apr 11, 2020 @ 5:53pm
acidjazz555 Jun 25, 2021 @ 1:42pm 
Quick thing I figured out:

Adding gen.useGenderedBodies = true;
gen.useGenderedHeads = true;

before return gen; in RaceGenerator.cs in the GenerateHybridGenerator method will add Malibody compatibility with Pawnmorpher mod's morph races. Until the Pawnmorpher dev or devs add that in themselves you'll have to do it yourself and rebuild the solution.

Thanks for the great mod!
< >
Showing 1-12 of 12 comments
Per page: 1530 50