All 12 exe patches, 35 GUI patches and 10 native modules apply; a lab
battle on the build (vehicle spawn, killstreak aircraft, nuclear win)
worked. The README no longer names a single target client version and
points to the check records instead.
wto_ws.dll no longer scans aces.exe or carries structure offsets of a game
build. It reads the values the patcher resolved (wto_ws.cfg native.* lines)
into g_lmp through one table that names, per module, which value fills which
field (local_mp_values.c), and installs each module whose values are all
present, in dependency order, instead of giving up on the whole bridge when
one subsystem is missing. When the settings were resolved for another
executable (PE time stamp and image size differ), the bridge stays off.
local_mp_offsets.h keeps the existing names so the module code reads as
before; only Dagor library layouts (dag::Vector, DataBlock), protocol enums,
the reflection buffer size and the two change request members with no reader
in the client remain constants. A few fields are derived where the client has
no instruction of its own for them (local_mp_values.c derive_values). The
signatures moved to patches/native, and the header-based check-offsets
command is gone: record-game-version and the launcher's patch check resolve
the native modules now.
Shared sites moved to local_mp_core (mission customBots, the player's unit
eid) so modules do not depend on each other for them.
Checked: DLL build (no warnings outside MinHook); root and launcher type
checks; check-patches on 2.61.0.37; version records for 2.61.0.37 and
2.61.0.43 (10 native modules each); a lab run of the 2.61.0.37 copy logs
239 native values and "9 of 9 LocalMP modules installed". Battles were not
played in this run.
The LocalMP modules of wto_ws.dll scanned for 42 functions at start-up and
used about a hundred structure offsets compiled in as constants, so a game
update could move a field without anything noticing. Their needs are now
definitions under patches/native/<module>.jsonc, resolved by the patcher when
it builds the game copy, the same way exe patches are located:
- Locate methods: "string_ref" finds code by the string it loads (optionally
with a pattern around the lea, to read the field a scoreboard row stores
under that name), and "within" searches a short pattern inside the function
of a site located before it (function ranges from the exception directory).
- Each module lists its sites (functions, globals, call targets and the
instructions whose captures give structure offsets), its features and the
modules it requires. A module whose sites are not all found is reported
like an unavailable patch, with the modules depending on it.
- The resolved values go into wto_ws.cfg as native.<site>[.<capture>] lines,
with the executable's PE time stamp and image size so the library can
refuse values resolved for another build.
- Version records include the native module variants and values.
- Patch-set folders: the patcher, the scripts and the launcher take the root
of a patch set (exe, gui, native, versions) instead of separate folders.
- New feature tags K-Chat and radio and K-Nuclear bomb in both language packs.
The library still scans by itself; reading these values is the next change.
Checked: root and launcher type checks; all 10 modules resolve on 2.61.0.37,
where the 239 values equal what the drafting tool read with a disassembler, and
on 2.61.0.43, where every structure offset is unchanged except the GameSaveData
HUD event queue (0xae8 -> 0xb18); build-game-copy from 2.61.0.37 into a
temporary folder writes the values into wto_ws.cfg.
A game update used to fail a patch whenever any byte it compared moved, even
when only an address in the instruction changed. Patch definitions now say
what a change needs and read the rest from the code:
- patch.jsonc holds a list of variants, each written for one game build
(written_for) with its own locate block and edit; locate.jsonc is merged
into it. Exactly one variant must apply, otherwise the patch is left out.
GUI script patches use the same variants rule.
- expect_original and the bytes to write use the signature syntax, so
addresses that differ between builds can be wildcards.
- A locate block can capture values at the site (rel32 targets, immediates,
displacements); a rel32 fixup fills a hole in the written bytes from a
capture. allow-local-host-bot-spawns now jumps to the target of the
conditional jump it replaces instead of a stored distance, which makes it
apply to 2.61.0.43 as well.
- verified_on is gone from the definitions. patches/versions/<version>.jsonc
records, per checked game build, which variant of every patch applies and
where; scripts/record-game-version.ts writes it and the launcher reads the
recorded versions from there.
The Python tools (check-patches, patch-exe, check-gui) read the same format;
check-patches assembles a variant whose assembly names captures at the site
it was located at.
Checked: root and launcher type checks; check-patches and check-gui on
2.61.0.37 and 2.61.0.43 (12 exe and 35 GUI patches each); check-patches and
check-gui report a deliberately broken patch with a non-zero exit;
build-game-copy from 2.61.0.43 into a temporary folder. The computed bytes of
allow-local-host-bot-spawns on 2.61.0.37 equal the bytes it stored before.
The features listed by every exe and GUI patch definition now use English
tags, so contributors can read them without knowing Chinese. Each tag keeps
its feature inventory section letter (A- to O-) and translates the inventory
row it stands for. Tags that named the same row in two languages are merged
(store, premium account, marketplace), and the external inventory tag on the
coupon redemption patch joins the coupons tag it describes: 32 tags become 28.
The three essential tags in the patcher and the launcher's feature labels in
both locales follow the rename.
Checked: check-patches, check-gui, root and launcher typecheck, launcher
build, a build-game-copy run into a temporary folder (12 exe and 35 GUI
patches ready, as before), and install:listFeatures in the launcher
returning 28 tags with the three essential ones flagged.
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.
The window is now a fixed 1120x720 frameless window with its own title
bar: page navigation, language, minimize and close. The layout follows
the game's launcher: a side panel, the main area over the background,
and a bottom bar with the state of the current task and the primary
action. The colours and type follow the game's website: dark blue-grey,
red actions, Roboto Condensed (bundled, OFL), cyan progress.
- Pages: home (requirements before installation, the current copy
after), copies (copy details with folders to open, feature status
grouped by inventory section), settings (language), about.
- The install wizard is a hook shared by the side panel (step list),
the main area (current step) and the bottom bar (back, next, install,
cancel, copy progress).
- The adaptation shown for a game version is the version itself when
the patches were verified on it, otherwise the nearest verified one.
- Both language packs are rewritten in consistent product wording.
- New IPC: app:openFolder, install:listFeatures (patcher's new
patchFeatures), window:minimize, window:close; app:getInfo reports the
supported game versions.
Launching is not built yet; its button stays disabled.
Checked: launcher typecheck (main and renderer), electron-vite build,
root typecheck. Ran the window from a scratch user data folder over the
remote debugging port: every page and section in Chinese and English,
empty and installed state, the wizard's first step, both new IPC calls,
no console errors and no overflow.
The window now installs the offline version in five steps:
1. Game: the player picks their War Thunder folder; the launcher says
whether it is one and whether its version is the one the patches were
verified on (another version is pointed out, not refused).
2. Method: copy into a new folder (recommended; shows the size of the
installation, the room on the target drive, and why a folder cannot
be used) or install into the chosen folder itself. A Steam library
brings up the three risks and needs a tick before going on.
3. Data: the folder for saves, caches and logs, the launcher's own data
folder by default.
4. Check: the patch check runs each time the step is entered. Missing
essential changes stop the installation; other missing changes are
listed as the features they cost, translated, with the patches behind
them folded away, and need a tick to go on.
5. Install: phase, a byte progress bar and file counts while copying,
and a cancel button. An error goes back to the check step with its
translated message.
The first screen shows either the invitation to install or what is
installed (copy, data folder, version, method, missing features) with a
button to install again. Feature tags of the patch definitions have
names in both languages; a tag without one is shown as it is.
The app's productName gives its user data folder a readable name.
Checked with the launcher typecheck and build, and a start on a scratch
user data folder: the first screen and the wizard's first step render
in Chinese and English with no console errors.
The launcher's main process can now install the game copy, driven over
IPC by the install wizard to come:
- install:checkPatches builds the copy in memory in a utility process
(workers/patch-check-worker.ts, a second main entry) and reports the
patches that do not fit, each marked essential or not. Nothing is
written.
- install:start checks first, on the stock files the copy would get, so
a game whose essential patches do not fit is refused before tens of
gigabytes are copied; other missing patches need the player's
acceptance. Then, for the copy method, it measures, checks the target
drive's free space (plus 1 GB) and copies; it keeps the four stock
files in <copy>/wtoffline/stock, never replacing a file already there;
and it writes <user data>/install.json. Patched files are written by
the build at every launch with that launch's port, not here.
- The copy leaves out the top-level folders that hold what the game
produced while played online (.game_logs, cache, Replays, Screenshots,
UserMissions). It copies in chunks through streams, so progress moves
within a large data pack and install:cancel stops at once; it never
overwrites a file, and after a failure or a cancel it removes what it
copied, which is safe because the target was new or empty. One failing
parallel copy stops the others before the cleanup starts.
- Progress goes to the window as event:install-progress, at most every
250 ms. install:getRecord returns the record and the default data
folder (<user data>/data).
- New error codes, translated in both languages: not_a_game_folder,
target_not_usable, steam_library_not_confirmed, not_enough_space,
essential_patches_unavailable, missing_features_not_accepted,
patch_check_failed, copy_failed, install_cancelled, install_busy.
Checked with the launcher typecheck and build, and the calls made from a
running launcher window on a 2 GB test game folder holding the real
stock files: the check (12 exe and 35 GUI patches ready), a copy
install (player data folders left out, stock files backed up, record
written, 51 progress events), a second install into the same folder
(not_empty), a cancel 36 MB into a copy (install_cancelled, the copy
removed), an in-place install of the copy (its backup used) and a
folder that is not a game.
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).
The launcher has to show the player which patches do not fit their game
build, let them go on without the features those patches cover, and
refuse when a patch that keeps the copy apart from the online game is
missing. The patcher could only refuse the whole build.
- GUI patches are applied one by one. A patch with an edit whose stock
text is not found exactly once, or whose script is missing, is left
out whole and reported with its features, like an unavailable exe
patch; the others are applied.
- patchExecutable always produces the executable with the available
patches; unavailable ones and those depending on them are listed.
- essential-features.ts names the features whose patches stop an
installation: A-离线启动, A-与正版隔离, A-不连 Gaijin (the copy does not
start, touches the online game's data or identity, or connects to
Gaijin without them). Patches tagged with them are 9 exe patches and
one GUI patch today.
- buildGameCopy builds every file of the copy in memory from the stock
files and the caller's inputs (patch folders, hook library, port,
store pack ids) and returns them with a structured report;
writeGameCopy writes them, replacing each file instead of writing
through a hard link. readStockGameFiles reads the four stock files.
- assertWritableCopy takes steamLibraryConfirmed for a Steam library the
player chose after the warning; isInSteamLibrary is exported.
scripts/build-game-copy.ts uses buildGameCopy and still writes nothing
when any patch is unavailable, unless --skip-unavailable is given and
none of the unavailable patches is essential.
Checked with the root typecheck and three runs of build-game-copy.ts
into scratch folders: all patches as they are (12 exe, 35 GUI, 496
bundle GUIDs, six files written); one ordinary exe patch and one GUI
patch broken (both reported with their features, nothing written, then
written with --skip-unavailable); the network hook patch broken (it and
the TLS patch depending on it reported as essential, nothing written
even with --skip-unavailable).
Comments where "local" and "service" fell on two lines, and the Chinese
titles of five patch definitions, still named the local service.
Checked with the root typecheck, check-patches and check-gui.
The installer and launcher is an Electron app in apps/launcher: main
process, a sandboxed preload that only forwards allowed channels, and a
React window translated into Chinese and English.
Every renderer -> main call is declared once in the IPC contract
(shared/ipc/contract.ts) with zod schemas for its input and output; the
main side validates both when it registers a handler. The main process
throws error codes only, and the window translates them. The launcher's
own settings (for now the window language) are kept in the user data
folder and written through a temporary file and a rename. Development
runs can point the user data folder elsewhere with
WTO_LAUNCHER_USER_DATA.
The workspace packages (@wto/patcher, @wto/server) stay external to the
bundle: they ship as TypeScript sources and will run in utility
processes, where Electron's Node strips the types and they find their
web pages, tuning and keys next to their sources as they do today.
The root typecheck leaves out the launcher, which has its own tsconfig
files for the main process and the window.
Checked with the launcher typecheck, electron-vite build, the root
typecheck, and a start on a scratch user data folder.
Everything sat in packages/: two programs next to the small libraries
they use, and the patch data loose at the root. The programs now live in
apps/ and the shared libraries in packages/:
apps/server the local server (was packages/local-service),
package @wto/server
packages/patcher builds the game copy (was packages/build),
package @wto/patcher
patches/exe exe patch definitions (was exe-patches)
patches/gui GUI script patches (was gui-patches)
Inside the server, the network layer folder becomes transport/ so it is
not server/server/, the entry module is server.ts, and startLocalService
and its types become startServer, ServerOptions and RunningServer. The
health answer names the app wto-server, and the TLS files in the data
folder are server.key and server.crt (made again on the next start).
Comments, logs and tool texts say "local server".
The patcher no longer reaches into the server's folder. It read the
default tuning/store.jsonc by a relative path to register bundle GUIDs
for the multi-vehicle packs, which also ignored the player's overrides
in <data>/tuning/. It now takes the pack ids from its caller; the
server exports multiVehiclePackIds(dataFolder), which reads them the way
the running server does. rebuildGuiPack takes the patch folder from its
caller as well.
The development build moves out of the patcher to
scripts/build-game-copy.ts, since it uses both the server and the
patcher. It needs --data (the folder the server will run with) and
defaults the patch folders and the hook library to this repository.
Checked with the root typecheck, check-patches, check-gui,
check-offsets, the native build, a run of build-game-copy.ts into a
scratch folder (12 exe patches, 35 GUI patches, 496 bundle GUIDs as
before) and a server start from apps/server answering wto-server.
Clearing missionSupportUnitRef as soon as the support unit died kept the
player from getting the vehicle back: the unit update (2.61.0.37
0xfd1450, 0xfd2f01 / 0xfd25a7) recognises the player's dead support
unit by that reference (unit +0x88 == MPlayer +0xb58) and only then calls
setControlledUnit(mp, 0) (0x598a70) to return control. In game the
camera stayed on the wreck until the player respawned.
Remember the player and the dead unit's entity id at the death, and
clear the reference after setControlledUnit has run for that player
(new hook, LMP_SIG_SET_CONTROLLED_UNIT, 2.61.0.37 hit 0x598a70), as
long as it still names that unit.
Checked with the native build and check-offsets; not yet verified in
game.
After the first nuclear carrier was shot down, the next launch respawned
it in the air where it died and the player could not fly it. The host
gives a player a support unit only while missionSupportUnitRef (MPlayer
+0xb50 / +0xb58) is empty (2.61.0.37 0x59d9c8), and the client clears
the reference only when the player is re-initialised, never during a
battle. The second launch reused the dead unit: control was refused
("changed controlled unit to already dead unit"), and without an owner
the respawn (0xe4fdf0) placed it at its old position instead of an
airfield.
Clear a player's reference when the unit it names dies (in the existing
onUnitDeadOnce hook, host only), so the stock update creates a new
support unit the next time the spawn score threshold is reached.
Checked with the native build and check-offsets; not yet verified in
game.
The respawn screen showed an empty loadout for the nuclear carrier: a
preset is listed only when shop_is_weapon_available passes (2.61.0.37
0x17a38a0 -> 0x912d20 -> 0x90f2c0 / 0x9662f0), which needs every
reqModification of the preset and of its sum_weapons to be a bought
modification of the unit in the profile. The forced preset of
f_16a_block_15_adf_killstreak carries bombguns_us_b61_30kt with
reqModification us_500lb_mk82, and the player never owns that unit.
Derive the modifications of each missionSupportPlane unit's forced
preset from wpcost.blk and keep them in every profile as owned, in the
profile refresh. Only those killstreak units are touched.
Checked with typecheck and a run over the stock data (30 records, the
F-16 one included); not yet verified in game.
Online the time flown in the nuclear carrier (gameplay.blk
missionSupportPlane) and its kills are not settled, while other aircraft
are. Its lives were settled like any vehicle when it was spawned from
the lineup slot: battle time, research points and repair for a unit the
player does not own.
Collect the support plane units from missionSupportPlane and drop their
lives and combat events from the battle facts before the settlement and
the live award judging. The nuclear strike fact and its award are kept.
Checked with typecheck; not yet verified in game.
The MissionResult HUD event did not reach the scripts before the battle
was left (a nuclear win in game still settled as not won): the HUD can
hold the result back (2.61.0.37 0x183edc0, delay at Hud +0xb8). The
eventbus event onQuitToDebriefing, however, is raised both on the fade
to the debriefing after the battle ends and when leaving from the menu,
while the mission still exists; the stock debriefing gathers its result
on it too.
Record the end time, the closing life and the outcome there, from the
mission status (success / fail; a running battle records no outcome),
and drop the MissionResult subscription.
Checked with check-gui; not yet verified in game.
Online the battle server gives killStreak_bomber_nuclear_success (mode
killStreakNuclearSuccess, 10000 SL) when a player's nuclear bomb
explodes; the LocalMP host has no battle server, so the award was never
given.
The native nuke module now remembers whether the local player launched
the instant-win bomb and, when it explodes, raises the HUD script event
wtoLocalMpNuclearStrike. The battle record keeps it as a strike, sends
it live (wto_battle.fact kind "strike") and reports it after the battle
(strikes{}); the local service awards killStreakNuclearSuccess once per
strike, live as the award banner and in the settlement.
Checked with typecheck, check-gui, check-offsets and the native build;
not yet verified in game.
The settlement report read get_mission_status() when the debriefing
opened. By then the mission scene has been unloaded and the status reads
as running, so every battle that ended on its own (tickets or nuclear
strike) was settled as not won. The end time was lost the same way and
the last life was never closed: onQuitToDebriefing is only raised when
the battle is left from the menu, not by the automatic FadeToDebriefing.
AcesMission::endFinally (2.61.0.37 0x11203f0) raises the HUD event
MissionResult with the local team's result while the mission still
exists. Record the outcome, the end time and the closing life there;
leaving from the menu still records the end time without an outcome.
Checked with check-gui; not yet verified in game.
cta_logic_action walks the variable array with r15 = entry+8, compares the name
at [r15-8] and takes the value at r15+8 (0x11bd1a6), so the int value is at
entry+0x10; the nuclear win wrote the wrong field and the tickets stayed.
create_nuke_destr_area_es does not run on the LocalMP host. The projectile
explosion handler 0xbe7c00 gets the launch record's instant-win flag as its
8th argument (0x2fd778 / 0x2fd7c3) and is what plays the nuclear explosion,
so the winner is now taken there.
Online the battle server ends the battle when a bomb with isInstantWinOnExplode
explodes; the 2.61.0.37 client only flags the bomb, so the LocalMP host played on.
The host now remembers the team of a flagged bomb (0x1431c10), takes it as the
winner when create_nuke_destr_area_es runs (0x63caf0), and zeroes the loser's
mission ticket variable before cta_logic_action (0x11bc400), which then ends the
battle the stock way.
The 2.61.0.37 mission loader looks up the gameplay.blk missionSupportPlane
preset by the mission's gameModeName; without it the native nuclear carrier
is never assigned, so no action bar item and no instant-win bomb.
The 2.61.0.37 client reads customRules/customBots into its bot settings. Send the existing matchmaking pools and both country lists through that block. Verified both coalitions in an isolated Ground Realistic battle.
Pass the manifest path to the harness directly and require per-script success and a completion marker. The standalone interpreter can exit with status zero after a harness failure. Resolve merged interface exports and provide integer bindings for stock constant expressions.
Use baseReward for the reward amounts because Quirrel reserves base. The compile error interrupts post-login script loading before hangar selection and leaves the hangar waiting for its one-minute fallback.
The header of local_mp_loadout.c still named per-unit economic multipliers that
the economy rework removed from the module. It now says what the module does: on a
host the client has no receiver for its own vehicle change request, so the send
hook builds the ChangeUnitReflection and calls Unit::changeAircraft. Comment only.
Checked: native build, check-offsets.
Two exe patches (allow-local-host-bot-spawns, allow-local-host-player-respawn) and
four GUI patches (local-host-spawn-score, quit-local-host-to-debriefing,
quit-local-host-spectator-to-debriefing, ready-local-host-respawn) still carried
the migration placeholder comment and partly non-English titles. Each now has the
three header lines (what it changes, why the client, what happens without it), an
English title, feature tags that name existing feature inventory rows, and a note
that it is kept from the baseline without a re-review in the LocalMP rework.
No patch content changes.
Checked: check-patches (12 ready), check-gui (35 patches compile).
The unreviewed baseline shortened many file headers and dropped their sources: the
research notes sections, architecture sections, stock script paths and client
addresses. They are put back where the code still does what they describe, and the
headers of research, modification and research action files now also describe the
banked excess RP flow (cln_move_exp_to_unit, cln_move_exp_to_module) that the
baseline added. Comments only.
Checked: typecheck.
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.
Settlement already added an expert crew's battle RP to expertToAceProgress but capped
it at train3Cost_exp and left the crew at expert. The stock tooltip says ace is
"obtained for free when the crew gets {expAmount} with the current vehicle"
(crew/qualification/specDescriptionPart), and the client's discount stages end at
75 % (wp_get_specialization_cost_gold -> aces.exe 2.61.0.37 0x9165f0). The crew now
becomes ace once the RP reaches the target and its progress entry is dropped, as
the client drops an empty expertToAceProgress block (0x93b4eb). The ace price no
longer has its own "free at 100 %" case, so it matches the price the client shows.
Checked: typecheck.
With "Research of helicopters by playing ground vehicles" on, the stock text says
ground vehicles are not researched and all their vehicle RP goes to helicopters
(lang shop/research_helicopters_by_ground_vehicles_tooltip). Settlement fell back
to the ground branch whenever the helicopter branch had no current research target;
now the RP stays in the destination branch (banked there until the player picks
the next helicopter) and returns to the vehicle's own branch only when the
destination has nothing left to research. The redirection moves from the profile
helper into the RP investment, which has the tech tree.
Checked: typecheck.
The client never downloads downloadable_decals.<hash>.blk: webdlcontent only looks
for it in its web cache folder (aces.exe 2.61.0.37 0xd3e710 -> 0xd3f610) and deletes
a file whose signature check fails (0xd383e0), so the index the local service served
never reached it and every decal was dropped for lack of a texture.
The build now stores dldata/downloadable_skins.blk and dldata/downloadable_decals.blk
in char.vromfs.bin. The client's vromfs index path (0xd3bc40 -> 0xd3cc60) loads both
without hash or signature checks and skips the download path. Each decal points at
a built-in decals.dxp.bin texture (star, or panther for wide decals) as placeholder;
the texture manager strips the "?options" suffix before the lookup (DagorEngine
TextureMetaData::decode), so the existing textures are used.
--decal-cache <folder> copies the cache/content folder of the player's online
installation into the game copy instead; the client then uses that signed index and
its cached textures, and falls back to the cached dldata_s.info because the local
service now answers the dldata hosts with 404. The service's index generation, the
content hash helper and the decal texture dataset are removed.
Checked: typecheck; client startup log shows 1598 decals registered from the vromfs index
with no missing textures.