mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2026-08-06 05:00:18 +08:00
ModFeatureRegistry is a static class with shared collections accumulating features from all mods. Dependent mods (CheatEnabler, UniverseGenTweaks) each independently called InitAll/StartAll/OnInputUpdateAll/OnUpdateAll/ UninitAll, re-running lifecycle for ALL accumulated features including other mods' — per-frame Update ran 2-3x (breaking CheatEnabler key toggles to net no-ops), Init/Start/Uninit ran 2-3x (double RegisterExporter causing save corruption, double SettingChanged subscriptions, double keybind registration). Fix: - Init now runs eagerly at Discover/Register time (Awake-phase), preserving the original timing that keybind registration depends on (game's UIOptionWindow._OnCreate copies keybinds only after all plugins load) - InitAll removed entirely - StartAll/UninitAll/OnInputUpdateAll/OnUpdateAll made internal so only UXAssist (host, same assembly, no InternalsVisibleTo) can drive them - Start deferred to UXAssist.Start (after all dependents' Awake complete; BepInEx runs all Awakes before any Start) - Per-feature Started idempotency + per-frame Time.frameCount guards as defense-in-depth - Dependent mods reduced to Discover-only in Awake Document the Init/Start timing contract on IModFeature and ModFeatureAttribute so future mods can rely on it.
UniverseGenTweak
Read me in English
Universe Generation Tweak
- Config entries are placed on UXAssist's config panel.
- More options on universe generation
- Can set maximum star count(128 by default, up to 1024) in config file.
- Note: there is performance issue on galaxy view with large amount of stars.
- Larger maximum value in combat settings (except
AggressivenessandMax Density). - Always show Black hole/Neutron star on preview galaxy map while creating new game.
- Can set maximum star count(128 by default, up to 1024) in config file.
- Epic difficulty
- 0.01x resources and 0.25x oils (very hard difficulty has 0.5x oils).
- Same oil mining speed as very hard difficuly
- Birth star
- Rare resources on birth planet
- Solid flat on birth planet
- High luminosity for birth star
中文读我
宇宙生成参数调节
- 设置选项在UXAssist的配置面板上
- 生成宇宙时提供更多选项
+可以在配置文件中设置最大恒星数(默认128, 最多1024)
- 注意: 大量恒星会导致宇宙视图出现性能问题
- 在星系生成时的战斗设置面板上提升了各选项的最大值(
黑雾攻击性和最大黑雾密度除外`) - 在新建游戏时的星系预览图中始终显示黑洞/中子星
- 史诗难度
- 资源0.01倍,油井储量0.25倍(极难是0.5倍)
- 采油速度和极难相同
- 母星系
- 母星有稀有资源
- 母星是纯平的
- 母星系恒星高亮