mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2026-11-22 18:19:02 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c4c5f6ba95 |
No files matched your search
@@ -4,7 +4,6 @@
|
||||
## Changlog
|
||||
|
||||
* 2.4.8
|
||||
* Require UXAssist 1.6.3 or later for the shared production API. Older versions are rejected before initialization instead of failing while loading belt-signal features.
|
||||
* `Mecha and Drones/Fleets invincible`: Fix mecha HP and energy shield protection failing when enabled after taking damage, and restore protection for space fleets.
|
||||
* `Finish build immediately`: Fix possible errors when starting a new game. Construction begins after the opening cutscene ends or is skipped.
|
||||
* `Belt signal item generation`:
|
||||
@@ -209,7 +208,6 @@
|
||||
## 更新日志
|
||||
|
||||
* 2.4.8
|
||||
* 需要 UXAssist 1.6.3 或更高版本提供共享生产计算 API。旧版本会在初始化前被拒绝加载,避免加载传送带信号功能时出错。
|
||||
* `机甲和战斗无人机无敌`:修复受伤后启用时机甲耐久度和能量护盾保护可能失效的问题,并恢复太空编队的无敌保护。
|
||||
* `建造秒完成`:修复开始新游戏时可能报错的问题。建造会在开场动画播放结束或跳过后开始。
|
||||
* `传送带信号物品生成`:
|
||||
|
||||
@@ -10,7 +10,7 @@ using UXAssist.Common.ModFeatures;
|
||||
namespace CheatEnabler;
|
||||
|
||||
[BepInPlugin(PluginInfo.PLUGIN_GUID, PluginInfo.PLUGIN_NAME, PluginInfo.PLUGIN_VERSION)]
|
||||
[BepInDependency(UXAssist.PluginInfo.PLUGIN_GUID, "1.6.3")]
|
||||
[BepInDependency(UXAssist.PluginInfo.PLUGIN_GUID)]
|
||||
public class CheatEnabler : BaseUnityPlugin
|
||||
{
|
||||
public new static readonly BepInEx.Logging.ManualLogSource Logger =
|
||||
|
||||
@@ -93,7 +93,6 @@ The item icon selects the output; no hotkey is needed.
|
||||
|
||||
## Notes
|
||||
|
||||
* Requires UXAssist 1.6.3 or later. When upgrading manually, replace the old UXAssist DLL and remove duplicate copies from the BepInEx plugins folder.
|
||||
* Please upgrade `BepInEx` 5.4.21 or later if using with [BlueprintTweaks](https://dsp.thunderstore.io/package/kremnev8/BlueprintTweaks/) to avoid possible conflicts.
|
||||
* You can download [BepInEx here](https://github.com/bepinex/bepinex/releases/latest)(choose x64 edition).
|
||||
* If using with r2modman, you can upgrade `BepInEx` by clicking `Settings` -> `Browse profile folder`, then extract downloaded zip to the folder and overwrite existing files.
|
||||
@@ -199,7 +198,6 @@ The item icon selects the output; no hotkey is needed.
|
||||
|
||||
## 注意事项
|
||||
|
||||
* 需要 UXAssist 1.6.3 或更高版本。手动升级时,请替换旧的 UXAssist DLL,并删除 BepInEx 插件目录中的重复副本。
|
||||
* 如果和[BlueprintTweaks](https://dsp.thunderstore.io/package/kremnev8/BlueprintTweaks/)一起使用,请升级`BepInEx`到5.4.21或更高版本,以避免可能的冲突
|
||||
* 你可以在[这里](https://github.com/bepinex/bepinex/releases/latest)(选择x64版本)下载`BepInEx`
|
||||
* 如果使用r2modman,你可以点击`Settings` -> `Browse profile folder`,然后将下载的zip解压到该文件夹并覆盖现有文件
|
||||
|
||||
@@ -5,6 +5,6 @@
|
||||
"description": "Add various cheat functions while disabling abnormal determinants / 添加一些作弊功能,同时屏蔽异常检测",
|
||||
"dependencies": [
|
||||
"xiaoye97-BepInEx-5.4.17",
|
||||
"soarqin-UXAssist-1.6.3"
|
||||
"soarqin-UXAssist-1.4.0"
|
||||
]
|
||||
}
|
||||
@@ -4,7 +4,7 @@
|
||||
## Changelog
|
||||
|
||||
* 1.5.0
|
||||
* `Storage dustbin`: Destroy splitter input to a storage placed above it, including stacked and proliferated cargo. Enabling dustbin mode also clears cached full-storage state.
|
||||
* `Storage dustbin`: Destroy splitter input to a storage placed above it, including stacked and proliferated cargo. Enabling dustbin mode also clears cached full-storage state. Move the checkbox to the title bar to prevent overlap with the English automation input label.
|
||||
* `Tank dustbin`: Fix single tanks blocking liquid input after receiving their first stack, both with and without dustbin mode.
|
||||
* `Belt signal dustbin`: Restore item disposal and startup compatibility with the current game simulation loop after DSP 0.10.33/0.10.34 updates.
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
## 更新日志
|
||||
|
||||
* 1.5.0
|
||||
* `储物仓垃圾桶`:销毁四向分流器送入上方储物仓的物品,包括堆叠和喷涂增产剂的物品;启用垃圾桶时清除已满状态缓存。
|
||||
* `储物仓垃圾桶`:销毁四向分流器送入上方储物仓的物品,包括堆叠和喷涂增产剂的物品;启用垃圾桶时清除已满状态缓存。将复选框移至标题栏,避免与英文自动化输入说明重叠。
|
||||
* `储液罐垃圾桶`:修复单层储液罐装入第一批液体后停止输入的问题,普通储存和垃圾桶模式均可正常工作。
|
||||
* `传送带信号垃圾桶`:适配当前游戏的模拟循环,修复 DSP 0.10.33/0.10.34 更新后的启动报错和物品无法销毁问题。
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@ using System.IO;
|
||||
using System.Reflection.Emit;
|
||||
using HarmonyLib;
|
||||
using NebulaAPI;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Dustbin;
|
||||
|
||||
@@ -106,7 +105,7 @@ public static class StoragePatch
|
||||
[HarmonyPatch(typeof(UIStorageWindow), nameof(UIStorageWindow._OnCreate))]
|
||||
private static void UIStorageWindow__OnCreate_Postfix(UIStorageWindow __instance)
|
||||
{
|
||||
_storageDustbinCheckBox = UI.MyCheckBox.CreateCheckBox(false, __instance.transform, 50f, 50f, Localization.CurrentLanguageLCID == Localization.LCID_ZHCN ? "垃圾桶" : "Dustbin");
|
||||
_storageDustbinCheckBox = UI.MyCheckBox.CreateCheckBox(false, __instance.transform, 220f, 26f, Localization.CurrentLanguageLCID == Localization.LCID_ZHCN ? "垃圾桶" : "Dustbin");
|
||||
var window = __instance;
|
||||
_storageDustbinCheckBox.OnChecked += () =>
|
||||
{
|
||||
@@ -134,10 +133,6 @@ public static class StoragePatch
|
||||
var storagePool = __instance.factoryStorage.storagePool;
|
||||
if (storagePool[storageId].id != storageId) return;
|
||||
_storageDustbinCheckBox.Checked = storagePool[storageId].IsDustbin;
|
||||
if (__instance.transform is RectTransform rectTrans)
|
||||
{
|
||||
_storageDustbinCheckBox.rectTrans.anchoredPosition3D = new Vector3(190, 57 - rectTrans.sizeDelta.y, 0);
|
||||
}
|
||||
}
|
||||
|
||||
/* Adopt fix from starfi5h's NebulaCompatiblilityAssist */
|
||||
@@ -145,8 +140,8 @@ public static class StoragePatch
|
||||
[HarmonyPatch(typeof(UIStorageGrid), nameof(UIStorageGrid.OnStorageSizeChanged))]
|
||||
private static void UIStorageGrid_OnStorageSizeChanged_Postfix()
|
||||
{
|
||||
// Due to storage window is empty when open in client, the size will change after receiving data from host
|
||||
_lastStorageId = 0; // Refresh UI to reposition button on client side
|
||||
// Storage data arrives asynchronously on multiplayer clients.
|
||||
_lastStorageId = 0; // Refresh checkbox state on the client
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user