CustomInteriorRate
Customize the probability of generating every interior types on each map.
模組介紹 作者原文
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.
中文文檔
自定義每張地圖的每種室內結構的生成概率。
配置文件
安裝插件,初次啓動遊戲後,你會看到像下面這樣的配置文件:
[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]...
其中,[General]下的Enable是插件的全局開關,設爲false後插件完全不生效,約等於被卸載。
每張地圖有一個對應的[Map.]域。下方的內容對應該地圖相關配置。
- Enable:該地圖是否啓用自定義生成概率。默認不啓用。如不啓用,則概率表不發生修改。
- FactoryRate:工廠生成概率。不寫或設爲負值表示不更改,保持遊戲原有權重。正常值範圍在0.0-1.0之間。
- ManorRate:莊園生成概率。不寫或設爲負值表示不更改,保持遊戲原有權重。正常值範圍在0.0-1.0之間。
- MineshaftRate:礦洞生成概率。不寫或設爲負值表示不更改,保持遊戲原有權重。正常值範圍在0.0-1.0之間。
注意:
- 更改配置文件後,需要重啓遊戲才能生效。
- 如果同一地圖的每個值均修改,儘量保證FactoryRate、ManorRate、MineshaftRate三者之和爲1.0,否則有可能引發意外情況。一般情況下應當工作正常。
- 如某個地圖默認情況無法生成某種設施,則插件也無法修改其生成概率。
配置文件實例
修改Titan地圖的礦井概率爲5%
[Map.Titan]
Enable = true
MineshaftRate = 0.05
- Titan地圖的礦井概率固定爲5%
2.
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。
下面這些內容需要先安裝,否則該模組不會生效: