Skip to content

v0.20.0

Choose a tag to compare

@WRXinYue WRXinYue released this 11 Jun 17:39
· 48 commits to main since this release

Added

  • Modular KitLib split — One in-game mod with a thin Core host (KitLib.dll) and optional satellite DLLs under modules/ (KitLib.User, KitLib.ModPanel, KitLib.Panel, KitLib.AI, KitLib.Cheat, KitLib.Dev). Satellites register dev-rail tabs and features via KitLibHost; shared runtime lives in KitLib.Features. Remove a satellite DLL (or pick a load profile) to disable that feature without uninstalling KitLib. Releases ship KitLib-Full plus per-module zips. NuGet STS2.KitLib.Abstractions is the compile-time contract for content mods.
  • Main-menu Mod settings panel — Native KitLib settings in the game's mod list (RitsuLib bridge): browse and configure KitLib without the in-run dev rail.
  • Mod Panel sidebar — Enable or disable loaded mods from the sidebar; each row shows a version badge and STS2-style focus cursor.
  • Satellite load profiles — Choose Minimal, Standard, Full, or Custom sets of bundled KitLib modules from Mod settings.
  • Mod settings: hotkeys — Rebind dev sidebar shortcuts (open/close rail, switch tabs, quick save/load, combat checkpoints) on a dedicated settings page.
  • Mod settings: accent theme — Optional orange accent for KitLib UI chrome.
  • Mod compatibility (kitlib.compat.toml) — Settings surface dependency and version warnings from each mod's compat manifest.
  • Content mod logging (KitLibLog / ModLog) — Other mods can log through KitLib so lines appear in the log viewer with correct mod source tags and colors; reusable log-level row for mod settings pages.
  • KitLog CLI — Optional kitlog tool (tools zip): tail for session.log, attach for a structured named-pipe stream, --sync-viewer to mirror in-game filters, optional auto-open in Windows Terminal when KitLib loads.
  • STS2 stable/beta dual build — KitLib ships stable- and beta-targeted builds; auto-detects your Steam install profile and shows a startup banner when the installed game version does not match the mod build.
  • Dev perf overlay — Optional HUD (dev rail) with preload and save-serialization timing probes.
  • AI Host & StrongStrategy — Mod AI platform with an AI Host panel in the dev rail, external companion terminal APIs, and StrongStrategy solo autoplay informed by Codex priors.
  • Combat simulation & beam planner — In-fight AI simulates deck EV, multi-turn lines, relic/power hooks, potion use in search, minion engagement, and enemy mechanic discovery.
  • AI HUD overlay — Top-left run overlay with big/small deck forecast, win estimate, and live sim telemetry (replaces the older heuristic HUD).
  • Reward, map & rest AI — Card rewards scored by marginal deck/sim value (including next-fight beam preview); map routing weighs path risk; rest sites prefer campfires when the deck needs upgrades; scored hand picks for exhaust and upgrade prompts.
  • Ancient event debug (dev tools) — From Events or Room Teleport → Ancient Ones, pick any ancient in the extension panel and enter randomly or pin a listed option (Darv, Orobas, and mod ancients share one picker); dmevent force <eventId> [choice].
  • MCP Nexus upload — Pipeline to publish mod packages to Nexus from the MCP tooling (see README MCP).

Changed

  • Breaking: monolith → modules — DevMode's single DLL becomes Core + satellites. Install KitLib-Full (recommended) or Core + KitLib.Features + the satellite zips you need. make sync deploys Core only; make sync-full deploys the full local bundle. Existing installs migrate module toggles to Full (all satellites on); new installs default to Standard (Panel on; AI/Cheat/Dev off).
  • Rebrand to KitLib — Mod id, assembly, C# root namespace, user-data path (mod_data/KitLib), and NuGet package id (STS2.KitLib) replace DevMode. Legacy mod_data/DevMode settings migrate automatically on first launch. Dependent mods should reference KitLib.dll and KitLib.* namespaces (e.g. KitLib.Companion.CompanionBridge).
  • Content-mod integration — Ship a kitlib.compat.toml sidecar for version/dependency checks in Mod settings; reference STS2.KitLib.Abstractions at compile time and KitLib.dll (+ any satellite you need) at runtime.
  • Mod Panel navigation — Page tabs use an LB/RB shoulder carousel; controller hints and focusable sidebar rows; opens through the official submenu stack for reliable gamepad navigation.
  • Progress protection — Settings, backup list, restore flow, and startup progress-loss prompt live under Mod Panel (replacing the legacy DEVMODE menu entry).
  • Log format & viewer — KitLib internal lines use [KitLib][scope] without duplicate [KitLib] prefixes; secondary scope tags render dimmer than primary mod tags in the log viewer and kitlog.
  • Combat stats sidebar — Context-pane score bar uses readable scale ticks aligned to the bar height.
  • Combat AI behavior — Block-first lines, sim-backed focus fire and vulnerable setup, potion scoring in beam search, weak mitigation modeling, skip-anim-safe card play, no premature end-turn with playable cards, save/load after AI combat, and reward-screen skip loops resolved.

Fixed

  • Install packages — Release zips again include the required PCK after the modular packaging split.
  • STS2 stable + Dev Mode — Dev bootstrap on the stable game branch no longer crashes or double-applies Harmony on the main menu.

Added

  • KitLib 模块化拆分 — 游戏内仍是一个 mod:轻量 Core 宿主(KitLib.dll)+ modules/ 下可选卫星 DLL(KitLib.UserKitLib.ModPanelKitLib.PanelKitLib.AIKitLib.CheatKitLib.Dev)。卫星经 KitLibHost 注册侧栏 Tab 与功能;共享运行时在 KitLib.Features。删除卫星 DLL(或选择加载档位)即可关闭对应功能而无需卸载 KitLib。发布含 KitLib-Full 与各模块独立 zip。NuGet STS2.KitLib.Abstractions 为内容 mod 编译期契约。
  • 主菜单 Mod 设置面板 — 游戏 mod 列表中的 KitLib 原生设置(RitsuLib 桥接):无需进入对局开发侧栏即可浏览与配置 KitLib。
  • Mod Panel 侧栏 — 在侧栏中开关已加载 mod;每行显示版本徽章与 STS2 风格焦点光标。
  • 卫星模块加载档位 — 在 Mod 设置中选择 Minimal / Standard / Full / Custom 等 bundled 模块组合。
  • Mod 设置:快捷键 — 独立页面重绑开发侧栏快捷键(展开/收起、切换 Tab、快速存读、战斗检查点等)。
  • Mod 设置:强调色 — 可选橙色 KitLib UI 强调色。
  • Mod 兼容性(kitlib.compat.toml — 设置页展示各 mod 兼容清单中的依赖与版本警告。
  • 内容 mod 日志(KitLibLog / ModLog — 其他 mod 经 KitLib 输出日志,在游戏内日志查看器显示正确 mod 来源与颜色;mod 设置页可复用日志级别行组件。
  • KitLog CLI — 可选 kitlog 工具(tools zip):tailsession.logattach 接结构化命名管道,--sync-viewer 同步游戏内筛选,可选 KitLib 加载时在 Windows Terminal 自动打开。
  • STS2 稳定版/beta 双构建 — KitLib 分别针对稳定版与 beta 构建;自动检测 Steam 安装对应配置,版本不匹配时启动显示提示横幅。
  • 开发性能浮层 — 可选 HUD(开发侧栏)显示预加载与存档序列化耗时探针。
  • AI Host 与 StrongStrategy — Mod AI 平台:开发侧栏 AI Host 面板、外部伴侣终端 API,以及基于 Codex 先验的 StrongStrategy 单机自动出牌。
  • 战斗模拟与 beam 规划器 — 对局内 AI 模拟牌组 EV、多回合线路、遗物/能力钩子、搜索内药水、小怪 engagement 与敌人机制发现。
  • AI HUD 浮层 — 对局左上角 overlay:大小牌组预测、胜率估计与实时模拟遥测(取代旧版启发式 HUD)。
  • 奖励、地图与休息点 AI — 卡牌奖励按边际牌组/模拟价值评分(含下场战斗 beam 预览);地图选路权衡路径风险;牌组需升级时休息点优先营火;耗竭/升级选手牌按评分选择。
  • 先古事件调试(开发工具) — 在 事件房间传送 → 先古之民 中,从扩展面板选择任意先古,随机进入或置顶某一选项(达弗、欧洛巴斯与 mod 先古共用同一套列表);dmevent force <eventId> [choice]
  • MCP Nexus 上传 — 通过 MCP 工具链发布 mod 包到 Nexus(见 README MCP)。

Changed

  • 破坏性:单体 → 模块 — 原 DevMode 单 DLL 拆为 Core + 卫星。请安装 KitLib-Full(推荐)或 Core + KitLib.Features + 所需卫星 zip。make sync 仅部署 Core;make sync-full 部署完整本地 bundle。已有安装迁移为 Full(全部卫星开启);新安装默认 Standard(Panel 开;AI/Cheat/Dev 关)。
  • 更名为 KitLib — mod id、程序集、C# 根命名空间、用户数据路径(mod_data/KitLib)及 NuGet 包 id(STS2.KitLib)取代 DevMode。首次启动会自动迁移旧版 mod_data/DevMode 设置。依赖本 mod 的其他 mod 请改为引用 KitLib.dllKitLib.* 命名空间(如 KitLib.Companion.CompanionBridge)。
  • 内容 mod 对接 — 随 mod 发布 kitlib.compat.toml sidecar,在 Mod 设置中做版本/依赖检查;编译期引用 STS2.KitLib.Abstractions,运行时需要 KitLib.dll(及所依赖的卫星 DLL)。
  • Mod Panel 导航 — 分页标签改为 LB/RB 肩键轮播;显示手柄提示与可聚焦侧栏行;经官方子菜单栈打开以保证手柄导航可靠。
  • 进度保护 — 设置、备份列表、恢复流程与启动时进度丢失提示均移至 Mod Panel(取代旧版 DEVMODE 主菜单入口)。
  • 日志格式与查看器 — KitLib 内部日志为 [KitLib][scope],session 日志不再重复 [KitLib];游戏内查看器与 kitlog 中次级 scope 标签比主 mod 标签更暗。
  • 战斗统计侧栏 — 上下文面板分数条按条高显示可读刻度。
  • 战斗 AI 行为 — 优先挡牌线路、模拟驱动集火与易伤铺垫、beam 搜索内药水评分、虚弱减伤建模、跳过动画下出牌不卡死、有牌可出时不提前结束回合、AI 战斗后可正常存读、奖励界面跳过循环已处理。

Fixed

  • 安装包 — 模块化打包拆分后,发布 zip 再次包含所需的 PCK 文件。
  • STS2 稳定版 + Dev Mode — 稳定版游戏分支上打开开发工具不再在主菜单崩溃或重复应用 Harmony。