Random Genetics Framework
Random Genetics Framework is designed to generate random genes for pawns based on your own conditions. All created through XML.
Related mods
[url=https://steamcommunity.com/sharedfiles/filedetails/?id=3281684503]Random genes[/url]
[url=https://steamcommunity.com/sharedfiles/filedetails/?id=3456372943]Femboy Xenotype[/url]
Things You Can Do
[list]
[*] Have a pawn receive 1 of multiple choices of genes. Or even multiple genes all at random.
[*] Generate a random gene based on various conditions like metabolism, exclusionTag, or if it has an ability or prerequisite.
[*] Generate random hair or skin colors that are all similar by RGB, Hue, Saturation, or Value.
[*] Have a set of genes that will only be used if a certain mod is active.
[*] Adjust weights and fillers so certain selections are more common than others or prevent a selection from even occurring.
[*] After the gene is added to a pawn, it will assign all the genes it was told to and then remove itself.
[/list]
Why use?
[list]
[*] You want a Xenotype to be more diverse in genetics being chosen.
[*] You can't make up which gene you want to add to a Xenotype and want to add both.
[*] You want to add a gene to a xenotype but only when another mod is available, but you want to use another gene if it's not available.
[*] You like diversity and are tired of your Xenoptypes all having the same shade of green hair when there are over 300 different genetic hair colors
[*] You don't want to create an entirely new Xenotype to give a pawn a super special ultra instincts gene.
[/list]
How to use?
Documentation is provided inside the mods documentation. It includes examples for all the different kinds of creations you can make.
Source code is available on github.
By default, the framework does not contain anything. Only some abstract GeneDefs and an empty category you can use to store your random genes.
Compatibility
[list]
[*] I didn't test with every gene, but every gene I've tested hasn't given me an error.
[*] Did a quick check with performance mods and didn't have any issue.
[*] This is compatible with Big and Small - Framework. Any genes that have prerequisites it this will apply to a filter if you use one.
[*] Compatible with HAR. Any genes that can't be added to a race simply won't be added.
[*] Compatible with Cherry Picker. if you remove a gene that is added through this, it will not be added to your pawn.
[/list]
Errors
I'm sure I missed a null check or something somewhere. Let me know in comments what you were trying to do.
If you have an issue with another mod, I need a log as well as a mod list so I can see what's wrong. Getting a log with Hugslib helps a lot!
Links
github [url=https://steamcommunity.com/linkfilter/?u=https%3A%2F%2Fgithub.com%2FHalicade%2FRandomGenetics]https://github.com/Halicade/RandomGenetics[/url]
Thanks
[url=https://steamcommunity.com/sharedfiles/filedetails/?id=3026235711]Goji's Fantasy Race: Merren[/url]
[url=https://steamcommunity.com/sharedfiles/filedetails/?id=3199692643]Det's Xenotypes - Avaloi[/url]
These two mods were my main influence in creating this.
[url=https://steamcommunity.com/workshop/filedetails/?id=2925432336]Big and Small - Framework[/url]
RedMattis gave me permission to use their code for gene better gene prerequisites to ensure compatibility.
Bradson - Showed me how to edit the gene menu so that you actually see what genes are possible in game!