PEAK
You are viewing a potentially older version of this package. View Latest Version
Install with App

Details

Date Uploaded
Downloads
25.6K
Size
704KB

ModConfig Enhance

PEAK · enhancements for the ModConfig (PEAKLib.ModConfig) settings page

Version Game Thunderstore downloads No network License GitHub

English | 中文 👈

Ever find yourself scrolling back and forth through a pile of mod settings just to change one value? Digging through cfg comments to figure out what an option does? Want to add multi-language support to your modpack? From now on, this mod lets you organize your modpack's settings far more elegantly!

Mod overview: every installed mod at a glance, sorted into your own groups - √
Keybindings: every mod's keybinds on one page, with free-form controller combos - √
Log window: built in, with filters and one-click export - √
Tree sidebar: search, name sorting, pinning - √
Description panel: mod name, version, option descriptions, defaults and ranges - √
Translation: export untranslated texts in one click, translate freely, any number of languages, no XUnity needed - √
Theme: compatible with TimeTheme's purple night theme - √
…and other small tweaks

✨ At a glance

Settings page: tree sidebar and description panel
Tree sidebar & info panel · Every mod in a tree; descriptions, defaults and ranges at a glance.
Mod list with coloured groups
Mod list · Every installed mod on one page, with the full dependency chain on hover.
Keybindings page with keyboard and controller columns
Keybindings · Every mod's keybinds on one page, keyboard and controller.
Log window
Log window · Live logs with filters, recent-launch history and ZIP export.

⚙️ Settings page enhancements

  • Tree sidebar: the left column lists mods, and the selected mod's sections expand beneath it. Search (option names, mod names, sections, config keys, descriptions), type filters and pinning.
  • Option grid: compact rows with the default value beside each control; duplicate keybinds get a badge that jumps to the other option.
  • Description panel: hover or select an option to see its description, default value and range; select a mod to see its name, version and summary.
  • Themes: blue and purple, switched with the moon button; with TimeTheme installed it can turn purple at night.
  • Go to keybindings in the header opens the keybindings page directly.
🎮 Controller on the settings page
  • A confirms / enters; B steps back level by level (press B twice quickly to leave the page).
  • LB / RB switch mods; the right stick scrolls the options.
  • Sliders: press A, then left / right to adjust. Keybinds: press A, then hold the target key for 1 second to write it.
  • Text boxes open the on-screen keyboard in Steam Big Picture / on Steam Deck.

🧭 Mod overview page

Where: the Mod overview button right below Mod Settings in the game's Settings menu. It has three tabs: Mod list, Keybindings and Mod Settings.

Mod list

  • Every installed mod (disabled ones too): enabled state (read-only), name, version, author and description, plus settings / homepage / folder buttons.
  • Hover a mod for its full dependency chain; badges mark resource packs, nested mods, loose DLLs and duplicate copies.
  • Double-click a name or description to change it. It is saved into the current language file and every page shows it; leave it empty to restore the original.

Groups

  • Your own display groups, up to 3 levels with colours; shared by the mod list, the keybindings page and the settings page sidebar. Groups are for display only and never move any folder.
  • Group management edits names, parent groups, colours and members; right-click a group header to add a subgroup, edit or delete it.
  • With the pencil on, drag to reorder or to drop mods into a group; with it off, dragging just scrolls. Drop a group header on the top or bottom edge of another to place it before / after that group, or on its middle to make it a subgroup.
  • Subgroups are listed before a group's own mods.
  • The first time you open it, groups can be built in one click from your plugins folder layout.
  • After you move, rename or add folders under plugins outside the game, the overview lists the changes on its next rescan and lets you tick which ones to mirror in your groups (rename a group, create groups for new category folders, move mods to their new folder's group). Nothing changes until you apply; "Ignore" is remembered until those folders change again.

Log window

Live BepInEx, game and custom logs; filter by level (several at once) / mod / group, search, and fold repeated errors. Run switches to the logs of the last 3 launches. Export… packs a ZIP: pick BepInEx log, game log or All logs (recommended for bug reports: mod output is in the BepInEx log), optionally with version and mod information (no config values; personal folders in it are replaced by %USERPROFILE% / %USERNAME%; the log text itself is exported as is).

Quick open: press **** (backquote, left of 1) twice quickly to open the log window anywhere — main menu, airport or in a run; do it again to close it. It does nothing while you type in a text field or the chat box. Key, gap (default 0.35 s) and on/off are under 4. Diagnostics` in the settings; the key is also on the Keybindings tab.

🔌 For mod authors: plug into the log window

Your mod can show its own logs in this window (ModConfigEnhance.Diagnostics.MceLogApi, plugin GUID com.aiae.modconfigenhance). Four ways:

  • RegisterFile(guid, id, name, absolutePath): show an existing log file.
  • RegisterSnapshot(guid, id, name, callback): the callback returns a list of MceLogRecord.
  • RegisterTextSnapshot(guid, id, name, textCallback, epochCallback): returns line number → text; a changed epoch means the log was cleared. Friendly to reflection.
  • CreateChannel(guid, id, name): returns a channel; call Write(record) for each entry. The simplest way.
[BepInDependency("com.aiae.modconfigenhance", BepInDependency.DependencyFlags.SoftDependency)]
public class MyMod : BaseUnityPlugin
{
    void Awake()
    {
        if (Chainloader.PluginInfos.ContainsKey("com.aiae.modconfigenhance")) AttachLog();
    }

    [MethodImpl(MethodImplOptions.NoInlining)] // keeps MCE types out of Awake
    void AttachLog()
    {
        var log = MceLogApi.CreateChannel(Info.Metadata.GUID, "main", "My Mod");
        log.Write(new MceLogRecord { Level = MceLogLevel.Info, Message = "Hello from My Mod" });
    }
}
  • Callbacks run on a background thread: never call Unity from them.
  • Each source keeps at most 10,000 records.
  • The namespace and API are the same as In-Game Mod Manager's; if you connect through reflection, one code path works with both.

Keybindings

  • Every mod's keybinds on one page, in keyboard and controller columns; a key is written to that mod's config as soon as it is recorded.
  • Duplicate keys are flagged (including keys the game itself uses); ignore the ones you don't mind.
  • Double-click a cell to write a one-line note for the current language.
  • Controller combos: keybinds that only accept keyboard keys can still get a controller button or combo in the controller column (hold a few buttons, then press the last one; up to 4). Combos work only in game.

⚠️ Heads-up: the buttons you hold first still reach the game — only the last button is blocked.

🎮 Controller on the overview page
  • ↑ / ↓ select (hold the D-pad or left stick to keep moving); LB / RB jump between toolbar buttons.
  • RT + LB / RB move to the tab buttons, then A opens the tab; RT + ← / → page up / down; RT + L3 expand / collapse all.
  • B steps back; press B twice quickly to leave the page.
  • Recording a controller key / combo: hold a few buttons, then press the last one (up to 4); hold B for 1 second to finish.

📦 Dependencies & compatibility

  • Required: BepInEx 5, PEAKLib.Core, PEAKLib.UI, ModConfig 1.8.2
  • Optional: TimeTheme (purple at night)
  • No longer needed: XUnity AutoTranslator — this mod now does all translation itself. An endpoint that an older version emptied is not restored automatically; fill it in again yourself if you want it back.
  • Do not install together with In-Game Mod Manager: it already contains everything this mod does. When both are installed, this mod does not load and only leaves a warning in the log.

📁 Files & languages

Everything this mod keeps lives in one folder and stays on this machine:

BepInEx\config\ModConfigEnhance\
├─ language\              Language files: en-us.txt  zh-cn.txt  zh-tw.txt (add your own)
├─ export\                Texts written by "Export texts"
├─ groups\                One file per group (name, colour, parent, mods)
├─ overview.json          Folded state, Hide disabled
├─ hotkeys.json           Ignored duplicate warnings, folded mods
├─ gamepad-combos.json    Controller combos
├─ folder-layout-player.json  Last seen plugins folder layout (folder-change notice)
└─ cache\                 Log favourites, copies of the last 3 launches' logs, files of renamed modpacks (retired-packs\) (safe to delete)

Adding a language: click Export texts → put each translation to the right of the = → save as UTF-8 named lowercase-code.txt (e.g. de-de.txt) in language\ → click Refresh, then pick it in the language dropdown.

🧰 Toolbar and translation file format
Button What it does
Export texts / Untranslated Exports all / not-yet-translated texts to export\
Selected only Exports only the mods ticked in the sidebar
Show original / translated Switches between original and translated text
Reload texts / Refresh Re-reads the language files / finds new languages
Open folder Opens config\ModConfigEnhance\

After editing a file, click Reload texts. Top-up translations can be saved as de-de_extra.txt and are merged in automatically. A modpack's own language file (de-de_<pack name>.txt) is never written to: names and translations you change in the game go into your own file and win over the pack's, so pack updates keep them. Same format as XUnity dictionaries: key=translation, // comments, and r:"regex"=translation for regex rules.


💬 Feedback: [email protected] / QQ group 1104320838 · GitHub: https://github.com/AiAe-156/Peak-ModConfigEnhance


ModConfig Enhance

PEAK · ModConfig(PEAKLib.ModConfig)设置页增强

Version Game Thunderstore downloads No network License GitHub

English | 中文

你是否经常在一堆模组配置里反复来回滑动,就为了改某一个参数;是否因为想知道某个配置项是做什么的而去config里翻注释;想为整合包添加多语言支持...从现在开始,你可以利用该模组更加优雅的整理你的整合包!

模组概览:已装模组一览,按自己的分组整理 - √
快捷键:所有模组的快捷键集中一页设置,手柄组合键自由组合 - √
日志窗口:内置,可筛选、一键导出 - √
树形模组栏:搜索、名称排序、置顶 - √
说明面板:显示模组名称、版本号、配置项说明、默认值与范围 - √
翻译:一键导出未翻译的文本,自由翻译,支持多种语言,不再依赖 XUnity - √
主题:兼容 TimeTheme 夜间幽紫主题 - √
以及其他小改动...

✨ 功能一览

设置页:树形侧栏与说明面板
树形侧栏与说明面板 · 模组一棵树列完,说明、默认值、范围一眼可见。
模组列表:彩色分组
模组列表 · 已装模组一页看完,悬停显示完整依赖链。
快捷键设置页:键盘与手柄两栏
快捷键设置 · 所有模组的快捷键集中一页,键盘、手柄两栏。
日志窗口
日志窗口 · 实时日志,可筛选、看最近几次启动、导出 ZIP。

⚙️ 设置页增强

  • 树形侧栏:左栏列出模组,选中后展开分区;可搜索(选项名、模组名、分区、键名、说明)、按类型筛选、置顶。
  • 选项格:紧凑行高,控件旁显示默认值;快捷键重复时出现角标,可跳到对方。
  • 说明面板:悬停或选中时显示说明、默认值、范围;选中模组时显示名称、版本与简介。
  • 主题:蓝 / 紫两套,月亮按钮切换;装 TimeTheme 可在夜里自动换紫。
  • 表头「跳转到快捷键设置页」直接进入快捷键设置页。
🎮 设置页手柄操作
  • A 确认 / 进入,B 逐级返回(快速连按两次 B 退页)。
  • LB / RB 切换模组;右摇杆滚动选项。
  • 滑条:按 A 后左右调值;按键绑定:按 A 后按住目标键 1 秒写入。
  • Steam 大屏幕 / Deck 下,输入框弹出屏幕键盘。

🧭 模组概览页

入口:游戏「设置」菜单里「模组设置」正下方的「模组概览」按钮,分「模组列表」「快捷键设置」「模组设置」三个页签。

模组列表

  • 列出所有已安装的模组(含已停用的):启用状态(只读)、名称、版本、作者、简介,以及设置 / 主页 / 文件夹按钮。
  • 悬停显示完整依赖链;角标标出资源包、嵌套模组、散放 DLL 和重复副本。
  • 双击名称或简介即可修改,保存到当前语言文件,各页面同步显示;留空恢复原文。

分组

  • 自己的显示分组,最多 3 层、可配颜色,模组列表、快捷键设置页和设置页侧栏共用。分组只用于显示,不移动任何文件夹。
  • 「分组管理」编辑名称、上级、颜色、成员;右键分组标题可新建子分组、编辑、删除。
  • 打开铅笔后按住拖动,可排序、拖进分组;关着时拖动就是滚动。分组标题拖到另一个分组标题的上缘 / 下缘,排到它前面 / 后面;拖到中间成为它的子分组。
  • 子分组排在本组模组的前面。
  • 第一次打开时,可按 plugins 的文件夹结构一键生成分组。
  • 在游戏外移动、改名或新建 plugins 里的文件夹后,概览下次重新扫描时会列出变动,逐项勾选要同步到分组的改动(分组改名、为新分类文件夹建分组、模组改归新文件夹的分组)。点套用前什么都不改;「忽略」会一直记住,直到这些文件夹再次变动。

日志窗口

实时查看 BepInEx 日志、游戏日志和自定义日志;按等级(可多选)/ 模组 / 分组筛选,可搜索、折叠重复报错。「查看」切到最近 3 次启动的历史日志。「导出……」打包 ZIP:可选 BepInEx 日志、游戏日志或「全部日志」(反馈问题推荐选它:模组的输出在 BepInEx 日志里),可附带版本与模组信息(不含配置值;其中的个人路径换成 %USERPROFILE% / %USERNAME%;日志正文按原文导出)。

快速打开:快速连按两次 `(反引号,数字 1 左边的键),在主菜单、机场、局内都能打开日志窗口,再按两次关闭;在输入框或聊天框里打字时不触发。键位、间隔(默认 0.35 秒)和开关在设置的「4. 诊断」里,键位也可在「快捷键设置」页改。

🔌 给模组作者:接入日志窗口

你的模组可以把自己的日志显示在这个窗口里(ModConfigEnhance.Diagnostics.MceLogApi,插件 GUID com.aiae.modconfigenhance),四种接法:

  • RegisterFile(guid, id, 名称, 绝对路径):显示一个现成的日志文件。
  • RegisterSnapshot(guid, id, 名称, 回调):回调返回 MceLogRecord 列表。
  • RegisterTextSnapshot(guid, id, 名称, 文本回调, 世代回调):返回「行号 → 文本」;世代值变了就当作日志已清空。适合用反射接入。
  • CreateChannel(guid, id, 名称):得到一个通道,每条日志调用 Write(record) 写入。最省事。
[BepInDependency("com.aiae.modconfigenhance", BepInDependency.DependencyFlags.SoftDependency)]
public class MyMod : BaseUnityPlugin
{
    void Awake()
    {
        if (Chainloader.PluginInfos.ContainsKey("com.aiae.modconfigenhance")) AttachLog();
    }

    [MethodImpl(MethodImplOptions.NoInlining)] // 不让 MCE 的类型出现在 Awake 里
    void AttachLog()
    {
        var log = MceLogApi.CreateChannel(Info.Metadata.GUID, "main", "My Mod");
        log.Write(new MceLogRecord { Level = MceLogLevel.Info, Message = "Hello from My Mod" });
    }
}
  • 回调在后台线程执行,不能调用 Unity。
  • 每个来源最多保留 10,000 条。
  • 命名空间和 API 与 In-Game Mod Manager 相同;用反射接入的话,一套代码两边都能用。

快捷键设置

  • 所有模组的快捷键集中一页,键盘 / 手柄两栏,录完立即写入该模组的配置。
  • 重复键会标出来(包括与游戏自身操作相同的键),不在意的可以忽略。
  • 双击格子,可为当前语言写一句短说明。
  • 手柄组合键:只认键盘的快捷键,也能在手柄栏录一个手柄键或组合键(先按住几个键,再按最后一个,最多 4 个)。只在游戏中生效。

⚠️ 注意:先按住的键游戏仍会读到,只有最后一个键被屏蔽。

🎮 概览页手柄操作
  • ↑ / ↓ 选择(按住十字键或左摇杆可连续移动);LB / RB 在工具行按钮间跳。
  • RT + LB / RB 移到页签按钮,再按 A 切换;RT + ← / → 翻页;RT + L3 全部展开 / 收起。
  • B 逐级返回,快速连按两次 B 离开本页。
  • 录制手柄键 / 组合键:先按住几个键,再按最后一个(最多 4 个);长按 B 1 秒结束录制。

📦 依赖与兼容

  • 必须:BepInEx 5、PEAKLib.Core、PEAKLib.UI、ModConfig 1.8.2
  • 可选:TimeTheme(夜里自动换紫)
  • 不再需要 XUnity AutoTranslator:翻译已由本模组自己完成。旧版清空过的 XUnity 机翻端点不会自动恢复,需要的话请自行填回。
  • 不要与 In-Game Mod Manager 同时安装:它已包含本模组的全部功能。同时安装时本模组不加载,只在日志里留一条警告。

📁 文件与语言

本模组的文件都在一个文件夹里,只存在本机:

BepInEx\config\ModConfigEnhance\
├─ language\              语言文件:en-us.txt  zh-cn.txt  zh-tw.txt(可自己添加)
├─ export\                「导出翻译」导出的文本
├─ groups\                每个分组一个文件(名称、颜色、上级、组内模组)
├─ overview.json          折叠状态、隐藏已停用
├─ hotkeys.json           忽略的重复提示、收起的模组
├─ gamepad-combos.json    手柄组合键
├─ folder-layout-player.json  上次看到的 plugins 文件夹布局(文件夹变动提醒用)
└─ cache\                 日志收藏、最近 3 次启动的日志副本、改名整合包的旧文件 retired-packs\(可随时删除)

添加语言:点「导出翻译」→ 把译文填在 = 右边 → 以 UTF-8 存成 小写语言码.txt(如 de-de.txt)放进 language\ → 点「刷新」后在语言下拉里选中。

🧰 工具行与翻译文件格式
按钮 作用
导出翻译 / 补漏翻 导出全部 / 尚未翻译的文本到 export\
仅导出已选 只导出侧栏勾选的模组
显示原文 / 译文 在原文和译文之间切换
重载翻译 / 刷新 重新读取语言文件 / 发现新语言
打开目录 打开 config\ModConfigEnhance\

改完文件点「重载翻译」生效;补翻的内容可另存为 de-de_补充.txt,会自动并入。整合包自带的语言文件(de-de_<包名>.txt)不会被改动:在游戏里改的名称和译文写进你自己的文件,并优先于整合包的,整合包更新后仍然保留。格式同 XUnity 词典:键=译文,// 注释,r:"正则"=译文 为正则规则。

📁 个人文件(都在 BepInEx\config\ModConfigEnhance\,只存在本机)
文件 内容
groups\ 每个分组一个文件(名称、颜色、上级、组内模组)
overview.json 折叠状态、隐藏已停用
hotkeys.json 忽略的重复提示、收起的模组
gamepad-combos.json 手柄组合键
folder-layout-player.json 上次看到的 plugins 文件夹布局(文件夹变动提醒用)
cache\ 日志收藏、最近 3 次日志副本、改名整合包的旧语言文件与手柄预设 retired-packs\(可随时删除)

💬 问题反馈:[email protected] / QQ 群 1104320838 · GitHub: https://github.com/AiAe-156/Peak-ModConfigEnhance

Thunderstore development is made possible with ads. Please consider making an exception to your adblock.