|
|
转自n网:https://www.nexusmods.com/escapefromduckov/mods/17
Loot All with one-click. 一键搜集所有物品。
一键收集战利品
如果你是Steam玩家,可以直接在Steam创意工坊订阅本Mod
If you play on Steam, you can easily subscribe to this mod directly from the Steam Workshop.
如果你在 Steam 上玩,可以直接在 Steam 创意工坊订阅这个模组。
https://steamcommunity.com/sharedfiles/filedetails/?id=3589344509
GitHub: GitHub:
https://github.com/DreamNya/Duckov_OneKeyLoot
--------
安装方式
(无需安装前置Mod,所有依赖项均已集成)
1. 下载本Mod
2. 解压到 Escape from Duckov\Duckov_Data\mods 路径(如果没有mods文件夹则手动新建一个)
3. 确保以下文件存在 Escape from Duckov\Duckov_Data\mods\OneKeyLoot\OneKeyLoot.dll
功能
- 显示 【全部拾取】 按钮
- 新增 【一键收集战利品(按品质)】 按钮组
- 新增 【一键收集战利品(按价值)】 按钮组
- 新增 【一键收集战利品(按价重比)】 按钮组
- 支持 中/英文本地化热切换
- 支持 自定义动态配置热切换:
- 显示/隐藏【全部拾取 / 一键收集战利品】按钮或按钮组
- 自定义一键收集按钮数量
- 自定义一键收集按钮颜色
- 自定义一键收集范围
- 支持 ModConfig(可选)
https://steamcommunity.com/sharedfiles/filedetails/?id=3590674339 目前 ModConfig 的配置文本不支持中英热切换;修改后需重启游戏生效。
本 Mod 的 UI 部分由 ChatGPT-5 协助编写。
按钮逻辑
【全部拾取】
【一键收集战利品(按品质)】
- 有条件拾取,直到背包格满为止:
- 物品已被标记为爱心(收藏)
- 物品品质 ≥ 按钮显示的最低品质阈值
【一键收集战利品(按价值)】
- 有条件拾取,直到背包格满为止:
- 物品已被标记为爱心(收藏)
- 物品在商店的总出售价 ≥ 按钮显示的最低价格阈值
【一键收集战利品(按价重比)】
- 有条件拾取,直到背包格满为止:
- 物品已被标记为爱心(收藏)
- 物品在商店的总出售价/物品总重量 ≥ 按钮显示的最低价重比阈值
使用方法
- 在创意工坊页面订阅本 Mod。
- 进入游戏 → 打开 Mod 菜单 → 勾选 One-Key Loot。
- 如果安装了 ModConfig:请同时勾选 ModConfig,并将其排序在 One-Key Loot 上方。
- 重启一次游戏,确保配置正常载入。
- 进入游戏 → 读取存档 → 进入地图。
- 打开任意战利品箱,可看到默认的 3 组按钮,按需点击使用。
自定义配置
更新后第一次使用,请先按【使用方法】完整运行一遍以正确生成/加载配置。
使用【ModConfig】(推荐,支持热切换)
- 进入游戏并读取存档后,打开 ESC → 设置 → Mod Settings,。
未安装【ModConfig】(不支持热切换)
- 关闭游戏,在 Windows 中打开以下文件并编辑保存:
Escape from Duckov\Duckov_Data\StreamingAssets\OneKeyLootConfig.txt
【品质范围】
- 默认: 2,3,4,5
- 代表 4 个按钮:分别为 品质≥2、品质≥3、品质≥4、品质≥5
- 每个数值表示最低品质;游戏内品质范围为 1 ~ 9。
【价值范围】
- 默认: 100,500,1000
- 代表 3 个按钮:分别为 价值≥100、价值≥500、价值≥1000
- 每个数值为商店出售价阈值(通常为物品正常价值的一半)。
【价重比范围】
- 默认: 500,2500,5000
- 代表 3 个按钮:分别为 价重比≥100、价重比≥500、价重比≥5000
- 每个数值为价重比阈值(重量包含物品插槽内所有子物品)。
【按钮组颜色】
- 默认: #4CAF4F,#42A5F5,#BA68C6,#BF7F33
默认:#4CAF4F,#42A5F5,#BA68C6,#BF7F33 - 代表 4 个按钮:颜色分别为 #4CAF4F、#42A5F5、#BA68C6、#BF7F33
- 每个颜色字符串必须为16进制且以#开头,支持不透明度(#4CAF4F等价于#4CAF4FFF)
配置格式规则
- 【品质范围】与【价值范围】与【价重比范围】与【按钮组颜色】各自支持自定义 1~4 个数值
- 使用半角逗号 , 分隔
- 若自定义格式错误,将回退使用默认值
兼容性
- 本 Mod 的品质过滤基于原版官方定义的隐藏品质,与“自定义战利品颜色”类 Mod 不冲突。
- 受编译器限制,目前仅能编译为 .NET Framework 4.8 的 DLL。若系统未安装 .NET Framework 4.8,可能导致 Mod 无法正常运行(存疑)。
- 本 Mod 的 UI 锚定于游戏中原本隐藏的“一键拾取”按钮;若其他 Mod 修改了该处逻辑,可能产生冲突。
TODO 待办事项
- 根据箱内战利品动态显示对应的品质等级按钮
- UI 进一步优化
- 更多可自定义选项
--------
Installation 安装
(No prerequisite mods required; all dependencies are already included)
(无需前置模组;所有依赖功能都已包含)
1. Download this mod 1. 下载这个模组
2. Extract it to the Escape from Duckov\Duckov_Data\mods path (If there isn’t a mods folder, simply create one manually.)
2. 将其解压到 Escape from Duckov\Duckov_Data\mods 路径 (如果没有 mods 文件夹,只需手动创建一个)。
3. Make sure the following file exists Escape from Duckov\Duckov_Data\mods\OneKeyLoot\OneKeyLoot.dll
3. 确保以下文件存在:Escape from Duckov\Duckov_Data\mods\OneKeyLoot\OneKeyLoot.dll
Features 特征
- Show the [Collect All] button
显示 [全部收集] 按钮 - Add a [One-key Loot (by Quality)] button group
添加一个[按质量的单键战利品] 按钮组 - Add a [One-key Loot (by Value)] button group
添加一个[按价值一键战利品]按钮组 - Add a [One-key Loot (by Value per unit Weight)] button group
添加一个[单键战利品(按单位重量价值)]按钮组 - Support hot switching between Chinese/English localization
支持中文/英语本地化之间的热切换 - Support hot switching of custom dynamic configuration:
支持自定义动态配置的热切换 :
- Show/Hide the [Collect All / One-key Loot] button or button groups
显示/隐藏[全部收集 / 一键战利品]按钮或按钮组 - Customize the number of One-key Loot buttons
自定义一键战利品按钮的数量 - Customize the color of One-key Loot buttons
自定义单键战利品按钮的颜色 - Customize the One-key Loot range
自定义一键战利品系列
- Support ModConfig(Optional)
支持 ModConfig(可选)
https://steamcommunity.com/sharedfiles/filedetails/?id=3590674339 Currently, ModConfig's configuration text does not support hot switching between Chinese and English; after modifying it, you must restart the game for changes to take effect.
https://steamcommunity.com/sharedfiles/filedetails/?id=3590674339 目前,ModConfig 的配置文本不支持中英文热切换;修改后必须重启游戏才能生效更改。
The UI portion of this Mod was assisted by ChatGPT-5.
该模组的用户界面部分得到了 ChatGPT-5 的协助。
Button Logic 按钮逻辑
[Collect All] [全部收集]
- Pick up all items in the container with one click, until inventory slots are full.
一键拾取容器内的所有物品,直到背包格满。
[One-key Loot (by Quality)]
[单键战利品(按质量计)
- Conditional pickup, until inventory slots are full:
有条件地拾取,直到背包槽满:
- Item is marked with a Heart (Favorite)
物品标有爱心(收藏 ) - Item Quality is ≥ the minimum Quality threshold shown on the button
物品质量≥按钮上显示的最低质量阈值
[One-key Loot (by Value)]
[按价值计算的单钥匙战利品]
- Conditional pickup, until inventory slots are full:
有条件地拾取,直到背包槽满:
- Item is marked with a Heart (Favorite)
物品标有爱心(收藏 ) - Item's store selling price is ≥ the minimum price threshold shown on the button
商品的店铺销售价格≥按钮上显示的最低价格门槛
[One-key Loot (by Value per unit Weight)]
[单钥匙战利品(按单位重量的价值)]
- Conditional pickup, until inventory slots are full:
有条件地拾取,直到背包槽满:
- Item is marked with a Heart (Favorite)
物品标有爱心(收藏 ) - Item's total store selling price / Item's total weight is ≥ the minimum $/kg threshold shown on the button
商品的总店售价 / 商品总重量≥按钮上显示的最低$/kg 门槛
How to Use 如何使用
- Subscribe to this Mod on the Steam Workshop page.
在 Steam 创意工坊页面订阅这个模组。 - Enter the game → open the Mod menu → check One-key Loot.
进入游戏→打开模组菜单→勾选一键战利品 。 - If you have ModConfig installed: also check ModConfig and place it above One-key Loot in the load order.
如果你安装了 ModConfig:也检查 ModConfig,把它放在加载顺序的 One-key Loot 上方。 - Restart the game once to ensure the configuration loads correctly.
重启游戏一次以确保配置正确加载。 - Enter the game → load a save → enter the map.
进入游戏→加载存档→进入地图。 - Open any loot container; you will see the default 3 button groups. Click as needed.
打开任何战利品容器;你会看到默认的3个按钮组。按需点击。
Custom Configuration 自定义配置
After updating, on first use, please follow the steps in [How to Use] end-to-end to correctly generate/load the configuration.
更新后,首次使用时请按照[如何使用]中的端到端步骤正确生成/加载配置。
Using [ModConfig] (Recommended, supports hot switching)
使用 [ModConfig](推荐,支持热切换)
- After entering the game and loading your save, open ESC → Settings → Mod Settings.
进入游戏并加载存档后,打开 ESC→设置→Mod 设置 。
Without [ModConfig] (hot switching not supported)
没有 [ModConfig](不支持热切换)
- Close the game, then open and edit the following file in Windows, and save it:
关闭游戏,然后在 Windows 中打开并编辑以下文件,保存下来:
Escape from Duckov\Duckov_Data\StreamingAssets\OneKeyLootConfig.txt
[Quality Range] [质量范围]
- Default: 2,3,4,5
默认:2,3,4,5 - Represents 4 buttons: Quality ≥ 2, Quality ≥ 3, Quality ≥ 4, Quality ≥ 5
代表 4 个按钮: 质量≥2, 质量≥3, 质量≥4, 质量≥5 - Each value is a minimum Quality; the in-game Quality range is 1 ~ 9.
每个值都是最低质量;游戏内的品质范围为 1 到 9。
[Value Range] [价值范围]
- Default: 100,500,1000
默认值:100,500,1000 - Represents 3 buttons: Value ≥ 100, Value ≥ 500, Value ≥ 1000
代表 3 个按钮:100≥,500≥,1000≥ - Each value is a store selling price threshold (usually half of an item's normal value).
每个价值是商店销售价格的门槛(通常是物品正常价值的一半)。
[Value/Weight Range] [价值/重量范围]
- Default: 500,2500,5000
违约:500,2500,5000 - Represents 3 buttons: $/kg ≥ 500, $/kg ≥ 2500, $/kg ≥ 5000
代表 3 个按钮:$/kg ≥ 500,$/kg ≥ 2500,$/kg ≥ 5000 - Each value is a Value per unit Weight threshold (the Weight includes all sub-items in the item slots).
每个值都是单位重量的阈值(重量包括物品栏中的所有子物品)。
[Button Group Color] [纽扣组颜色]
- Default: #4CAF4F,#42A5F5,#BA68C6,#BF7F33
默认:#4CAF4F,#42A5F5,#BA68C6,#BF7F33 - Represents 4 buttons: the colors are #4CAF4F, #42A5F5, #BA68C6, #BF7F33
代表 4 个按钮:颜色分别是 #4CAF4F、#42A5F5、#BA68C6、#BF7F33 - Each color string must be in hexadecimal and begin with #. Opacity is supported (#4CAF4F is equivalent to #4CAF4FFF).
每个颜色字符串必须是十六进制,并且以#开头。不透明度支持(#4CAF4F 相当于 #4CAF4FFF)。
Configuration Format Rules
配置格式规则
- [Quality Range], [Value Range], [Value/Weight Range] and [Button Group Color] each support 1~4 custom values
[质量范围]、[值范围]、[值/重量范围]和[按钮组颜色]各自支持 1~4 个自定义值 - Separate values with a half-width comma ,
带有半宽逗号的分隔值 , - If the custom format is invalid, defaults will be used instead
如果自定义格式无效,则会使用默认格式
Compatibility 兼容性
- This Mod's Quality filtering is based on the vanilla game's officially defined hidden Quality and does not conflict with “custom loot color” type Mods.
该模组的质量过滤基于原版游戏官方定义的隐藏品质 ,不与“自定义战利品颜色”类型的模组冲突。 - Litmited by the Complier, currently compiled only as a .NET Framework 4.8 DLL. If .NET Framework 4.8 is not installed on your system, the Mod may fail to run (uncertain).
由 Complier 点燃,目前仅以 .NET Framework 4.8 的 DLL 形式编译。如果你的系统没有安装.NET Framework 4.8,模组可能会无法运行(不确定)。 - This Mod's UI is anchored to the game's originally hidden “one-click pickup” button; if another Mod modifies that logic, conflicts may occur.
该模组的用户界面锚定于游戏最初隐藏的“一键拾取”按钮;如果其他版主修改了该逻辑,可能会引发冲突。
TODO 待办事项
- Dynamically display corresponding Quality-level buttons based on the container's loot
根据容器的战利品动态显示对应的质量级别按钮 - Further UI optimization 进一步优化用户界面
- More customizable options
更多可定制的选项
|
|