From 5d9085d8dc9dc50f8872f08c906ab789f4262533 Mon Sep 17 00:00:00 2001 From: Soar Qin Date: Mon, 16 Oct 2023 14:37:32 +0800 Subject: [PATCH] CheatEnabler v2.3.2, UniverseGenTweaks v1.2.0, UXAssist v1.0.1 --- CheatEnabler/README.md | 6 ++++ UXAssist/README.md | 4 ++- UXAssist/UI/MySlider.cs | 3 +- UniverseGenTweaks/README.md | 44 +++++++++++++++-------------- UniverseGenTweaks/UIConfigWindow.cs | 22 +++++++++++---- 5 files changed, 50 insertions(+), 29 deletions(-) diff --git a/CheatEnabler/README.md b/CheatEnabler/README.md index 70d35aa..f4efb9f 100644 --- a/CheatEnabler/README.md +++ b/CheatEnabler/README.md @@ -6,7 +6,10 @@ ## Changlog * 2.3.2 + Birth star options moved to [UniverseGenTweaks](https://dsp.thunderstore.io/package/soarqin/UniverseGenTweaks/) + + Optimize `Quick absorb`, consumes less CPU time and take turns firing to nodes. + `Fast Mining` ensures full output of oil extractors now. + + Fix issue that `Belt signal generator` not working after switched off then on again. + + Fix absorption issue by `Quick absorb` and `Skip bullet period` enabled at the same time. + Crash fix for some options * 2.3.1 + Add UXAssist to dependencies in manifest. @@ -99,7 +102,10 @@ ## 更新日志 * 2.3.2 + 母星系的选项移动到了[UniverseGenTweaks](https://dsp.thunderstore.io/package/soarqin/UniverseGenTweaks/) + + 优化了`快速吸收`,现在消耗更少的CPU,并且会轮流打向各节点 + `高速采集`现在可以保证油井的最大产出 + + 修复了`传送带信号物品生成`在选项关闭后再次启用时不生效的问题 + + 修复了`快速吸收`和`跳过子弹阶段`同时启用时可能导致吸收计算错误的问题 + 修复了一些选项可能导致崩溃的问题 * 2.3.1 + 在manifest中添加UXAssist到依赖 diff --git a/UXAssist/README.md b/UXAssist/README.md index 0a28f13..40f038d 100644 --- a/UXAssist/README.md +++ b/UXAssist/README.md @@ -6,7 +6,8 @@ ## Changlog * 1.0.1 + Fix config button text and tips while returning to title menu. - + Add a patch to fix the bug that warning popup on `Veins Utilization` upgraded to level 8000+ + + Fix that error occurs while returning to title menu, with `Stop ejectors when available nodes are all filled up` enabled. + + Add a patch to fix the bug that warning popup on `Veins Utilization` upgraded to level 8000+. * 1.0.0 + Initial release + Functions moved from [MechaDronesTweaks](https://dsp.thunderstore.io/package/soarqin/MechaDronesTweaks/) and [CheatEnabler](https://dsp.thunderstore.io/package/soarqin/CheatEnabler/) @@ -47,6 +48,7 @@ ## 更新日志 * 1.0.1 + 修复了返回标题界面后设置按钮文本和提示信息不正确的问题 + + 修复了`当可用节点全部造完时停止弹射`选项启用时返回标题界面可能导致崩溃的问题 + 添加了一个补丁,修复了`矿物利用`升级到8000级以上时弹出警告的bug * 1.0.0 + 初始版本 diff --git a/UXAssist/UI/MySlider.cs b/UXAssist/UI/MySlider.cs index 93ca0f9..43a2f77 100644 --- a/UXAssist/UI/MySlider.cs +++ b/UXAssist/UI/MySlider.cs @@ -119,5 +119,4 @@ public class MySlider : MonoBehaviour OnValueChanged?.Invoke(); } } - -} \ No newline at end of file +} diff --git a/UniverseGenTweaks/README.md b/UniverseGenTweaks/README.md index b5fe141..301a7b3 100644 --- a/UniverseGenTweaks/README.md +++ b/UniverseGenTweaks/README.md @@ -16,22 +16,23 @@ + Initial release ## Features -1. 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. -2. Epic difficulty - * 0.01x resources and 0.25x oils (very hard difficulty has 0.5x oils). - * Same oil mining speed as very hard difficuly -3. Birth star - * Rare resources on birth planet - * Solid flat on birth planet - * High luminosity for birth star +* Depends on [UXAssist](https://dsp.thunderstore.io/package/soarqin/UXAssist/), all tabs around with '+' are options for this mod. +* 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. +* 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 ## 更新日志 * 1.2.0 + 现在依赖于[UXAssist](https://dsp.thunderstore.io/package/soarqin/UXAssist/) + 增加`母星系`选项 - + 在UXAssist的配置面板中增加了一个选项卡 + + 在UXAssist的配置面板中增加了一个页签 * 1.1.0 + 增加史诗难度 + `更多选项`和`史诗难度`现在可以单独启用 @@ -40,13 +41,14 @@ + 初始版本 ## 功能 -1. 生成宇宙时提供更多选项 - * 可以在配置文件中设置最大恒星数(默认128, 最多1024) - + 注意: 大量恒星会导致宇宙视图出现性能问题 -2. 史诗难度 - * 资源0.01倍,油井储量0.25倍(极难是0.5倍) - * 采油速度和极难相同 -3. 母星系 - * 母星有稀有资源 - * 母星是纯平的 - * 母星系恒星高亮 +* 依赖于[UXAssist](https://dsp.thunderstore.io/package/soarqin/UXAssist/),所有带有'+'的页签都是本mod的选项 +* 生成宇宙时提供更多选项 + * 可以在配置文件中设置最大恒星数(默认128, 最多1024) + + 注意: 大量恒星会导致宇宙视图出现性能问题 +* 史诗难度 + * 资源0.01倍,油井储量0.25倍(极难是0.5倍) + * 采油速度和极难相同 +* 母星系 + * 母星有稀有资源 + * 母星是纯平的 + * 母星系恒星高亮 diff --git a/UniverseGenTweaks/UIConfigWindow.cs b/UniverseGenTweaks/UIConfigWindow.cs index 80e0457..80fcb74 100644 --- a/UniverseGenTweaks/UIConfigWindow.cs +++ b/UniverseGenTweaks/UIConfigWindow.cs @@ -13,6 +13,7 @@ public static class UIConfigWindow I18N.Add("GalaxyGen", "+UniverseGen+", "+宇宙生成+"); I18N.Add("Enable more settings on UniverseGen", "Enable more settings on UniverseGen", "启用更多宇宙生成设置"); I18N.Add("* Requires game restart to take effect", "* Requires game restart to take effect", "* 需要重启游戏才能生效"); + I18N.Add("Maximum star count", "Maximum star count", "最大恒星数"); I18N.Add("Enable Epic difficulty", "Enable Epic difficulty", "启用史诗难度"); I18N.Add("Resource multiplier", "Resource multiplier", "资源倍率"); I18N.Add("Oil multiplier (relative to Very Hard)", "Oil multiplier (relative to Very Hard)", "石油倍率(相对于非常困难)"); @@ -43,6 +44,17 @@ public static class UIConfigWindow MyWindow.AddText(x, y, tab, "* Requires game restart to take effect", 13); x -= 20f; y += 36f; + x += 10f; + MyWindow.AddText(x, y, tab, "Maximum star count", 16); + x += 20f; + y += 26f; + var sl0 = MySlider.CreateSlider(x, y, tab, (float)MoreSettings.MaxStarCount.Value, 64f, 1024f, "G", 240f); + sl0.OnValueChanged += () => + { + sl0.Value = MoreSettings.MaxStarCount.Value = (Mathf.RoundToInt(sl0.Value) + 7) & ~7; + }; + x -= 30f; + y += 36f; MyCheckBox.CreateCheckBox(x, y, tab, EpicDifficulty.Enabled, "Enable Epic difficulty"); y += 36f; x += 10f; @@ -50,13 +62,13 @@ public static class UIConfigWindow x += 20f; y += 26f; var index = EpicDifficulty.ResourceMultiplierToIndex(EpicDifficulty.ResourceMultiplier.Value); - var sl = MySlider.CreateSlider(x, y, tab, index, 0f, (float)EpicDifficulty.ResourceMultipliersCount() - 1, "G", 240f); - sl.SetLabelText(EpicDifficulty.IndexToResourceMultiplier(Mathf.RoundToInt(sl.Value)).ToString(sl.labelFormat)); - sl.OnValueChanged += () => + var sl1 = MySlider.CreateSlider(x, y, tab, index, 0f, (float)EpicDifficulty.ResourceMultipliersCount() - 1, "G", 240f); + sl1.SetLabelText(EpicDifficulty.IndexToResourceMultiplier(Mathf.RoundToInt(sl1.Value)).ToString(sl1.labelFormat)); + sl1.OnValueChanged += () => { - var val = EpicDifficulty.IndexToResourceMultiplier(Mathf.RoundToInt(sl.Value)); + var val = EpicDifficulty.IndexToResourceMultiplier(Mathf.RoundToInt(sl1.Value)); EpicDifficulty.ResourceMultiplier.Value = val; - sl.SetLabelText(val.ToString(sl.labelFormat)); + sl1.SetLabelText(val.ToString(sl1.labelFormat)); }; x -= 30f; y += 31f;