Commit Graph
88 Commits
Author SHA1 Message Date
N0VAN0M4LY 44825ed6b5 fix(battle): calculate base spawn scores before launch 2026-11-28 14:39:46 +08:00
N0VAN0M4LY 15145d8c1c fix(battle): apply per-vehicle free repairs after local battles 2026-11-28 14:35:26 +08:00
N0VAN0M4LY c7cb35d76b fix(tooling): require confirmation of every Quirrel compilation
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.
2026-11-28 14:13:14 +08:00
N0VAN0M4LY 5f4ad78e56 fix(battle): resolve LocalMP reward script compilation errors
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.
2026-11-28 13:37:07 +08:00
N0VAN0M4LY 655db2ab4a docs(native): describe the LocalMP loadout module in its header
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.
2026-11-28 13:03:29 +08:00
N0VAN0M4LY 67c0189213 docs(patches): describe six baseline battle patches
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).
2026-11-28 13:02:07 +08:00
N0VAN0M4LY 503b73046e docs(server): restore source references in local service headers
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.
2026-11-28 12:59:51 +08:00
N0VAN0M4LY fa7c9071b7 feat(equipment): repair damaged vehicles for free over time
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.
2026-11-28 12:56:12 +08:00
N0VAN0M4LY 2a89070f3e fix(crew): grant ace qualification at the vehicle RP threshold
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.
2026-11-28 12:48:59 +08:00
N0VAN0M4LY 747c4d4594 fix(research): bank redirected battle RP in the destination branch
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.
2026-11-28 12:48:49 +08:00
N0VAN0M4LY 9ed92c33d4 fix(cosmetics): deliver decal indexes in the local character pack
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.
2026-11-28 12:44:45 +08:00
N0VAN0M4LY 8e4d4b6ea3 feat(battle): settle vehicle damage, repairs, and compensation
The local service now settles vehicle repair after a battle and charges
hangar repairs at the price the client shows.

- New dataset vehicle-repair (wpcost.blk repairCost<Mode>,
  repairCostPerMin<Mode>, modifications' repairCostCoef<Mode>) and
  RepairRules, which follow the client's own formulas: full cost =
  repairCost<Mode> x (1 + coefficients of the owned modifications)
  (aces.exe 2.61.0.37 0x10517b0, 0x964900); current cost =
  max(1, (1 - hp) x full cost) in the vehicle's lastGameMode
  (getAircraftRepairCost 0x90e0b0).
- The price table now carries aircrafts/<vehicle>/repair/<mode>/cost,
  where the client looks the full repair cost up; it read 0 before.
- After a battle each life costs the official lifetime share: destroyed
  = repairCostPerMin x minutes started, at most the full cost; leaving
  the vehicle (or the battle) early = full cost; surviving = nothing;
  destroyed by an ally = nothing. The cost is written as hp,
  lastGameMode and time on the hangar entry, so the client's own repair
  cost matches it.
- Automatic repair (autoRepairAircrafts, on by default) pays for the
  damaged vehicles the player can afford; premium accounts with
  automatic repair and ammunition purchase get the expenses beyond the
  battle's earnings back. The battle log gets aircrafts hp,
  autoRepairWasOn, container.aircraftsRepaired and
  wpExpensesCompensation; the debriefing gets the ExpensesCompensation
  row.
- cln_prepare_aircraft, cln_repair_all and cln_repair_all_in_slots
  carry no price; they now charge the current repair cost instead of
  repairing for free.

Not yet verified in game.
2026-11-28 12:08:20 +08:00
N0VAN0M4LY 15779e805d feat(battle): apply boosters and wagers during settlement
Boosters (rateBooster items) now add to the settled battle as the stock
client and the official wiki describe: each booster adds its percent of
the base reward; boosters stack per event type and personal / all-allies
group with the client's calc_public_boost factors; a battle uses one
battle of a booster plus one per spentInSessionTimeMin span, and a
booster with R battles left covers the first R spans; kill, ground kill
and assist boosters add only to that event and end after their kill
count. The debriefing table gets the booster columns, the session log
lists affectedBoosters, the research breakdown carries boosterExpTotal,
progress is saved and used-up boosters are removed with an
EULT_REMOVE_ITEM log.

The active wager now moves with each battle that meets its active
conditions (lineup rank range, random battle, mission postfix): a stage
when its win condition holds (battle won, players killed, or the listed
battle awards, hidden ones included), otherwise a failed battle. It ends
at maxWins or maxFails and pays a x stake x stages^b + c of the reached
stage. Each counted battle logs EULT_CHARD_AWARD in the battle's room and
the session log lists affectedWagers, which the stock debriefing shows.

Hidden battle awards are now judged (not shown or logged) so wagers can
name them; awards of mode missionsWon are supported, and "unlocks"
awards honour num.

The new GUI patch battle/match-settled-battle-room-logs matches the
settled battle's logs by room id in isUserlogVisible, the one filter all
"this battle's logs" queries use; it replaces the two per-call edits in
use-settled-debriefing-stats.

Not yet verified in game.
2026-11-28 11:55:19 +08:00
N0VAN0M4LY aa7754d0f7 fix(battle): reuse the matched lineup rating for submodes
The extra game modes now use the battle rating the matching server
computed for the lineup also out of a squad, so the local service decides
it and the client no longer recomputes the lineup's rank.

The scoreboard flag fallback and the countdown button patch keep their
behaviour; their comments now state what the stock code does, why the
fallback is needed before the first spawn, and that the countdown
flicker's trigger on the host is still to be found.
2026-11-28 08:36:57 +08:00
N0VAN0M4LY cfb913eebd feat(battle): evaluate LocalMP awards in the local service
The battle awards (streaks) of unlocks.blk are now judged by the local
service from the battle's facts: the player's combat events, each life
and whether it ended in death, the HUD kill log and the final
scoreboard. The record patch also sends each fact live over the
matching connection (wto_battle.fact); the awards it completes come
back and are shown with the stock award banner and kill log entry.

After the battle the awards become EULT_NEW_STREAK logs, which the
stock debriefing lists on its left, and their Silver Lions are paid and
shown in the Unlocks row. Modes whose facts are not reported, and
best-player awards limited by battle rating, are never given.
2026-11-28 08:32:35 +08:00
N0VAN0M4LY de469b0d6b feat(battle): apply research efficiency rules to battle RP
Vehicle research points now follow rank.blk: the predecessor bonus
(expBonusPercentForChildForMode), the rank difference penalty
(expPenaltyPercentForHigherRank / LowerRank) and the Vehicle Research
Bonus (ExpNewNationBonus, five battles per nation and type per UTC day).
Modifications keep the research points before these terms.

The settlement records each vehicle's breakdown in the session log's
container.researchPoints, which the stock debriefing explains in its
research rows. The debriefing patch now selects the battle's logs by
room id, since a LocalMP host is in no matching room and the stock
current-room check cannot match them.
2026-11-28 08:20:40 +08:00
N0VAN0M4LY 9f28a84cd3 fix(battle): present extra lineup slots as ordinary vehicles
The live game draws one vehicle from each RandomSpawnUnits group at
launch and shows it as a plain lineup vehicle (a 12.7 US lineup gets an
M1A1 12.0 and an ADATS 12.0, no dice), so the random_units state and the
patch that filled it are gone. The strike UCAV costs 750 spawn points,
the live game's value, now in tuning/battle.jsonc.
2026-11-28 07:28:48 +08:00
N0VAN0M4LY e3c5880023 refactor(native): limit the LocalMP bridge to engine gaps
- Scoreboard scores come from the local service: BattleEconomy
  missionScores() writes the official mission scores into the stock
  mission block customScoreParams, which the client copies into
  MissionSettings+0x6d8 without reading it; local_mp_scores.c reads them
  with DataBlock::getReal. The hardcoded scores and the death score go.
- countActivePlayers already counts players with a living vehicle; the
  only LocalMP gap is its filter skipping bots (MPlayer+0x1d8 bit 7). A
  one-byte exe patch drops that filter bit instead of a rewrite hook.
- ucavLaunch returns early on a host; an exe patch skips that return
  instead of clearing the global host flag around the call.
- onBecameDead no longer runs with isLocalMP cleared: that only queued an
  EventOnPlayerDeath stock LocalMP skips on purpose, and broke the local
  player id remap inside the function.
- The host chat object keeps its two-field layout, now documented from
  the host chat handler that reads it.
2026-11-28 07:09:07 +08:00
N0VAN0M4LY 6ac67f1d2a fix(battle): choose extra lineup vehicles from the game data
Rebuild the extra vehicles a battle adds to the player's lineup on the
game files and the official rules:

- Random vehicles (dice slots): one per gameplay.blk RandomSpawnUnits
  group of the event economic name and country, offered from the
  group's minPlayerMRank on, with no condition on the lineup. The option
  window follows the official changelog examples (never the session's
  top BR, lower BR when nothing fits); its formula is inferred from the
  group parameters. Only the listed addModification items are enabled.
- Nuclear carrier: missionSupportPlane preset of the session rank, cost
  spawnScoreToUse.
- Strike UCAV: offered by an offline tuning rule, priced by the stock
  spawn score formula, no forced preset.

The spawn request enables exactly the slot's modifications, and every
forced weapon travels in the slot, so the event-name fallback is gone.
2026-11-28 06:48:17 +08:00
N0VAN0M4LY f7d495de5f fix(battle): use stock economy names for ground and naval modes
The per-event game tables (rank.blk ExpSkillBonus, gameplay.blk
RandomSpawnUnits) and the stock scripts that read them through
getEventEconomicName key ground and naval events as
tank_event_in_random_battles_arcade, tank_random_battles_historical_base,
tank_event_in_random_battles_simulation and
ship_event_in_random_battles_{arcade,realistic}. The catalogue used the
leaderboard mode ids instead, so the skill bonus and random spawn units
of those modes were never found.
2026-11-28 05:13:56 +08:00
N0VAN0M4LY 7c27d09f78 fix(battle): calculate LocalMP rewards in the local service
The LocalMP host has no battle server, and the previous bridge filled the
gap by computing money in the client: the native ledger wrote invented
amounts into SessionStatsNet, the spawn patch derived reward rates from
warpoints.blk, and the settlement patch summed and rescaled the result.
Rewards came out as zero or several orders of magnitude too high.

Now the client reports facts and the local service prices them.

Native (wto_ws.dll):
- local_mp_ledger.c is removed together with its SessionStatsNet
  offsets and four signatures (43 -> 39).
- local_mp_awards.c raises the HUD script event wtoLocalMpExpEvent for
  every combat event of the local player (event code, victim expClass
  and name, player or AI victim, friendly, naval damage). The DataBlock
  helpers and the HUD event queue are resolved from call sites inside
  GameSaveData::addScoreMessage, which already has a signature.

GUI patches:
- record-local-battle-awards records events and lives in nestdb and
  raises the stock InBattleReward banner from launch-time parameters.
- report-local-battle-settlement sends only facts and rebuilds the
  debriefing from the settled table; failures show the stock error box.
- use-settled-debriefing-stats makes gatherDebriefingResult read that
  table instead of the empty stat_get_exp().
- pass-spawn-modifications-blk no longer computes economy factors.

Local service:
- battle-economy dataset reads every reward factor from wpcost.blk,
  warpoints.blk and rank.blk; tuning/battle-economy.jsonc holds the
  mission score per event with its source (official values where
  published, otherwise marked).
- battle-economy.ts is the single pricing function, shared by the
  banner parameters and the settlement; battle-rewards.ts adds battle
  time, timed award, win/defeat bonus, activity, premium account,
  talisman, skill bonus and free research points; the debriefing table
  has the stat_get_exp() layout and travels in EULT_SESSION_RESULT.
- Crews earn skill points from the battle's research points.
- A battle left before it ends counts as a defeat.

Verified: npm run typecheck, check-gui (35 patches), check-patches,
check-offsets, native build. Not yet run in game.
2026-11-28 04:42:27 +08:00
N0VAN0M4LY 9e5523e21c refactor(battle): build mission settings in the local service
The launch script patch used to assemble the whole MissionSettings block
on the client: reading the mission file for localization keys and ticket
rules, filling the AI vehicle pool, rank window and extra slot costs.
All of that is pre-battle data the local service already owns.

- multiplayer-missions dataset v3 keeps the scalar parameters of
  mission_settings.mission and of each per-difficulty sub-block, with
  their BLK types.
- battle-mission-settings.ts builds the complete MissionSettings block
  from the launch plan (same parameters as before).
- battle-launch-notify.ts sends it as a typed tree, so ints and reals
  keep the types the engine reads, plus the lobby settings and the
  per-battle record the in-battle patches read from nestdb.
- The launch patch shrinks from 208 to about 70 lines: rebuild the
  DataBlock, set _gameMode from the client's own native constant, enter
  the session lobby and start the LocalMP battle.

Behaviour is unchanged; coalitions, extra slots and economy are reworked
in later commits. Verified: npm run typecheck, check-gui (33 patches).
2026-11-28 03:39:53 +08:00
N0VAN0M4LY db981ab834 refactor(patches)!: migrate definitions to JSONC and script fragments
Patch definitions under exe-patches/ and gui-patches/ move from
patch.json/locate.json to patch.jsonc/locate.jsonc. Each file now holds
only the data needed to apply the patch plus a short English comment
stating what it changes, why the local service cannot provide it, and
what happens without it. Every definition records the game versions it
was verified on (verified_on, required).

GUI patches keep their stock text and replacement in find.nut and
replace.nut next to patch.jsonc instead of escaped JSON strings, so the
script edits are readable, diffable and can carry Quirrel comments.
Matching treats CRLF and LF as the same line break because stock
scripts mix both; only the matched span is rewritten.

Loaders on both sides (packages/build, packages/exepatch, wtotools)
reject unknown keys so analysis text cannot creep back into the data.
JSONC parsing moves into a shared @wto/jsonc package; the build now
parses tuning/store.jsonc instead of scanning it with a regex.

Verified: npm run typecheck; check-patches (10/10 ready on 2.61.0.37);
check-gui (33 patches, 24 scripts compile); the TypeScript and Python
appliers produce identical scripts, byte-identical to the previous
definitions except one stock script with mixed line endings.

The 15 battle patches are migrated mechanically and still carry the
pending-review comment; they are rewritten by the LocalMP review.

BREAKING CHANGE: Patch loaders require JSONC definitions. Migrate patch.json and locate.json and move embedded GUI edits to separate Quirrel files.
2026-11-28 03:24:12 +08:00
N0VAN0M4LY b260d2899e chore(battle): snapshot the LocalMP rework baseline
Records the uncommitted battle-session work exactly as it was left
(local service matchmaking, settlement, chat, native LocalMP hooks,
battle gui/exe patches) so the following review and rework commits
show every correction as a diff against this state.

This commit is not reviewed and is known to be incomplete: in-game
testing reported wrong settlement rewards, single-country teams,
missing random/fixed supplement slots, misattributed hit messages and
other regressions. Do not merge this branch before the rework lands.
2026-11-28 03:15:47 +08:00
N0VAN0M4LY 5c9204c031 feat(store): cache official media and autoplay pack demos
Cache allowlisted official media so the in-game browser can load it locally. Match the official catalog snapshot and start pack demos muted and looping on entry.
2026-11-27 00:43:50 +08:00
N0VAN0M4LY e4227bb8ba feat(store): add a shopping cart and refresh the storefront
Save carts per account and settle each order in one profile update. Add featured packs, a screenshot and video gallery, and premium artwork from the game files.
2026-11-26 19:07:48 +08:00
N0VAN0M4LY 179185c3f6 fix(inventory): accept native inventory exchange material tuples
Resolve item definitions from saved stacks and validate the combined quantity when a request repeats a stack.
2026-11-26 19:07:48 +08:00
N0VAN0M4LY 3c1210f249 feat(store): serve stock artwork and link official store media
Show the installed game artwork in the local store and marketplace. Use the official cover and gallery for each mapped product, with on-demand video playback. Include store cover images and screenshots in optional offline asset packs.

Verified TypeScript, browser script syntax, local service startup, game artwork endpoints, a sample image pack, and BMD-4M WebM byte-range delivery. In-game verification is pending.
2026-11-26 17:18:32 +08:00
N0VAN0M4LY 2dda694db0 fix(store): use localized titles in vehicle pack receipts
Include the catalogue titles in the entitlement price data and select the matching language in the client receipt formatter. Checked TypeScript, the GUI pack rebuild, and the patched Quirrel script.
2026-11-26 17:18:32 +08:00
N0VAN0M4LY f816b914da feat(inventory): show native rewards after coupon redemption
Open the stock reward window after a successful coupon activation using its existing reward definition.
2026-11-26 10:24:08 +08:00
N0VAN0M4LY 1939fdaa45 fix(inventory): use the native supply chest opening window
Select the stock Silver Lion chest style so buying an external chest can continue through the existing opening flow.
2026-11-26 10:24:07 +08:00
N0VAN0M4LY 0fb75e8280 docs(store): explain retention of unread purchase receipts 2026-11-26 10:14:58 +08:00
N0VAN0M4LY 7e8fd4788e fix(marketplace): honor configured fees and validate result text
Display the fee supplied by the marketplace service. Use the unconfirmed notice when the returned message is missing or invalid.
2026-11-26 10:14:58 +08:00
N0VAN0M4LY 0678c3bf27 fix(marketplace): show trade results above item details
Place the existing transaction notice above the item dialog and report unconfirmed results when a request fails or returns invalid data. Prevent older responses from overwriting the latest notice.

Verified JavaScript syntax.
2026-11-26 10:00:19 +08:00
N0VAN0M4LY e40a4e4e7d fix(profile): refresh profiles when commerce windows close
Use the existing entitlement refresh task when leaving the local store, marketplace, currency shop, or Premium Account shop. Use the same path for the explicit and ordinary browser close actions.

Verified GUI patch application and Quirrel syntax.
2026-11-26 10:00:19 +08:00
N0VAN0M4LY 4b1e226c34 feat(store): show native receipts for purchases
Persist the actual grant in the purchase log and open one native receipt per unread entry. Keep pending receipts during log trimming and resume them when the price table becomes available.

Verified TypeScript types, GUI patch application, and Quirrel syntax.
2026-11-26 10:00:19 +08:00
N0VAN0M4LY 98812fa9c2 feat(store): add store and marketplace item views and image sources
Add catalogue filters, item detail views, and purchase and resale
actions. Resolve images from the player's asset pack, public image
URLs, or local game data. Add a utility for creating the optional
local asset pack.

Type checking and JavaScript syntax checks passed. Embedded browser
appearance and in-game behavior still need acceptance.
2026-11-26 07:12:38 +08:00
N0VAN0M4LY a73635407d feat(store): add item deep links and marketplace coupon resale
Register bundle GUIDs at build time and return local store item URLs.
Route marketplace item links to the requested coupon. Update vehicle
and cosmetic prices from the marketplace snapshot and support selling
coupons back to the system at the configured fee.

Type checking, an isolated build, and local service checks passed.
In-game acceptance is pending.
2026-11-26 07:12:38 +08:00
N0VAN0M4LY f829c9a45f feat(equipment): persist custom weapon presets and correct decal research
Save revisions to custom weapon presets and return the full profile.
Keep an empty top-level weaponPresets block after the final deletion
so the client clears its cached presets. Treat the tier-zero
allowPremDecals modification as researchable.

Type checking passed. In-game acceptance is pending.
2026-11-26 07:01:06 +08:00
N0VAN0M4LY 71ba962e75 feat(equipment): stock newly unlocked ammunition and consumables
Extract weapon prerequisites, default equipment states, and exclusive
groups. Grant eligible zero-cost modifications in dependency order and
initialize newly unlocked consumables and weapon presets at capacity.

When automatic restocking is enabled, replenish existing stock subject
to the Silver Lions balance. Enforce purchase prerequisites and
exclusive equipment groups.

Type checking, patch checks, and local data extraction and restocking
checks passed. In-game acceptance is pending.
2026-11-26 02:14:00 +08:00
N0VAN0M4LY 943d395748 feat(inventory): sign external inventory responses for the offline client
Sign the inventory JSON payload using the local signing key and
provide the required signature headers. Register the corresponding
public key in the rebuilt GUI pack so the client can verify the
definitions.

Type checking, pack checks, and local signature verification passed.
In-game acceptance requires a rebuilt offline copy and restarted service.
2026-11-26 02:13:23 +08:00
N0VAN0M4LY 32e9201a5f fix(saves): return valid cloud settings and persist tutorial skips
Return the unframed BLK expected by the cloud settings client.
Allow the basic ground tutorial to be skipped and save the tutorial
preference immediately.
2026-11-25 22:46:35 +08:00
N0VAN0M4LY a2667a16a0 feat(profile): persist notification acknowledgements and hangar preferences
Handle cln_update so acknowledged notifications do not reappear.
Persist client preferences and ignore unrelated placeholder blocks.
2026-11-25 22:46:35 +08:00
N0VAN0M4LY feda31d12a fix(profile): prevent saved showcases from crashing the parser
Store local showcase selections separately from the client's top-level
showcase block.
2026-11-25 22:46:35 +08:00
N0VAN0M4LY 3144adc487 refactor(research): separate research rules from price encoding
Keep ResearchRules focused on vehicle research and purchases. Move
cln_get_price_ex encoding into the character protocol layer and inject
its catalogue dependencies explicitly. Load only the catalogues needed
by each service and save editing command.

Type checking and isolated service and save CLI checks passed.
In-game acceptance is pending.
2026-11-25 16:33:27 +08:00
N0VAN0M4LY 4d8229ae92 feat(economy): offer a free offline payment option
Expose free payment in the in-game dialog, local store, and marketplace.
Grant the selected item without debiting GJN and reject unknown payment
methods. Apply the configured per-purchase limit consistently.

Type checking, binary and GUI patch checks, and local purchase checks
passed. In-game acceptance is pending.
2026-11-25 13:41:37 +08:00
N0VAN0M4LY e1468df52b fix(store): resolve vehicle icons and default to the in-game account
Match archive paths without regard to case and include Golden Eagle
vehicles in icon extraction. Default read-only page state to the
current in-game account. Keep web mutations gated on an explicit
account ID.

Type checking and local icon and account selection checks passed.
In-game acceptance is pending.
2026-11-25 13:41:35 +08:00
N0VAN0M4LY 259cd0f32c feat(store): sell multi-vehicle packs and localize country names
Offer the five three-vehicle packs and nine starter packs as bundles.
Grant their unowned vehicles and bonuses on purchase. Encode each
vehicle in an aircraftGift field and validate duplicate IDs and
vehicle assignments.

Read group labels from units.csv and country names from
_common_languages.csv. Use those names in packs and browser filters.

Type checking and local catalogue and price response checks passed.
In-game acceptance is pending.
2026-11-25 13:41:32 +08:00
N0VAN0M4LY 78f1857918 fix(research): keep a valid vehicle research target for each branch
The accelerated research dialog reads currUnit when it first opens.
Assign a valid target whenever an eligible vehicle exists and replace
stale selections when refreshing a profile.

Prefer an available direct successor when configured. Otherwise use
the configured rank or tech tree order. Type checking and profile
initialization passed. In-game acceptance is pending.
2026-11-25 13:41:29 +08:00
N0VAN0M4LY 9cf7df5299 feat(store): open store pages in-game and centralize economy tuning
Use the native embedded browser and pass the game language through
auto_local. Share web assets and extract vehicle icons, flags, and
localized names from the installed client.

Load and validate per-domain JSONC tuning and merge local overrides
by field. Use official store USD prices for GJN products, keep GJN
balances in integer cents, and split the native and web store
handlers by protocol. Multi-vehicle packs are still listed as single
vehicles at this point.

Type checking, patch checks, and configuration loading passed.
In-game acceptance is pending.
2026-11-25 11:01:05 +08:00