N0VAN0M4LY b30df83c8b Show background pictures from the website gallery and the game copy
The window background now comes from two sources, served to the window
over a wto-art:// scheme from the launcher's cache:

- Website wallpapers: the newest entries of the public wallpaper gallery
  on warthunder.com (two pages), list refreshed at most daily, each
  1920x1080 picture downloaded when first shown and kept in the cache.
  No cookies, no sign-in; a setting turns it off. Without a connection
  the pictures downloaded before stay available.
- Game pictures: the nation pictures the game's own launcher keeps in
  launcherr.dat next to the game, extracted from the installed copy
  (fflate) once per archive version.

Without either, the window keeps its drawn background. The settings
choose a random picture per start or a fixed one (thumbnail grid); the
home page shows the picture's name with previous / next.

Checked: launcher typecheck, electron-vite build. Ran the window from a
scratch user data folder with a fake copy holding a copy of the real
launcherr.dat: 18 website wallpapers and 9 game pictures listed, both
sizes and the game pictures load through wto-art://, an unknown picture
is refused, stepping saves the choice, turning wallpapers off leaves
the game pictures, no console errors.
2026-11-29 07:45:26 +08:00
2026-11-29 03:22:38 +08:00

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 补丁核对(特征码生成、汇编核对)、界面补丁编译检查
S
Description
WTOffline is a single-player offline project for the Windows client of War Thunder.
Readme AGPL-3.0
12 MiB
0 Stars 1 Watchers 0 Forks
2026-12-03 03:33:17 +08:00
Languages
TypeScript 82.1%
C 6%
Squirrel 3.3%
Python 3.1%
CSS 2.5%
Other 2.9%