ab0d3b1f301fee962f721626984e41abd077f112
The install wizard needs to tell whether the chosen folder is a War Thunder installation, which version it is, whether it is a Steam library, and whether the folder for the copy can take it. The patcher reads the game version from win64/aces.exe (the VS_FIXEDFILEINFO block of its version resource) and works out the versions every exe and GUI patch was verified on, from their verified_on lists, so the version check follows the patch definitions instead of a constant. The launcher gets four IPC calls, each validated against the contract: - dialog:pickFolder, a folder picker titled by the window; - install:inspectGameFolder: missing game files, version, verified versions, Steam library; - install:inspectTargetFolder: new or empty, not overlapping the stock installation, Steam library, free space on its drive, and whether it is on the stock installation's drive (the space saving copy needs that); - install:measureFolder: bytes and files of the stock installation, regular files only, links not followed. A folder that does not exist or cannot be read is the folder_unreadable error code, translated in both languages. In development the patch folders and the hook library come from this repository; the packaged layout comes with the installer build. Checked with both typechecks, the launcher build, and the calls made from a running launcher window: the stock folder (2.61.0.37, verified), a non-game folder, a missing path, a Steam library path, four target folders (new, inside the stock folder, not empty, other drive) and the size of the offline copy (96.9 GB in 10,972 files).
WTOfflineProject
《战争雷霆》离线版。目标客户端版本:Steam 2.61.0.37。
做法和 SPT 一样:客户端的所有联网请求改到本机,由本地服务器模拟 Gaijin 的服务器。
本仓库不包含任何游戏文件。构建时从一个游戏文件夹读取原版文件。
| 目录 | 内容 |
|---|---|
apps/server/ |
本地服务器(TypeScript):模拟 Gaijin 的登录、档案、匹配、商店等服务器 |
packages/ |
共用的 TypeScript 库(npm workspace):BLK 编解码(blk)、数据包读写(vromfs)、JSONC(jsonc)、exe 补丁引擎(exepatch)、构建游戏副本(patcher) |
patches/exe/ |
exe 补丁定义 |
patches/gui/ |
界面脚本补丁定义 |
native/ |
网络钩子与本地对局模块 wto_ws.dll(C) |
scripts/ |
开发用的 TypeScript 脚本(如 build-game-copy.ts 构建游戏副本) |
tools/ |
Python 开发端工具:数据包读写、exe 补丁核对(特征码生成、汇编核对)、界面补丁编译检查 |
Description
WTOffline is a single-player offline project for the Windows client of War Thunder.
12 MiB
0 Stars
1 Watchers
0 Forks
Releases
2
WTOffline Launcher 0.1.2
Latest
Languages
TypeScript
82.1%
C
6%
Squirrel
3.3%
Python
3.1%
CSS
2.5%
Other
2.9%