Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

I might be asking for more than I think, but is it possible for me to edit the configs so as to add more constraints and/or weights into the mod. I am curious about adding traits from the game like 'scarred' or 'ugly'. 

Otherwise, if I want the mod to include hair colour in the Race+Gender+Age abort/loosen behavior, how can I do that?

Yes, you could edit the configs, but unless you changed the code of the mod to use those new values it wouldn't change anything. The mod is not dynamic beyond its stated parameters.

Adding more scored traits or changing the mechanics of existing ones is not particularly hard, but it would likely require a small amount of programming knowledge.

(1 edit)

Adding scarred or ugly will also need you to edit your portrait/bodies file names to match.

The file mods/randomportraits/settings.gd has the weightings if you want to change your weightings for personal use.

This is a one line amendment I made to my randomportraits.gd to skip gender if gender returns zero matches. (The indentation is important.) I expect the same can be done for race.

    # Filter on Gender
    filteringPortraits = []
    for p in validPortraits:
        if p.genders.has(person.sex):
            filteringPortraits.append(p) #Add portrait that has required sex
    if portraitSettings.debug: print('Filtered on gender %s, resulted in %d portraits.' % [person.sex, filteringPortraits.size()])
    if !filteringPortraits.empty(): #Leo gender skip if zero entries
        if (filteringPortraits.size() < portraitSettings.minMatch):
            return
        validPortraits.clear()
        validPortraits = filteringPortraits

(Technical note - I seem to remember that this file needed space characters rather than tabs to indent the text. The compiler uses the white space characters to determine which statements belong to the if statements. Experiment a little with the if you have problems.)