fa7c9071b73e7f11c2a0c791fc0309a65713e049
The client never raises a vehicle's hp by itself; the hangar shows (1 - hp) x the full repair time as what is left (shop_time_until_repair, aces.exe 2.61.0.37 0x17a5040). The local service now restores hp whenever it hands out or changes a profile: hp grows by the hours since it was last set over the full repair time, and the damage is cleared at 1. The full repair time follows the client (0x937330): repairTimeHrs<Mode> times the repair cost's modification factor (0x964750 -> 0x964900) times a crew multiplier when a crew has the vehicle as its current one, else repairTimeHrsNoCrew<Mode> (or repairTimeHrs x rTimeNoCrewMul, 0x964e30). The crew multiplier runs from 1 to 1/3 (hangarRepairSpeed default, 0x95cee0) over the groundService/repair level plus the specialization share of specialization<k>_add (0x95d200), and applies only when repair_ranks covers the vehicle's rank for the crew's repairRank level (0x95d7b0). The vehicle-repair dataset gains the repair times, rTimeNoCrewMul and these crew skill values; RepairRules is built with the profiles so the refresh can use it. Inferred: the skill fields the client divides are level and maximum level, the rank compared is the tech tree rank, linear growth at the current crew's pace. Checked: typecheck; full repair times for us_m1a1_abrams from the game data (no crew 678 h, untrained 171 h, maxed ace 57 h) and the hp growth over time.
WTOfflineProject
《战争雷霆》离线版。目标客户端版本:Steam 2.61.0.37。
做法和 SPT 一样:客户端的所有联网请求改到本机,由本地服务模拟 Gaijin 的服务器。
本仓库不包含任何游戏文件。构建时从一个游戏文件夹读取原版文件。
| 目录 | 内容 |
|---|---|
packages/ |
TypeScript(npm workspace):BLK 编解码、数据包读写、exe 补丁应用、构建流程、本地服务,以后还有启动器 |
tools/ |
Python 开发端工具:数据包读写、exe 补丁引擎(特征码生成、汇编核对) |
exe-patches/ |
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%