AllMapValuables
【Host Only MOD】Spawn valuables from all map pools on any map.どのマップでも全マップの貴重品を生成
By REPO_JP
| Last updated | a day ago |
| Total downloads | 534 |
| Total rating | 2 |
| Categories | Mods Valuables Server-side |
| Dependency string | REPO_JP-AllMapValuables-1.0.0 |
| Dependants | 0 other packages depend on this package |
This mod requires the following mods to function
BepInEx-BepInExPack
BepInEx pack for Mono Unity games. Preconfigured and ready to use.
Preferred version: 5.4.2100README
AllMapValuables
AllMapValuables is a host-only mod that allows valuables from all map pools to spawn on any playable map.
Vanilla REPO limits valuable candidates to the current map's ValuablePresets.
This mod merges valuable presets from all supported levels, then uses the current map's valuable spawn volumes to place them.
Because spawning is still performed by the host through the normal networked flow, only the host needs this mod.
Features
- Host-only behavior
- Uses valuable candidates from all supported maps on any playable map
- Keeps vanilla size matching
- Tiny volumes use Tiny valuables
- Small volumes use Small valuables
- Medium volumes use Medium valuables
- Big volumes use Big valuables
- Wide volumes use Wide valuables
- Tall volumes use Tall valuables
- VeryTall volumes use VeryTall valuables
- Adds per-level valuable weight config
- Excludes non-playable menu levels from pool building and config generation
- Splash Screen
- Main Menu
- Lobby Menu
- Optional fallback to vanilla generation on error
How it works
The mod patches ValuableDirector.SetupHost().
Instead of reading only the current map's Level.ValuablePresets, it collects valuable presets from all valid levels in RunManager.instance.levels.
Each level contributes valuable prefabs into a global size-based pool.
The current map still provides the actual ValuableVolume spawn points, so spawn positions remain compatible with the loaded level.
This means the mod changes the valuable candidate source, not the map's physical spawn layout.
Configuration
A General
EnableMod
Enable or disable this mod.
Default: true
EnableVerboseLog
Enable detailed debug logging.
Default: false
FallbackToVanillaOnError
If enabled, the mod falls back to vanilla valuable generation when an internal error occurs.
Default: true
B Level Valuable Weights
This section is created dynamically from valid playable levels.
Each level gets its own weight entry.
Default: 1
Minimum: 1
Maximum: 10
Higher values make valuables originating from that level more likely to be selected.
A weight of 1 means normal selection weight.
A weight of 10 means that level's valuables are much more likely to be chosen compared to levels left at 1.
Note that these config entries appear after the game reaches a state where level data is available and valuable generation runs.
Notes
- This mod does not add new valuables
- This mod does not create new spawn points
- If a map has few or no spawn volumes for a size category, valuables of that size will still be limited by the current map's available volumes
- Menu scenes are excluded because they do not have real valuable generation
For developers
The plugin patches ValuableDirector.SetupHost() and rebuilds the valuable source pool while preserving the vanilla size-based spawn process.
It also keeps the current map's ValuableVolume usage so spawn placement remains level-safe.
Resource selection is based on merged LevelValuables preset lists gathered from valid levels.
Per-level weights are applied when building weighted candidate pools before random selection.
Installation
- Install BepInEx 5 for REPO
- Place
AllMapValuables.dllinto theBepInEx/pluginsfolder - Start the game as host
- Generate a map once to let dynamic level weight config entries appear
- Adjust the config file if needed
Compatibility
Designed for host-only use.
Mods that fully replace ValuableDirector.SetupHost() may conflict.
AllMapValuables
AllMapValuables は、どのマップでも全マップ由来の貴重品を生成できるようにするホスト専用 MOD です。
バニラの REPO では、貴重品候補は現在のマップの ValuablePresets に限定されています。
この MOD は、対応する全レベルの貴重品プリセットを結合し、現在マップ側の貴重品スポーン地点を使って配置します。
生成そのものは通常どおりホストからネットワーク生成されるため、この MOD が必要なのはホストだけです。
機能
- ホストのみ導入で動作
- どのプレイ可能マップでも全対応マップ由来の貴重品候補を使用
- バニラのサイズ一致を維持
- Tiny のスポーン地点には Tiny の貴重品のみ
- Small のスポーン地点には Small の貴重品のみ
- Medium のスポーン地点には Medium の貴重品のみ
- Big のスポーン地点には Big の貴重品のみ
- Wide のスポーン地点には Wide の貴重品のみ
- Tall のスポーン地点には Tall の貴重品のみ
- VeryTall のスポーン地点には VeryTall の貴重品のみ
- マップ別貴重品重み設定を追加
- プール構築と Config 生成から非プレイ用メニューレベルを除外
- Splash Screen
- Main Menu
- Lobby Menu
- エラー時のバニラ生成自動復帰に対応
動作概要
この MOD は ValuableDirector.SetupHost() をパッチします。
現在マップの Level.ValuablePresets だけを読むのではなく、RunManager.instance.levels にある有効な全レベルから貴重品プリセットを収集します。
各レベル由来の貴重品 prefab をサイズ別の共通プールへ統合します。
一方で、実際のスポーン位置は現在ロード中のマップにある ValuableVolume をそのまま使うため、配置位置は現在マップに適合したままです。
つまり、この MOD は貴重品候補の取得元を変更するのであって、マップ側のスポーン地点構造そのものを変更するものではありません。
設定項目
A General
EnableMod
この MOD の有効無効
初期値: true
EnableVerboseLog
詳細デバッグログの有効無効
初期値: false
FallbackToVanillaOnError
内部エラー発生時に、バニラの貴重品生成へ自動復帰するかどうか
初期値: true
B Level Valuable Weights
このセクションは、有効なプレイ用レベルを元に動的生成されます。
各レベルごとに 1 つずつ重み設定が作成されます。
初期値: 1
最小値: 1
最大値: 10
値を大きくすると、そのレベル由来の貴重品が選ばれやすくなります。
1 は通常重みです。
10 は、1 のままの他レベルよりかなり選ばれやすい設定です。
これらの Config 項目は、ゲームがレベル情報を利用可能な状態まで進み、実際に貴重品生成処理が走った後に表示されます。
注意点
- 新しい貴重品を追加する MOD ではありません
- 新しいスポーン地点を追加する MOD ではありません
- 現在マップに特定サイズのスポーン地点が少ない場合、そのサイズの貴重品出現数も現在マップ側のスポーン地点数に制限されます
- メニュー系シーンには本来の貴重品生成が存在しないため除外しています
開発者向け情報
このプラグインは ValuableDirector.SetupHost() をパッチし、バニラのサイズ別スポーン処理を維持したまま、貴重品候補プールだけを再構築します。
また、現在マップの ValuableVolume 利用を維持するため、スポーン位置の安全性も保ちやすい構成です。
リソース選択は、有効レベルから収集した LevelValuables の統合リストを元に行われます。
レベル別重みは、ランダム選択前の重み付き候補プール構築時に適用されます。
導入方法
- REPO に BepInEx 5 を導入
AllMapValuables.dllをBepInEx/pluginsフォルダへ配置- ホストとしてゲームを開始
- 一度マップ生成を行い、動的なレベル重み Config を生成
- 必要に応じて Config を調整
互換性
ホスト専用動作を前提にしています。
ValuableDirector.SetupHost() を完全に置き換える他 MOD とは競合する可能性があります。