CustomInteriorRate
Customize the probability of generating every interior types on each map.
About this mod Machine translation
CustomInteriorRate v1.0.1
Customize the probability of generating every interior types on each map.
Configuration
In the [General] section, the Enable option is the global switch for the plugin. Setting it to false will completely disable the plugin, effectively uninstalling it.
Each map has a corresponding [Map.] section. The content below pertains to the configuration for that specific map.
- Enable: Indicates whether custom generation probabilities are enabled for this map. By default, it is disabled. If disabled, the probability table will not be modified.
- FactoryRate: Probability of factory generation. If left blank or set to a negative value, it will not change and will retain the original game weight. The normal value range is between 0.0 and 1.0.
- ManorRate: Probability of manor generation. If left blank or set to a negative value, it will not change and will retain the original game weight. The normal value range is between 0.0 and 1.0.
- MineshaftRate: Probability of mineshaft generation. If left blank or set to a negative value, it will not change and will retain the original game weight. The normal value range is between 0.0 and 1.0.
Note:
- After changing the configuration, you need to restart the game.
- If you modify each value for the same map, please ensure that the sum of FactoryRate, ManorRate, and MineshaftRate equals 1.0; otherwise, it may lead to unexpected situations. Generally, it should work normally.
- If a certain interior cannot be generated by default on a map, the plugin will not be able to modify its generation probability.
Configuration Example
Modify the mineshaft probability for the Titan map to 5%.
[Map.Titan]
Enable = true
MineshaftRate = 0.05
- Setting the mineshaft probability for the Titan map is fixed at 5%.
- The weights for other facilities remain at their default values, meaning the combined probability of factories and manors is 95%. Weights(v62): Factory = 300, Manor = 57, Mineshaft = 21,
Therefore, after modification, the factory probability = 300/(300+57)x0.95 = 0.80, and the manor probability = 57/(300+57)x0.95 = 0.15.
Principle
Before generating the map and obtaining the map seed, the target interior type is selected based on a pre-configured probability table. The plugin then continuously generates map seeds and predicts (using the in-game algorithm to calculate the interior type generated by that seed) the interior type until the generated interior type matches the target interior type. In other words, it shoots the arrow first and draws the target afterward.
Therefore, if a certain interior cannot be generated under the default conditions of a map, the plugin cannot modify its generation probability either.
Chinese documentation
Customize the spawn probability of each indoor structure for each map.
Configuration file
After installing the plug-in and launching the game for the first time, you will see a configuration file like the following:
[General]
Enable plugin features.
Setting type: Boolean
Default value: true
Enable = true
[Map.Adamance]
Enable the modification on map Vow.
Setting type: Boolean
Default value: false
Enable = false
Override the rate of Factory interior. If set to -1, keep the original rate.
Setting type: Double
Default value: -1
FactoryRate = -1
Override the rate of Manor interior. If set to -1, keep the original rate.
Setting type: Double
Default value: -1
ManorRate = -1
Override the rate of Mineshaft interior. If set to -1, keep the original rate.
Setting type: Double
Default value: -1
MineshaftRate = -1
[Map.Artifice]...
[Map.Assurance]...
Among them, Enable under [General] is the global switch of the plug-in. When set to false, the plug-in will not take effect at all, which is equivalent to being uninstalled.
Each map has a corresponding [Map.] field. The content below corresponds to the map-related configuration.
- Enable: Whether this map enables custom spawn probability. Not enabled by default. If not enabled, the proba …
Install & use Install: BepInEx plugin
- The archive from playbuff is the mod itself — usually a BepInEx plugin (a .dll or a plugin folder once unzipped).
- Recommended: use a community mod manager (such as r2modman) — pick this game, import the mod, and the manager sets up BepInEx and its dependencies for you.
- Manual route: install the BepInEx loader in the game folder, then drop the unzipped .dll or plugin folder into BepInEx/plugins/.
- Launch the game — the BepInEx console logs every plugin it loads; seeing this mod in the log means it is installed.
Mods with listed dependencies need those installed too, or they will not load. Options are usually changed in-game or in the plugin's config file.
Install these first, or the mod will not work: