KK Generate Settings

If you liked this item, please rate it up on Steam Workshop page.

Author: Krois0s

Last revision: 24 Aug, 2025 at 13:50 UTC (2)

File size: 123.32 KB

On Steam Workshop

Description:
Feature Description
  • Adjusts the age and gender of randomly generated characters.
  • Affects all generic NPC generation including immigrant candidates, random encounters, and first-time area visits.
  • Does not affect already generated characters.
  • For safety reasons, characters with fixed age and gender are not modified by default, but can be changed through settings.
  • While mainly intended to control NPC generation, some settings may affect player character rerolls during new game creation due to system specifications.


Recommended MOD

・ModOptions https://steamcommunity.com/sharedfiles/filedetails/3381182341
While this MOD can function without ModOptions, you will need to manually edit the cfg files.
Due to the complexity of the settings, we strongly recommend installing ModOptions.
Additionally, most settings can be changed without requiring a game restart.

If you choose to make manual changes, you can configure settings in the following file. By default, no changes are applied:

Elin/BepInEx/config/KKGenerateSettings.cfg


Age Settings

To control generic NPC age generation, first enable this setting (disabled by default):

enableAgeSetting = false

Age settings will be limited to humans only. Since target settings have been added, this setting may be discontinued in the future.

enableHumanOnly = true

This setting has been deprecated. Please remove it from the configuration file if it still exists

ageRange = 0

Set spawn rates for each age group: children, youth, adults, and elderly.
Adjust to total 100. Age ranges for each group follow official standards and vary by race. Long-lived races may have children over 100 years old.

childSpawnRate = 25 youthSpawnRate = 25 grownUpSpawnRate = 25 oldSpawnRate = 25

Age Settings (Force Mode)

The following settings allow configuration beyond normal game parameters. Please use with caution.
Set minimum and maximum age limits.
For example, while Yerles normally generate between 8-50 years, setting forceAgeMax to 40 will limit generation to 8-40 years. Even long-lived races can generate young characters like 10-year-old Apostles.
Ages are first generated according to SpawnRate settings, then recalculated if they exceed limits.

forceAgeMin = 0 forceAgeMax = 999999999

Enable this to apply age settings to fixed-age characters.
For example, allows generation of 10-year-old Loytel:

enableForceAgeMode = false


Gender Settings

To control generic NPC gender generation, first enable this setting (disabled by default):

enableGenderSetting = false

Set the ratio of generated NPC genders. 100 for male-only, 0 for female-only (excludes fixed-gender characters):

maleRatio = 50

Control generation of base game’s rare ??? gender characters. True maintains rare generation, false disables it:

enableUnknown = true

Gender Settings (Force Mode)

The following settings allow configuration beyond normal game parameters. Please use with caution.
Enable this to apply gender settings to fixed-gender characters.
For example, allows generation of female Loytel:

enableForceGenderMode = false


Target Settings

This part gets a bit complex.
Using target settings, you can specify IDs for specific Charas or Races to individually apply age and gender settings.
All Charas and Races that are written will be targeted (OR condition).

targetChara = sister,sister_cat,sister_undead targetRace = norland

However, these settings will be ignored if written in "KKGenerateSettings.cfg".
The base configuration "KKGenerateSettings.cfg" will always target all characters and all races.

Please copy "KKGenerateSettings.cfg" and create a new file named "KKGenerateSettings_[custom name].cfg" in the same folder.

For example, to create a group where medusa, loytel, and succubus are fixed as female:
Create a config file named "KKGenerateSettings_female.cfg" with the following settings:

# Enable gender settings enableGenderSetting = true # Set male generation rate to 0% maleRatio = 0 # Disable unknown gender generation enableUnknown = false # Enable forced gender mode as Loytel is a fixed male character enableForceGenderMode = true # Enter target IDs targetChara = loytel targetRace = succubus,medusa

The targets specified (medusa, loytel, succubus) will be fixed as female according to "KKGenerateSettings_female.cfg",
while other Charas and Races will follow the base settings in "KKGenerateSettings.cfg".
You can create multiple custom settings files (KKGenerateSettings_male.cfg, KKGenerateSettings_sister.cfg, etc.).

The priority order is targetChara > targetRace > KKGenerateSettings.cfg.
For example, if settings are:

KKGenerateSettings_A.cfg targetChara = sister KKGenerateSettings_B.cfg targetRace = roran

Although younger sister(sister) is roran, it will follow KKGenerateSettings_A.cfg settings because targetChara has priority.
Similarly, little girls of roran will follow KKGenerateSettings_B.cfg settings.

Chara IDs and Race IDs can be checked here, but please note these are Elin’s internal data:
https://docs.google.com/spreadsheets/d/1CJqsXFF2FLlpPz710oCpNFYF4W_5yoVn/


Troubleshooting

•This mod is not working properly (Linux or Steam Deck users)

For Linux or Steam Deck users, there have been reported cases where the mod loading mechanism does not function correctly.
Please refer to the official DEVROOM page for countermeasures.

・Settings are not being applied
Please check LogOutput.log:

/Elin/BepInEx/LogOutput.log

Right after game launch, the content of loaded settings files and any errors will be displayed at the bottom:

[Info :KKGenerateSettings] [Base] [GenderSetting:True ???:False Male: 60%] [AgeSetting:True HumanOnly:False Rates: 50%/ 30%/ 20%/ 0%/ 0-999] [Info :KKGenerateSettings] [apostle] [GenderSetting:FORCED ???:False Male: 0%] [AgeSetting:FORCED HumanOnly:False Rates: 100%/ 0%/ 0%/ 0%/ 0- 16] [Target:Race:servant] [Warning:KKGenerateSettings] Config file KKGenerateSettings_loran.cfg contains invalid targets: loran(race). These targets will be ignored.

In this example, the Race "loran" in "KKGenerateSettings_loran.cfg" doesn’t exist in the game, so it’s ignored (correct spelling is roran).

Download
Required items:

Click the title to search on this site.


Mod OptionsSteam Workshop
Revisions:

Old revisions of this mod are available below. Click the link to download.