Skip to content

Releases

GameTrans 1.7.0

Choose a tag to compare

@ab-Royo ab-Royo released this 30 Nov 15:15

GameTrans 1.7.0

本次更新新增俄语翻译方向,并修复启动页出现后界面卡死数秒的问题。卡顿与 DeepSeek 网络延迟无关:根因是 WinForms 托盘菜单首次构建时的 GDI+ 字体初始化阻塞了 UI 线程。

新增 / Added

中文

  • 翻译语言新增俄语(ru):画面翻译的目标语言、F9 输入翻译的源语言与目标语言均可在设置页选择,提示词内的语言名固定为「俄语」。旧配置中的 ru / ru-RU / 俄文 / 俄语 / Russian / русский 会在读取时归一化为 ru。

English

  • Russian (ru) is now supported: selectable as the screen-translation target and as the F9 input-translation source/target. The prompt always refers to it as 俄语. Legacy values (ru, ru-RU, 俄文, 俄语, Russian, русский) are normalized to ru on load.

修复 / Fixed

中文

  • 启动页出现后界面卡死数秒、无法点击:根因是 WinForms 托盘菜单在 UI 线程首次构建时触发 GDI+ 字体初始化——进程内首次创建 System.Drawing 字体会枚举系统字体(本机约 1.7–2.6 秒),菜单控件首次构造另有数百毫秒,与 DeepSeek 网络探测无关(探测始终异步执行,不占用 UI 线程)。现在先显示托盘图标;GDI+ 字体与菜单控件栈改为在后台 STA 线程预热,预热完成后才在 UI 线程构建菜单(实测约 5 ms);预热期间右键托盘会提示「正在初始化」,并在菜单就绪后自动弹出。启动页出现后即可正常操作。

English

  • The UI froze for several seconds right after the startup page appeared: the cause was GDI+ font initialization triggered by the first WinForms tray-menu construction on the UI thread (first System.Drawing font creation enumerates system fonts, ~1.7–2.6 s on our machine, plus several hundred milliseconds for the first menu controls) — not the DeepSeek network probe, which always runs asynchronously and never blocks the UI thread. The tray icon is now created and shown first; GDI+ fonts and the menu control stack are warmed up on a background STA thread, and the menu is built on the UI thread only after warm-up (~5 ms measured). Right-clicking the tray during warm-up shows a "preparing" hint and the menu opens automatically once ready. The startup page is interactive as soon as it appears.

变更 / Changed

  • 画面翻译提示词第 4 条由「不要中英混排」改为「不要混入原文语言」,与俄语等非中英目标语言一致。
  • 启动阶段不再重复发起网络探测;日志新增「托盘菜单已就绪 +xxx ms(构建 x ms)」与「网络探测完成 xxx ms」。
  • 自检新增俄文相关断言;README、README.en、docs/DESIGN、CHANGELOG 已同步。
  • 版本号 1.6.1 → 1.7.0。
  • 产物 SHA-256:477FA7F476F970DF11410105EA440C4850904FBBB80CE99C0C30C6A0FF3CEC35

下载 / Download

  • GameTrans.exe — 单文件、免安装、默认无需管理员权限 / Single-file, portable, no administrator rights required by default

GameTrans 1.6.1

Choose a tag to compare

@ab-Royo ab-Royo released this 28 Nov 04:20

GameTrans 1.6.1

本次更新修复部分机器上「双击后无窗口、无日志、进程静默退出」的问题:.NET 9 默认写入的 Intel CET 兼容标记会在部分较旧的 Windows 构建上导致运行时初始化阶段 fail-fast(0xC0000602)。

修复 / Fixed

中文

  • 部分 Intel 11 代及以上 CPU 的机器上,双击程序后光标转圈但没有任何窗口,也不写日志:事件日志可见 Application Error,异常代码 0xC0000602,故障模块记录为 GameTrans.exe。原因:.NET 9 起 apphost / singlefilehost 默认标记为 Intel CET(硬件影子栈)兼容,在部分较旧的 Windows 构建上该标记会在 CoreCLR 初始化阶段触发 fail-fast,进程在进入程序代码前即终止(因此既无窗口也无日志,程序内部无法兜底)。本次发布设置 <CETCompat>false</CETCompat> 关闭该标记,在这些机器上恢复正常启动。

English

  • On some machines with 11th-gen Intel CPUs or newer, double-clicking the app spins the cursor but no window appears and no log is written: Event Viewer shows Application Error with exception code 0xC0000602, faulting module recorded as GameTrans.exe. Since .NET 9, apphost / singlefilehost are marked Intel CET (hardware shadow stack) compatible by default; on some older Windows builds that flag makes CoreCLR fail-fast during initialization, terminating the process before any application code runs (hence no window and no log, and no in-app fallback is possible). This release disables the flag (<CETCompat>false</CETCompat>), restoring normal startup on those machines.

变更 / Changed

  • 版本号 1.6.0 → 1.6.1。关闭 CET 兼容标记仅取消影子栈加固,对其它机器的功能与行为无影响。
  • 产物 SHA-256:E8864AEA0269AEC0FA23A720CB91959D9DA6C284B435C513053A1DD71D21DA05
  • Version 1.6.0 → 1.6.1. Disabling the CET compatibility flag only removes shadow-stack hardening; functionality and behavior on other machines are unchanged.

下载 / Download

  • GameTrans.exe — 单文件、免安装、默认无需管理员权限 / Single-file, portable, no administrator rights required by default
  • 遇到上述问题的用户请直接使用 1.6.1 覆盖旧文件 / Users hitting the issue above should replace the old file with 1.6.1

GameTrans 1.6.0

Choose a tag to compare

@ab-Royo ab-Royo released this 27 Nov 15:00

GameTrans 1.6.0

本次更新修复「开启 NVIDIA 即时重放时,按 F8 翻译会弹出『GameTrans 正在阻止桌面录制』并强制关闭即时重放」的问题,同时把叠加层的捕获排除标记改为可选设置。

新增 / Added

中文

  • 叠加层捕获排除开关:设置 → 文本叠加层新增「从截图 / 录制中排除叠加层」(overlay.excludeFromCapture,默认开启)。关闭后叠加层不再带 WDA_EXCLUDEFROMCAPTURE,NVIDIA App / GeForce Experience 的即时重放(桌面捕获)不再被强制停录;重复识别自身译文的问题改由「每次截图前先隐藏叠加层、截图后恢复」避免。开启时设置页显示红色警示,说明 NVIDIA 录制会被强制停止。

English

  • Overlay capture-exclusion toggle: Settings → Text overlay now has Exclude overlay from capture (overlay.excludeFromCapture, on by default). When off, the overlay no longer carries WDA_EXCLUDEFROMCAPTURE, so NVIDIA App / GeForce Experience Instant Replay (desktop capture) is no longer force-stopped; self-recognition is avoided instead by hiding the overlay before each capture and restoring it afterwards. A red warning in Settings states the cost while the option is on.

修复 / Fixed

中文

  • 按 F8 后 NVIDIA 即时重放被强制关闭:叠加层默认带驱动级「防录制」标记(WDA_EXCLUDEFROMCAPTURE),NvFBC 会把它判定为受保护内容并停止录制。现在可在设置 → 文本叠加层取消勾选,叠加层隐藏时也会主动恢复 WDA_NONE,不再出现「关掉叠加层也开不回即时重放」;若仍希望保留该标记,可在 NVIDIA App 中按 Alt+Z → 设置 → 视频捕获,关闭「桌面捕获」只录制游戏画面。被停录后需手动重新开启即时重放。

English

  • Pressing F8 force-stopped NVIDIA Instant Replay: the overlay carried a driver-level anti-capture flag (WDA_EXCLUDEFROMCAPTURE), which NvFBC treats as protected content and stops recording. Clear Exclude overlay from capture in Settings → Text overlay; the affinity is also released (WDA_NONE) whenever the overlay hides, so Instant Replay can be re-enabled without closing the app. To keep the flag instead, open NVIDIA App with Alt+Z → Settings → Video capture and turn Desktop capture off so only the game is recorded. Instant Replay has to be re-enabled manually after it is stopped.

变更 / Changed

  • 截图前的固定 80 ms 等待改为 DwmFlush() 同步 + 16 ms 余量:关闭排除标记后仍保证截图中不含上一次的译文,同时缩短 F8 的响应延迟。
  • 自检新增捕获排除标记的真实窗口断言(开启 0x11 / 隐藏后 0x0 / 关闭 0x0)与配置序列化往返检查。
  • README、README.en、docs/DESIGN 与中英文设置页截图同步。

下载 / Download

  • GameTrans.exe — Windows x64,自包含单文件,无需 .NET 运行时,默认无需管理员权限。

升级说明 / Upgrade notes

  • 配置与 1.5.x 兼容:新增可选字段 overlay.excludeFromCapture,缺省为 true(保持原有行为)。
  • 使用 NVIDIA 即时重放 / 桌面捕获录制时,请在设置 → 文本叠加层取消勾选「从截图 / 录制中排除叠加层」,然后重新开启即时重放。
  • 运行中的旧版本请先从托盘退出,再替换可执行文件。

项目主页 / Project: https://github.com/ab-Royo/GameTrans
QQ 群 / QQ group: 419733401
Bilibili: https://m.bilibili.com/space/51952428

GameTrans 1.5.0

Choose a tag to compare

@ab-Royo ab-Royo released this 23 Nov 12:02

GameTrans 1.5.0

本次更新重点修复「使用网络加速器后 DNS 失效,游译只报『不知道这样的主机』」的问题,并新增重新选区热键、双击托盘打开启动页、模拟输入管理员权限校验。

新增 / Added

中文

  • 网络诊断:新增 DNS + TCP 探测,启动页显示「网络」状态;托盘菜单新增「网络诊断…」。F8 遇到 DNS 解析失败、目标不可达、连接被拒绝、超时或 TLS 失败时,会给出可执行的排查建议,不再只显示系统错误文本。
  • 重新选区热键:设置页「热键与识别区域」新增可选热键,默认不绑定;游戏内按下可直接重新框选识别区域,支持键盘按键与鼠标中键 / 侧键,可一键清除。
  • 双击托盘图标打开启动页:原先打开设置页;启动页关闭后再次双击会复用同一窗口,不再遗留隐藏窗口。
  • 模拟输入管理员权限校验:勾选「模拟输入」且当前非管理员时,设置页立即显示红色警示;保存设置后弹出说明对话框,提供「以管理员身份重启」按钮。启动页、F9 输入窗与模拟输入失败兜底也会提示提权方向。程序默认仍以普通权限启动,不强制提权。

English

  • Network diagnostics: DNS + TCP probing with a live Network row on the startup page and a new tray menu item Network diagnostics…. When F8 hits DNS failure, an unreachable endpoint, a refused connection, a timeout or a TLS failure, the overlay now gives actionable suggestions instead of a raw system error.
  • Select-region hotkey: optional hotkey in Settings → Hotkeys & capture region, unbound by default; press it in game to re-select the capture region. Keyboard keys and mouse middle / side buttons are supported, and it can be cleared.
  • Tray double-click opens the startup page (previously Settings). A hidden startup page is reused instead of creating a new window each time.
  • Elevation check for simulated input: ticking Simulated input while unelevated shows a red warning right away; saving Settings opens a dialog with Restart as administrator. The startup page, F9 input box and simulated-input fallback also point to elevation. The app still starts unelevated by default.

修复 / Fixed

中文

  • 加速器 / VPN / 代理改写 DNS 后,翻译失败提示改为「DNS 解析失败」并附三步排查建议(关闭或切换加速器模式、修改系统 DNS、确认浏览器能打开 https://api.deepseek.com)。
  • DNS 失败不再做无意义的 700 ms 重试;TCP 连接超时上限 8 秒,避免按 F8 后长时间无反馈。
  • 修复启动页多次打开遗留隐藏窗口;修复切换界面语言后已隐藏启动页仍显示旧文案。
  • F9 输入框遇到带多行排查建议的网络错误时,额外用气泡显示完整内容。

English

  • DNS failures caused by accelerators / VPNs / proxies are now reported as DNS lookup failed with three actionable steps (disable or switch the accelerator mode, change system DNS, verify a browser can open https://api.deepseek.com).
  • DNS failures are no longer retried after 700 ms; the TCP connect timeout is capped at 8 seconds so F8 does not appear to hang.
  • Fixed hidden startup windows accumulating after repeated opens, and stale startup-page language after switching the UI language.
  • F9 input box now shows the full multi-line network advice in a toast instead of truncating it to one line.

下载 / Download

  • GameTrans.exe — Windows x64,自包含单文件,无需 .NET 运行时,默认无需管理员权限。

升级说明 / Upgrade notes

  • 配置与 1.4.x 兼容,无需迁移。新增可选字段 hotkeys.regionVk / hotkeys.regionMods,默认 0(不绑定)。
  • 若游戏或加速器以管理员权限运行,使用「模拟输入」时需要以管理员身份重启 GameTrans;程序会主动提示。
  • 运行中的旧版本请先从托盘退出,再替换可执行文件。

项目主页 / Project: https://github.com/ab-Royo/GameTrans
QQ 群 / QQ group: 419733401
Bilibili: https://m.bilibili.com/space/51952428

GameTrans 1.4.1

Choose a tag to compare

@ab-Royo ab-Royo released this 18 Nov 08:52

GameTrans 1.4.1

本次更新仅涉及热键轮询的实现优化,不改变用户可见的热键行为与配置格式。

变更 / Changes

中文

  • 热键轮询由 WPF DispatcherTimer 迁移至专用后台线程(GameTrans.HotkeyPoll,15 ms 间隔,ManualResetEventSlim 定时唤醒)。仅在检测到按键按下边沿后通过 Dispatcher.BeginInvoke 将回调派发至 UI 线程;空闲期间不占用 WPF 消息循环。
  • 绑定表改为不可变快照,按键状态与两条通道的时间戳使用 Volatile / Interlocked 访问;轮询线程随热键注册启停,退出时通过信号量唤醒并 Join。
  • 本机实测(Ryzen 9 8945HX / 32 逻辑核)进程空闲 CPU 时间由约 11 ms/s 降至约 3 ms/s。
  • RegisterHotKey 原生通道、GetAsyncKeyState 轮询兜底、两通道毫秒级去重、注册失败时的兼容模式提示、模拟键入期间的 SuspendFor 挂起逻辑均保持不变。

English

  • The hotkey polling moved from a WPF DispatcherTimer to a dedicated background thread (GameTrans.HotkeyPoll, 15 ms interval, ManualResetEventSlim). Callbacks are marshalled to the UI thread via Dispatcher.BeginInvoke only after a key-down edge; the WPF message loop is not involved while idle.
  • Bindings are published as immutable snapshots; per-key state and channel timestamps use Volatile/Interlocked. The polling thread starts and stops with hotkey registration, and is joined on unregistration.
  • Measured idle process CPU time decreased from about 11 ms/s to about 3 ms/s on the development system (Ryzen 9 8945HX, 32 logical processors).
  • The RegisterHotKey primary channel, polling fallback, millisecond-level de-duplication, fallback notification, and SuspendFor behaviour during simulated input are unchanged.

下载 / Download

  • GameTrans.exe — Windows x64,自包含单文件,无需 .NET 运行时,无需管理员权限。

升级说明 / Upgrade notes

  • 配置与 1.4.0 兼容,无需迁移。运行中的旧版本请先从托盘退出,再替换可执行文件。
  • 本次未引入新的功能开关或配置字段。

项目主页 / Project: https://github.com/ab-Royo/GameTrans
QQ 群 / QQ group: 419733401
Bilibili: https://m.bilibili.com/space/51952428

GameTrans 1.4.0

Choose a tag to compare

@ab-Royo ab-Royo released this 18 Nov 08:23

GameTrans 1.4.0

热键兼容性修复 · F9 输入框稳定性修复 · 新增「模拟输入」

修复 / Fixes

中文

  • 部分游戏里单键 F8 / F9 没反应(必须 Ctrl+F8 之类组合键才行):热键被其他程序独占时 RegisterHotKey 注册会直接失败;部分游戏使用 DirectInput / 独占全屏,按键不经过消息泵,注册成功却收不到 WM_HOTKEY。1.4.0 起键盘热键在原生注册之外同时启用 15 ms GetAsyncKeyState 轮询兜底,两条通道按毫秒时间窗去重、同一次按键只触发一次;注册失败不再等于不可用,托盘会提示「已自动启用轮询兼容模式」。依然不安装任何全局钩子。
  • 快速连按 F8 / F9 会叠出多个窗口:F9 以前每次触发都新建输入窗;选区窗口是模态对话框,其消息循环里热键仍会派发回来,连按还会叠出多个选区窗口。现在输入窗为单实例(已打开时再按 F9 只重新聚焦),选区期间忽略热键,F8/F9 另有 180 ms 去重。
  • 英雄联盟等游戏里 F9 输入框:翻译结束后 3 秒不消失、Enter / Esc 无效、关闭按钮点不中要连点几次:
    • 前台焦点:游戏持前台锁时 Show()+Activate() 会被系统拒绝,窗口可见但键盘焦点仍在游戏,Enter / Esc 全部送进游戏。改用 AttachThreadInput + SetForegroundWindow 强制接管前台,失败时短时重试,用户切回游戏立即停止。
    • 自动关闭:旧版只在剪贴板复制成功时才启动 3 秒倒计时;游戏客户端 / 加速器占用剪贴板时复制失败,窗口就永远不关。现在翻译成功后一定自动关闭(复制成功 3 秒、复制失败 5 秒并提示 Enter 重试),任意按键取消倒计时。
    • 键盘路由:Esc / Enter 从输入框按键处理提升到窗口级,点过按钮后依然有效。
    • 点击偏移:状态文字不再参与命中测试并与按钮分列(长文案会盖住按钮吞掉点击);窗口改用物理像素定位并处理 DPI 变化,消除逐显示器 DPI 下的「看得到、点不到」。

English

  • Single-key F8 / F9 ignored in some games (only Ctrl+F8 worked): RegisterHotKey fails outright when another program owns the hotkey, and some games (DirectInput / exclusive fullscreen) keep keys away from the message pump so WM_HOTKEY never arrives. Keyboard hotkeys now also run a 15 ms GetAsyncKeyState polling fallback; the two channels de-duplicate the same physical press, so nothing fires twice. A failed registration no longer means "unusable" — a toast reports the polling fallback. No global hooks are installed.
  • Rapid F8 / F9 presses no longer stack windows: the F9 box is now single-instance (pressing F9 again refocuses it), region selection ignores hotkeys while open, and F8/F9 have a 180 ms de-dup guard.
  • F9 box in games such as League of Legends: never closed after translating, Enter / Esc did nothing, close button hard to hit:
    • Foreground focus is now taken with AttachThreadInput + SetForegroundWindow (short retry, stops as soon as you switch back), so keys actually reach the box.
    • The box now always auto-closes after a successful translation: 3 s when the copy succeeded, 5 s when the clipboard was busy (Enter retries). Any key cancels.
    • Enter / Esc are handled at window level, so they work after clicking a button too.
    • Status text no longer covers the buttons, and the window is positioned in physical pixels, removing per-monitor DPI click offsets.

新增 / What's new

中文

  • 设置页「翻译行为」新增 模拟输入 开关(配置字段 behavior.simulateInput,默认关闭)。开启后 F9 翻译完成不写剪贴板,而是把译文用 SendInput(Unicode 字符)直接键入当前游戏窗口;会先把前台还给游戏并确认游戏窗口重新获得焦点再开始键入,键入期间临时挂起热键。请先打开游戏聊天输入框,程序不会自动按 Enter 发送。

English

  • New Simulated input switch under Settings → Translation (behavior.simulateInput, off by default). With it enabled the F9 result is typed straight into the current game window via SendInput (Unicode) instead of the clipboard. The app returns the foreground to the game, verifies the game window is focused again before typing, and suspends hotkeys while typing. Open the in-game chat box first — the app does not press Enter for you.

下载 / Download

  • GameTrans.exe — Windows x64, self-contained single file, no .NET runtime required, no administrator rights required.

升级说明 / Upgrade notes

  • 配置与 1.3.x 兼容,新增 behavior.simulateInput(缺省 false,保持原来的剪贴板方案)。/ Configuration is compatible with 1.3.x; the new behavior.simulateInput defaults to false, keeping the clipboard workflow.
  • 模拟输入需要目标游戏窗口能接收字符消息;若游戏以管理员权限运行,非管理员进程的模拟输入会被 UIPI 拦截,程序会自动退回复制到剪贴板并提示。/ Simulated input needs the game window to accept character messages. If the game runs elevated, UIPI blocks simulated input from a non-elevated process and the app falls back to the clipboard automatically.
  • 若单键热键仍与游戏内绑定冲突(游戏和翻译同时响应),建议改用 Ctrl / Alt 组合键。/ If a single-key hotkey still collides with the game's own binding, use a Ctrl / Alt combination.

项目主页 / Project: https://github.com/ab-Royo/GameTrans
QQ 群 / QQ group: 419733401
Bilibili: https://m.bilibili.com/space/51952428

GameTrans 1.3.0

Choose a tag to compare

@ab-Royo ab-Royo released this 16 Nov 11:01

GameTrans 1.3.0

中英双语界面 · 语言与翻译方向下拉 · 目标 API 选择 · 首页社区链接

新增 / What's new

中文

  • 界面语言切换:设置页「界面」卡片可在 简体中文 / English 间切换,全部界面文案立即生效,无需重启。
  • 翻译方向改为下拉框:源语言支持 自动 / 中文 / 英文 / 韩文 / 日文,目标语言支持 中文 / 英文 / 韩文 / 日文;画面翻译与 F9 输入翻译各自独立配置。
  • 目标 API:模型接口卡片新增「DeepSeek 中国站 / 国际站」,默认跟随界面语言(中文 → 中国站,其它语言 → 国际站),并附开放平台、API 文档与官网跳转链接。
  • 社区入口:启动页(首页)、设置页「关于」与托盘菜单新增 GitHub、QQ 群(点击复制群号)、Bilibili 链接。
  • 新增英文 README(README.en.md)与英文界面截图。

English

  • UI language switch: 简体中文 / English under Settings → Interface; every UI string applies immediately, no restart.
  • Translation direction dropdowns: source auto/zh/en/ko/ja, target zh/en/ko/ja; screen and F9 directions are independent.
  • Target API: DeepSeek China / International (default follows the UI language) with open-platform, API docs and website links.
  • Community links on the startup page, Settings → About and the tray menu: GitHub, QQ group (click to copy), Bilibili.
  • New English README and English screenshots.

下载 / Download

  • GameTrans.exe — Windows x64, self-contained single file, no .NET runtime required.

说明 / Notes

  • DeepSeek 中国站与国际站目前共用官方 API 端点 https://api.deepseek.com;该选项决定开放平台入口、文档语言与账号区域。/ Both sites share the official endpoint; the option selects the platform entry, docs language and account region.
  • 从 1.2.x 升级时旧的语言名会自动归一化,无需手工修改配置。/ Legacy language names are normalized automatically when upgrading from 1.2.x.

项目主页 / Project: https://github.com/ab-Royo/GameTrans
QQ 群 / QQ group: 419733401
Bilibili: https://m.bilibili.com/space/51952428

GameTrans v1.1.0

Choose a tag to compare

@ab-Royo ab-Royo released this 21 Oct 11:09

首个公开版本。

功能

  • 区域截图识别:全屏冻结截图 + 拖拽框选,支持多显示器与混合 DPI
  • 画面翻译(默认 F8):截图 → DeepSeek 视觉模型识别并翻译 → 原位文本叠加;再次按下隐藏
  • 输入翻译(默认 F9):以识别区域左上角为锚点弹出半透明输入框,中文输入翻译为英文并写入剪贴板
  • 文本叠加层:背景色/透明度、文字色、字体字号、内边距、圆角、边框、对齐均可配置
  • 溢出策略:译文超出识别区域时默认向下扩展(字号不变),可选缩放适配
  • 术语 / 黑话对照表:手工维护「词条 → 含义」,随提示词下发约束专有说法
  • 启动页:汇总模型接口、识别区域、快捷键、术语表状态并提供配置入口

运行要求

  • Windows 10 2004+ / Windows 11,x64
  • 无需管理员权限,无需安装 .NET 运行时(自包含单文件)
  • 需要 DeepSeek API Key(模型 deepseek-flash)

安装

下载 GameTrans.exe 直接运行。首次启动在启动页进入「设置」填写 API Key,并设置识别区域。

配置文件位于 %APPDATA%\GameTrans\settings.json,API Key 以 Windows DPAPI 加密存储。

说明

  • 叠加层点击穿透、不抢占焦点,并通过 WDA_EXCLUDEFROMCAPTURE 从屏幕截图中排除
  • 快捷键使用 RegisterHotKey 注册,不使用低级键盘钩子
  • 截图仅在内存中编码并发送至所配置的接口,不写入磁盘,不包含遥测

完整说明见 README 与 设计说明。